Page 1 of 1

After Successful maven install, jetty demo is not working

Posted: Wed Nov 13, 2013 5:24 am
by sanjoy
Buildfile: C:\Users\MANIDEEPA\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-common:jar': Cannot find parent: org.apache.hadoop:hadoop-project-dist for project: org.apache.hadoop:hadoop-common:jar:2.0.5-alpha for project org.apache.hadoop:hadoop-common:jar:2.0.5-alpha
[artifact:dependencies] org.apache.hadoop:hadoop-common: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.heatclinic:site:war:1.0
[artifact:dependencies] 2) com.heatclinic:core:jar:1.0
[artifact:dependencies] 3) org.broadleafcommerce:broadleaf-framework:jar:3.0.3-GA
[artifact:dependencies] 4) org.apache.solr:solr-core:jar:4.4.0
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies] in epilog non whitespace content is not allowed but got s (position: END_TAG seen ...</profiles>\n</project>\ns... @426:2)
[artifact:dependencies]

BUILD FAILED
C:\Users\MANIDEEPA\eclipse-workspace\DemoSite\site\build.xml:93: Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'org.apache.hadoop:hadoop-common:jar': Cannot find parent: org.apache.hadoop:hadoop-project-dist for project: org.apache.hadoop:hadoop-common:jar:2.0.5-alpha for project org.apache.hadoop:hadoop-common:jar:2.0.5-alpha
org.apache.hadoop:hadoop-common: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.heatclinic:site:war:1.0
2) com.heatclinic:core:jar:1.0
3) org.broadleafcommerce:broadleaf-framework:jar:3.0.3-GA
4) org.apache.solr:solr-core:jar:4.4.0



Total time: 10 seconds

Re: After Successful maven install, jetty demo is not working

Posted: Wed Nov 13, 2013 6:29 am
by gazk
I had the same problem. You can fix it by deleting the C:\Users\UserName\.m2\repository\org\apache\hadoop folder and trying again.

Re: After Successful maven install, jetty demo is not working

Posted: Fri Nov 15, 2013 2:33 pm
by sanjoy
I tried that multiple times, but no luck....

Re: After Successful maven install, jetty demo is not working

Posted: Wed Dec 04, 2013 10:07 am
by Arthi
Hi,
Try configuring ur local repository path in site/build.xml

<target name="start-db">
<!-- retrieve the web project pom file and import its jar dependencies -->
<artifact:pom id="warPom" file="pom.xml"/>
<artifact:dependencies filesetId="warDeps" pomRefId="warPom" useScope="test">
<localRepository path="D:/.m2/repo"/>
</artifact:dependencies>

Re: After Successful maven install, jetty demo is not working

Posted: Thu Dec 05, 2013 4:14 am
by bpolster