An Error Has Occurred While Processing The Maven Artifact Tasks
Search An error has occurred while processing the Maven artifact ta Topics related to running, modifying, or working with the Broadleaf Commerce Demo application Moderator: jocanas Post Reply Print view Search Advanced search 3 posts • Page 1 of 1 anh795 Newbie Posts: 2 Joined: Fri Apr 18, 2014 6:07 am An error has occurred while processing the Maven artifact ta Quote Postby anh795 » Fri Apr 18, 2014 6:13 am I am trying to get my hands dirty on broadleaf, was trying to run broadleaf demosite on tomcat. For this purpose i addes db related props in catalina.properties, but i am facing below errors.Code: Select allstart-db:
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'commons-io:commons-io:jar': Cannot find parent: org.apache:apache for project: org.apache.commons:commons-parent:pom:22 for project org.apache.commons:commons-parent:pom:22
[artifact:dependencies] commons-io:commons-io:jar:2.1
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] apache.snapshots (http://repository.apache.org/snapshots),
[artifact:dependencies] central (http://repo1.maven.org/maven2),
[artifact:dependencies] public snapshots (http://nexus.broadleafcommerce.org/nexus/content/repositories/snapshots/),
[artifact:dependencies] sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots),
[artifact:dependencies] public releases (http://nexus.broadleafcommerce.org/nexus/content/repositories/releases/),
[artifact:dependencies] maven-restlet (http://maven.restlet.org)
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) com.isb:site:war:1.0
[artifact:dependencies] 2) com.isb:core:jar:1.0
[artifact:dependencies] 3) org.broadleafcommerce:broadleaf-framework:jar:3.1.0-GA
[artifact:dependencies] 4) org.apache.solr:solr-solrj:jar:4.4.0
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies] in epilog non whitespace content is not allowed but got p (position: END_TAG seen ...\r\n\r\n\r\np... @394:2)
[artifact:dependencies
Support Search GitHub This repository Watch 70 Star 109 Fork 607 BroadleafCommerce/DemoSite Code Issues 33 Pull requests 4 Projects 0 Pulse Graphs New issue Ant build can't fetch dependencies from maven http://forum.broadleafcommerce.org/viewtopic.php?t=2869 local repository. #18 Closed MadeInChina opened this Issue Aug 14, 2013 · 2 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants MadeInChina commented Aug 14, 2013 Buildfile: https://github.com/BroadleafCommerce/DemoSite/issues/18 D:\opensource\DemoSite\site\build.xml start-db: [artifact:dependencies] Downloading: com/mycompany/core/1.0/core-1.0.pom from repository public snapshots at http://nexus.broadleafcommerce.org/nexus/content/repositories/snapshots/ [artifact:dependencies] Unable to locate resource in repository [artifact:dependencies] [INFO] Unable to find resource 'com.mycompany:core:pom:1.0' in repository public snapshots (http://nexus.broadleafcommerce.org/nexus/content/repositories/snapshots/) [artifact:dependencies] Downloading: com/mycompany/core/1.0/core-1.0.pom from repository public releases at http://nexus.broadleafcommerce.org/nexus/content/repositories/releases/ [artifact:dependencies] Unable to locate resource in repository [artifact:dependencies] [INFO] Unable to find resource 'com.mycompany:core:pom:1.0' in repository public releases (http://nexus.broadleafcommerce.org/nexus/content/repositories/releases/) [artifact:dependencies] Downloading: com/mycompany/core/1.0/core-1.0.pom from repository central at http://repo1.maven.org/maven2 [artifact:dependencies] Unable to locate resource in repository [artifact:dependencies] [INFO] Unable to find resource 'com.mycompany:core:pom:1.0' in repository central (http://repo1.maven.org/maven2) [artifact:dependencies] Downloading: com/mycompany/core/1.0/core-1.0.jar from repository public snapshots at http://nexus.broadleafcommerce.org/nexus/content/repositories/snapshots/ [artifact:dependencies] Unable to locate resource in repository [artifact:dependencies] [INFO] Unab
uploads certain artifacts twiceLog In ExportXMLWordPrintable Details Type: Bug Status: Resolved Resolution: Fixed Affects Version/s: None Fix Version/s: 1.1-rc-1 Gradle Forums topic Reference: https://issues.gradle.org/browse/GRADLE-2254 problem - Maven Plugin uploads certain artifacts twice (complete) Description Hi There, I'm observing a werid behavior in the Maven Plugin. It seems as if it's https://issues.sonatype.org/browse/OSSRH-5019 uploading certain artifacts multiple times. So either I'm doing something wrong (which might very well be ) or this might be a bug. I have a an error basic jar project, of which I want to deploy 4 artifacts: The main library jar The sources of the main library jar A jar containing thecompiled test classes The sources of the test classes I want the sources jars to just use classifiers. The test jars should get their own artifactIds. an error has Here are the relevant parts of my build.gradle: task sourcesJar(type: Jar) { from sourceSets.main.allSource classifier = 'sources' } task testJar(type: Jar) { baseName = project.name + '-tests' from sourceSets.test.output } task testSourcesJar(type: Jar) { baseName = project.name + '-tests' classifier = 'sources' from sourceSets.test.allSource } artifacts { archives sourcesJar, testJar, testSourcesJar } uploadArchives { def mvnUser = 'user' def mvnPassword = 'pwd' repositories.mavenDeployer { configuration = configurations.mavenDeployer uniqueVersion = false def mainPom = addFilter('main') {artifact, file -> !artifact.name.endsWith("-tests") } def testsPom = addFilter('tests') {artifact, file -> artifact.name.endsWith("-tests") } def poms = [ mainPom, testsPom ] poms.each { it.version = project.version } repository(url: "http://myrepo") { authentication(userName: "$ {mvnUser}", password: "${mvnPassword}") } snapshotRepository(url: "http://myrepo-snapshots") { authentication(userName: "${mvnUser} ", password: "$ {mvnPassword} ") } } } When I run uploadArchives with --info, I get the following output: > :mylib:uploadArchives Task ':mylib:uploadArchives' has not declared any outputs, assuming that it is out-of-date. Publishing configuration: configuration ':mylib:archives'
deploy to snapshot repositoryAgile Board ExportXMLWordPrintable Details Type: Task Status: Closed Priority: Major Resolution: Not A Bug Labels: None Description I'm trying to deploy with gradle: gradle --info clean uploadArchives Last words of gradle, before failing: Publishing configuration: configuration ':archives' Publishing to repository org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer@79a7bd3b :: loading settings :: url = jar:file:/C:/Dev/gradle-1.1/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml [ant:null] Deploying to https://oss.sonatype.org/content/repositories/snapshots/ [INFO] Retrieving previous build number from remote [INFO] repository metadata for: 'snapshot net.sourceforge.rapidprops:rapidprops:1.0-SNAPSHOT' could not be found on repository: remote, so will be created Uploading: net/sourceforge/rapidprops/rapidprops/1.0-SNAPSHOT/rapidprops-1.0-20121227.033252-1.jar to repository remote at https://oss.sonatype.org/content/repositories/snapshots/ Transferring 20K from remote [ant:null] An error has occurred while processing the Maven artifact tasks. Diagnosis: Error deploying artifact 'net.sourceforge.rapidprops:rapidprops:jar': Error deploying artifact: Failed to transfer file: https://oss.sonatype.org/content/repositories/snapshots/net/sourceforge/rapidprops/rapidprops/1.0-SNAPSHOT/rapidprops-1.0-20121227.033252-1.jar. Return code is: 401 FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':uploadArchives'. > Could not publish configuration ':archives'. > Error deploying artifact 'net.sourceforge.rapidprops:rapidprops:jar': Error deploying artifact: Failed to transfer file: https://oss.sonatype.org/content/repositories/snapshots/net/sourceforge/rapidprops/rapidprops/1.0-SNAPSHOT/rapidprops-1.0-20121227.033252-1.jar. Return code is: 401 Thank you! Activity All Comments Work Log History Activity Ascending order - Click to sort in descending order Hide Permalink Joel Orlina added a comment - 12/28/12 03:43 PM I confess I haven't had much experience troubleshooting gradle issues. I've double-checked that your beryx user id has deployer access to net.sourceforge.rapidprops. Do you have the same problem when deploying a release version? Although not gradle-specific, does this blog help? http://www.sonatype.com/people/2010/11/what-to-do-when-nexus-returns-401/ Show Joel Orlina added a comment - 12/28/12 03:43 PM I confess I haven't had much experience troubleshooting gradle issues. I've double-checked that your beryx user id has deployer access to net.sourceforge.rapidprops. Do you have