Page 1 of 1

The maven build failed due to 2 artifacts missing.

Posted: Tue Aug 10, 2010 5:23 am
by csh
Below is the console output in eclipse which I get when the maven build is done....2 artifacts are missing.

Any idea, what could be going wroing?


[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceAdmin
[INFO]
[INFO] Id: org.broadleafcommerce:broadleaf-admin:war:1.1.0-GA
[INFO] task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
url = http://download.java.net/maven/1
Downloading: http://download.java.net/maven/1/org.br ... 1.0-GA.pom
url = http://repository.jboss.com/maven2
Downloading: http://repository.jboss.com/maven2/org/ ... 1.0-GA.pom
url = http://repository.sonatype.org/content/groups/flexgroup
Downloading: http://repository.sonatype.org/content/ ... 1.0-GA.pom
url = http://www.eviware.com/repository/maven2
Downloading: http://www.eviware.com/repository/maven ... 1.0-GA.pom
url = file://C:\Documents and Settings\A158852\My Documents\Software\Broadleaf Commerce\src\site\BroadleafCommerceAdmin/lib
Downloading: file://C:\Documents and Settings\A158852\My Documents\Software\Broadleaf Commerce\src\site\BroadleafCommerceAdmin/lib/org/broadleafcommerce/broadleaf-framework-web/1.1.0-GA/broadleaf-framework-web-1.1.0-GA.pom
url = http://repo1.maven.org/maven2
Downloading: http://repo1.maven.org/maven2/org/broad ... 1.0-GA.pom
url = http://download.java.net/maven/1
Downloading: http://download.java.net/maven/1/org.br ... 1.0-GA.pom
url = http://repository.jboss.com/maven2
Downloading: http://repository.jboss.com/maven2/org/ ... 1.0-GA.pom
url = http://repository.sonatype.org/content/groups/flexgroup
Downloading: http://repository.sonatype.org/content/ ... 1.0-GA.pom
url = http://www.eviware.com/repository/maven2
Downloading: http://www.eviware.com/repository/maven ... 1.0-GA.pom
url = file://C:\Documents and Settings\A158852\My Documents\Software\Broadleaf Commerce\src\site\BroadleafCommerceAdmin/lib
Downloading: file://C:\Documents and Settings\A158852\My Documents\Software\Broadleaf Commerce\src\site\BroadleafCommerceAdmin/lib/org/broadleafcommerce/integration/1.1.0-GA/integration-1.1.0-GA.pom
url = http://repo1.maven.org/maven2
Downloading: http://repo1.maven.org/maven2/org/broad ... 1.0-GA.pom
url = http://download.java.net/maven/1
Downloading: http://download.java.net/maven/1/xml-di ... ng-0.2.pom
url = http://repository.jboss.com/maven2
Downloading: http://repository.jboss.com/maven2/xml- ... ng-0.2.pom
url = http://repository.sonatype.org/content/groups/flexgroup
Downloading: http://repository.sonatype.org/content/ ... ng-0.2.pom
url = http://www.eviware.com/repository/maven2
Downloading: http://www.eviware.com/repository/maven ... ng-0.2.pom
url = file://C:\Documents and Settings\A158852\My Documents\Software\Broadleaf Commerce\src\site\BroadleafCommerceAdmin/lib
Downloading: file://C:\Documents and Settings\A158852\My Documents\Software\Broadleaf Commerce\src\site\BroadleafCommerceAdmin/lib/xml-dir-listing/xml-dir-listing/0.2/xml-dir-listing-0.2.pom
url = http://repo1.maven.org/maven2
Downloading: http://repo1.maven.org/maven2/xml-dir-l ... ng-0.2.pom
url = http://download.java.net/maven/1
Downloading: http://download.java.net/maven/1/org.br ... 1.0-GA.jar
url = http://repository.jboss.com/maven2
Downloading: http://repository.jboss.com/maven2/org/ ... 1.0-GA.jar
url = http://repository.sonatype.org/content/groups/flexgroup
Downloading: http://repository.sonatype.org/content/ ... 1.0-GA.jar
url = http://www.eviware.com/repository/maven2
Downloading: http://www.eviware.com/repository/maven ... 1.0-GA.jar
url = file://C:\Documents and Settings\A158852\My Documents\Software\Broadleaf Commerce\src\site\BroadleafCommerceAdmin/lib
Downloading: file://C:\Documents and Settings\A158852\My Documents\Software\Broadleaf Commerce\src\site\BroadleafCommerceAdmin/lib/org/broadleafcommerce/broadleaf-framework-web/1.1.0-GA/broadleaf-framework-web-1.1.0-GA.jar
url = http://repo1.maven.org/maven2
Downloading: http://repo1.maven.org/maven2/org/broad ... 1.0-GA.jar
url = http://download.java.net/maven/1
Downloading: http://download.java.net/maven/1/org.br ... 1.0-GA.jar
url = http://repository.jboss.com/maven2
Downloading: http://repository.jboss.com/maven2/org/ ... 1.0-GA.jar
url = http://repository.sonatype.org/content/groups/flexgroup
Downloading: http://repository.sonatype.org/content/ ... 1.0-GA.jar
url = http://www.eviware.com/repository/maven2
Downloading: http://www.eviware.com/repository/maven ... 1.0-GA.jar
url = file://C:\Documents and Settings\A158852\My Documents\Software\Broadleaf Commerce\src\site\BroadleafCommerceAdmin/lib
Downloading: file://C:\Documents and Settings\A158852\My Documents\Software\Broadleaf Commerce\src\site\BroadleafCommerceAdmin/lib/org/broadleafcommerce/integration/1.1.0-GA/integration-1.1.0-GA.jar
url = http://repo1.maven.org/maven2
Downloading: http://repo1.maven.org/maven2/org/broad ... 1.0-GA.jar
[ERROR]

Transitive dependency resolution for scope: compile has failed for your project.



Error message: Missing:
----------
1) org.broadleafcommerce:broadleaf-framework-web:jar:1.1.0-GA

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-framework-web -Dversion=1.1.0-GA -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-framework-web -Dversion=1.1.0-GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.broadleafcommerce:broadleaf-admin:war:1.1.0-GA
2) org.broadleafcommerce:broadleaf-framework-web:jar:1.1.0-GA

2) org.broadleafcommerce:integration:jar:1.1.0-GA

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.broadleafcommerce -DartifactId=integration -Dversion=1.1.0-GA -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.broadleafcommerce -DartifactId=integration -Dversion=1.1.0-GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.broadleafcommerce:broadleaf-admin:war:1.1.0-GA
2) org.broadleafcommerce:integration:jar:1.1.0-GA

----------
2 required artifacts are missing.

for artifact:
org.broadleafcommerce:broadleaf-admin:war:1.1.0-GA

from the specified remote repositories:
jboss.com (http://repository.jboss.com/maven2),
java.net (http://download.java.net/maven/1),
localrepo (file://C:\Documents and Settings\A158852\My Documents\Software\Broadleaf Commerce\src\site\BroadleafCommerceAdmin/lib),
eviware (http://www.eviware.com/repository/maven2),
flex-mojos-repository (http://repository.sonatype.org/content/groups/flexgroup),
central (http://repo1.maven.org/maven2)

Group-Id: org.broadleafcommerce
Artifact-Id: broadleaf-admin
Version: 1.1.0-GA


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run with the -e flag
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILED
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24 seconds
[INFO] Finished at: Tue Aug 10 15:18:15 GMT+05:30 2010
[INFO] Final Memory: 2M/8M
[INFO] ------------------------------------------------------------------------

Re: The maven build failed due to 2 artifacts missing.

Posted: Tue Aug 10, 2010 8:20 am
by jefffischer
For the eclipse/maven tutorial (I assume this is what you're following), I mention a step where you must add the broadleaf maven repository to your pom. It looks like perhaps you did not do this? Also, I would suggest using the 1.1.1 GA release instead.