Page 1 of 1

Unable to resolve artifact error when starting jetty-demo

Posted: Sun Feb 23, 2014 12:13 pm
by JeF
I'm trying to get started with Heat Clinic. I followed the manual and downloaded the eclipse workspace. All steps were fine but when I run jetty-demo on site ant file I got following error:
====================
Buildfile: C:\dev\BL\eclipse-workspace\DemoSite\site\build.xml
start-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 'org.apache.hadoop:hadoop-annotations:jar': Cannot find parent: org.apache.hadoop:hadoop-project for project: org.apache.hadoop:hadoop-annotations:jar:2.0.5-alpha for project org.apache.hadoop:hadoop-annotations:jar:2.0.5-alpha
[artifact:dependencies] org.apache.hadoop:hadoop-annotations:jar:2.0.5-alpha
[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/nexu ... snapshots/),
[artifact:dependencies] sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots),
[artifact:dependencies] public releases (http://nexus.broadleafcommerce.org/nexu ... /releases/),
[artifact:dependencies] maven-restlet (http://maven.restlet.org)
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) com.mycompany:site:war:1.0
[artifact:dependencies] 2) com.mycompany:core:jar:1.0
[artifact:dependencies] 3) org.broadleafcommerce:broadleaf-framework:jar:3.1.0-GA
[artifact:dependencies] 4) org.apache.solr:solr-core:jar:4.4.0
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies] end tag not allowed in epilog but got / (position: END_TAG seen ...</profiles>\n</project>\n </... @993:5)
[artifact:dependencies]

BUILD FAILED
C:\dev\BL\eclipse-workspace\DemoSite\site\build.xml:96: Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'org.apache.hadoop:hadoop-annotations:jar': Cannot find parent: org.apache.hadoop:hadoop-project for project: org.apache.hadoop:hadoop-annotations:jar:2.0.5-alpha for project org.apache.hadoop:hadoop-annotations:jar:2.0.5-alpha
org.apache.hadoop:hadoop-annotations:jar:2.0.5-alpha

from the specified remote repositories:
apache.snapshots (http://repository.apache.org/snapshots),
central (http://repo1.maven.org/maven2),
public snapshots (http://nexus.broadleafcommerce.org/nexu ... snapshots/),
sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots),
public releases (http://nexus.broadleafcommerce.org/nexu ... /releases/),
maven-restlet (http://maven.restlet.org)

Path to dependency:
1) com.mycompany:site:war:1.0
2) com.mycompany:core:jar:1.0
3) org.broadleafcommerce:broadleaf-framework:jar:3.1.0-GA
4) org.apache.solr:solr-core:jar:4.4.0



Total time: 1 second


Please help

Thanks

Re: Unable to resolve artifact error when starting jetty-demo

Posted: Sun Feb 23, 2014 11:42 pm
by daniel_locious
Hi there,
I tried the same process myself; I think if following the "getting start" guide you should be fine.
My experience is, after you initialize your build (like run ant on the Demosite/build.xml), and you'd defined your package name "com.xxxCompany", you should run maven install as hinted on the guide. This could help refreshing the workspace. and my understanding is this also helps on update the dependencies.

After that you run the ant site/build.xml and admin/build.xml, it should work.

Re: Unable to resolve artifact error when starting jetty-demo

Posted: Tue Feb 25, 2014 8:14 am
by nestaole
news?