Hi,

yesterday I run into some compilation errors. It always ended with maven that 
wanted to build the DSpace Addon Modules but was unable to find 
org.dspace:dspace-api:jar:4.0-SNAPSHOT.

I deleted the directory ~/.m2 to be sure it does not have anything to do with 
my local maven repository/cache. But this didn't helped. I did several things 
to debug the problem and finally I set up a new clean virtual machine to be 
sure that there are no local problems with any caches, maven repositories or so 
on. I installed Ubuntu 12.10 LTS on the new virtual machine, openjdk-7, maven , 
ant and git. I cloned http://github.com/DSpace/DSpace.git into ~/dspace and 
changed into ~/dspace/dspace. I run mvn package to compile and the same error 
repeated.

While writing this mail, I noticed the following output of mvn -e package:
Downloading: 
https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-api/4.0-SNAPSHOT/dspace-api-4.0-SNAPSHOT.pom
[WARNING] The POM for org.dspace:dspace-api:jar:4.0-SNAPSHOT is missing, no 
dependency information available

I'm not really familiar with maven and sonatype. Why does it tries to download 
dspace-apit-4.0-SNAPSHOT.pom? Is it the same file as dspace-api/pom.xml? What 
can I do to make it compile again?

Regards,
  Pascal

P.s. the output of mvn -e package, I only remove successful downloads, that did 
not had "dspace" in its path:

~/dspace/dspace$ mvn -e package
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
Downloading: 
http://oss.sonatype.org/content/repositories/releases/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloading: 
http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
 (5 KB at 87.2 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] DSpace Addon Modules
[INFO] DSpace Kernel :: Additions and Local Customizations
[INFO] DSpace XML-UI (Manakin) :: Local Customizations
[INFO] DSpace LNI :: Local Customizations
[INFO] DSpace JSP-UI :: Local Customizations
[INFO] DSpace SWORD :: Local Customizations
[INFO] DSpace SWORD v2 :: Local Customizations
[INFO] DSpace SOLR :: Local Customizations
[INFO] DSpace OAI 2.0 :: Local Customizations
[INFO] DSpace Assembly and Configuration
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace Addon Modules 4.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-enforcer-plugin/1.0/maven-enforcer-plugin-1.0.pom
...
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-enforcer-plugin/1.0/maven-enforcer-plugin-1.0.jar
 (22 KB at 413.1 KB/sec)
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ modules ---
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.9/maven-artifact-2.0.9.pom
...
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
 (34 KB at 199.7 KB/sec)
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace Kernel :: Additions and Local Customizations 4.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
...
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.3.2/maven-jar-plugin-2.3.2.jar
 (32 KB at 470.4 KB/sec)
Downloading: 
http://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api/4.0-SNAPSHOT/maven-metadata.xml
Downloading: 
https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-api/4.0-SNAPSHOT/maven-metadata.xml
Downloading: 
http://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api/4.0-SNAPSHOT/dspace-api-4.0-SNAPSHOT.pom
Downloading: 
https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-api/4.0-SNAPSHOT/dspace-api-4.0-SNAPSHOT.pom
[WARNING] The POM for org.dspace:dspace-api:jar:4.0-SNAPSHOT is missing, no 
dependency information available
Downloading: 
http://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api-lang/maven-metadata.xml
Downloading: 
http://repo.maven.apache.org/maven2/org/dspace/dspace-api-lang/maven-metadata.xml
Downloading: 
https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-api-lang/maven-metadata.xml
Downloaded: 
http://repo.maven.apache.org/maven2/org/dspace/dspace-api-lang/maven-metadata.xml
 (823 B at 20.1 KB/sec)
Downloaded: 
http://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api-lang/maven-metadata.xml
 (823 B at 1.9 KB/sec)
Downloaded: 
https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-api-lang/maven-metadata.xml
 (325 B at 0.3 KB/sec)
Downloading: 
http://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api-lang/3.0.0/dspace-api-lang-3.0.0.pom
Downloaded: 
http://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api-lang/3.0.0/dspace-api-lang-3.0.0.pom
 (4 KB at 8.0 KB/sec)
Downloading: 
http://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api-lang/3.0.1/dspace-api-lang-3.0.1.pom
Downloaded: 
http://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api-lang/3.0.1/dspace-api-lang-3.0.1.pom
 (4 KB at 7.3 KB/sec)
Downloading: 
http://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api-lang/3.0.2/dspace-api-lang-3.0.2.pom
Downloaded: 
http://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api-lang/3.0.2/dspace-api-lang-3.0.2.pom
 (4 KB at 8.0 KB/sec)
Downloading: 
http://oss.sonatype.org/content/repositories/releases/javax/servlet/servlet-api/2.4/servlet-api-2.4.pom
...
Downloaded: 
http://repo.maven.apache.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.pom
 (761 B at 8.5 KB/sec)
Downloading: 
http://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api/4.0-SNAPSHOT/dspace-api-4.0-SNAPSHOT.jar
Downloading: 
http://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api-lang/3.0.2/dspace-api-lang-3.0.2.jar
Downloading: 
http://oss.sonatype.org/content/repositories/releases/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar
Downloading: 
http://oss.sonatype.org/content/repositories/releases/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
Downloaded: 
http://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api-lang/3.0.2/dspace-api-lang-3.0.2.jar
 (707 KB at 317.1 KB/sec)
Downloading: 
https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-api/4.0-SNAPSHOT/dspace-api-4.0-SNAPSHOT.jar
Downloading: 
http://repo.maven.apache.org/maven2/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar
Downloading: 
http://repo.maven.apache.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
Downloaded: 
http://repo.maven.apache.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
 (220 KB at 1634.5 KB/sec)
Downloaded: 
http://repo.maven.apache.org/maven2/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar
 (96 KB at 332.4 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] DSpace Addon Modules .............................. SUCCESS [5.819s]
[INFO] DSpace Kernel :: Additions and Local Customizations  FAILURE [10.088s]
[INFO] DSpace XML-UI (Manakin) :: Local Customizations ... SKIPPED
[INFO] DSpace LNI :: Local Customizations ................ SKIPPED
[INFO] DSpace JSP-UI :: Local Customizations ............. SKIPPED
[INFO] DSpace SWORD :: Local Customizations .............. SKIPPED
[INFO] DSpace SWORD v2 :: Local Customizations ........... SKIPPED
[INFO] DSpace SOLR :: Local Customizations ............... SKIPPED
[INFO] DSpace OAI 2.0 :: Local Customizations ............ SKIPPED
[INFO] DSpace Assembly and Configuration ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.724s
[INFO] Finished at: Fri Mar 01 15:03:20 CET 2013
[INFO] Final Memory: 7M/20M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project additions: Could not resolve 
dependencies for project org.dspace.modules:additions:jar:4.0-SNAPSHOT: Could 
not find artifact org.dspace:dspace-api:jar:4.0-SNAPSHOT in sonatype-releases 
(http://oss.sonatype.org/content/repositories/releases/) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
on project additions: Could not resolve dependencies for project 
org.dspace.modules:additions:jar:4.0-SNAPSHOT: Could not find artifact 
org.dspace:dspace-api:jar:4.0-SNAPSHOT in sonatype-releases 
(http://oss.sonatype.org/content/repositories/releases/)
        at 
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
        at 
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not 
resolve dependencies for project org.dspace.modules:additions:jar:4.0-SNAPSHOT: 
Could not find artifact org.dspace:dspace-api:jar:4.0-SNAPSHOT in 
sonatype-releases (http://oss.sonatype.org/content/repositories/releases/)
        at 
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189)
        at 
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
        ... 22 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could 
not find artifact org.dspace:dspace-api:jar:4.0-SNAPSHOT in sonatype-releases 
(http://oss.sonatype.org/content/repositories/releases/)
        at 
org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
        at 
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
        ... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could 
not find artifact org.dspace:dspace-api:jar:4.0-SNAPSHOT in sonatype-releases 
(http://oss.sonatype.org/content/repositories/releases/)
        at 
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
        at 
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
        at 
org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
        ... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not 
find artifact org.dspace:dspace-api:jar:4.0-SNAPSHOT in sonatype-releases 
(http://oss.sonatype.org/content/repositories/releases/)
        at 
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:947)
        at 
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:939)
        at 
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:669)
        at 
org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :additions
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to