Page 1 of 1

Problem importing maven projects

Posted: Mon Jul 08, 2013 9:35 pm
by masarath
Hi,

I followed the getting started documentation, I am getting error when I'm importing project under Maven parents-->DemoSite.

Could not write metadata for '/DemoSite'.
C:\mildOrange\eclipse-workspace\.metadata\.plugins\org.eclipse.core.resources\.projects\DemoSite\.markers.snap (The system cannot find the path specified)

When I looked at the problem's, there are 481 problems some thing like this....

Description Resource Path Location Type
ArtifactDescriptorException: Failed to read artifact descriptor for com.sun.jersey:jersey-core:jar:1.11: ArtifactResolutionException: Failure to transfer com.sun.jersey:jersey-core:pom:1.11 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact com.sun.jersey:jersey-core:pom:1.11 from/to central (http://repo.maven.apache.org/maven2): C:\Users\durraj\.m2\repository\com\sun\jersey\jersey-core\1.11\jersey-core-1.11.pom.ahc6b2de55c47b34499 (The system cannot find the file specified) pom.xml /admin line 1 Maven Dependency Problem


Any help is appreciated.

Thanks,
Masarath.

Re: Problem importing maven projects

Posted: Tue Jul 30, 2013 7:12 am
by heikki
I have the same problem, at least with the "Could not write metadata" error.

But I only have 10 errors in the "Problems" -tab, which seem to be caused by some missing Maven dependency: "Missing artifact org.eclipse:osgi:jar:3.6.0.v20100517"

I'm using Eclipse Kepler for Mac OSX.

Re: Problem importing maven projects

Posted: Tue Nov 12, 2013 12:31 pm
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