Created
October 4, 2011 19:52
-
-
Save aheritier/1262608 to your computer and use it in GitHub Desktop.
Maven doesn't find a dependency available in the local repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA is an artifact in a nexus staging repository (jboss) | |
I launch the build a first time with a profile activting the repository where the dep can be downloaded. The build succeed. | |
I launch it a second time without the profile as it already has the missing dep and it fails | |
$ mvn clean install -X | grep exo.kernel.commons | |
[DEBUG] Verifying availability of /Users/arnaud/.m2/repository/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.pom from [exo-fr-mirror (http://repository.exoplatform.org/public, releases+snapshots), exo.private (http://repository.exoplatform.org/private, releases+snapshots)] | |
[DEBUG] Skipped remote update check for org.exoplatform.kernel:exo.kernel.commons:pom:2.2.10-GA, locally cached artifact up-to-date. | |
Downloading: http://repository.exoplatform.org/public/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.pom | |
[DEBUG] Reading resolution tracking file /Users/arnaud/.m2/repository/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.pom.lastUpdated | |
[DEBUG] Writing resolution tracking file /Users/arnaud/.m2/repository/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.pom.lastUpdated | |
[DEBUG] Skipped remote update check for org.exoplatform.kernel:exo.kernel.commons:pom:2.2.10-GA, locally cached artifact up-to-date. | |
Downloading: http://repository.exoplatform.org/private/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.pom | |
[DEBUG] Reading resolution tracking file /Users/arnaud/.m2/repository/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.pom.lastUpdated | |
[DEBUG] Writing resolution tracking file /Users/arnaud/.m2/repository/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.pom.lastUpdated | |
[WARNING] The POM for org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA is missing, no dependency information available | |
[DEBUG] org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA:provided | |
[DEBUG] Verifying availability of /Users/arnaud/.m2/repository/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.jar from [exo-fr-mirror (http://repository.exoplatform.org/public, releases+snapshots), exo.private (http://repository.exoplatform.org/private, releases+snapshots)] | |
[DEBUG] Skipped remote update check for org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA, locally cached artifact up-to-date. | |
Downloading: http://repository.exoplatform.org/public/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.jar | |
[DEBUG] Reading resolution tracking file /Users/arnaud/.m2/repository/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.jar.lastUpdated | |
[DEBUG] Writing resolution tracking file /Users/arnaud/.m2/repository/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.jar.lastUpdated | |
[DEBUG] Skipped remote update check for org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA, locally cached artifact up-to-date. | |
Downloading: http://repository.exoplatform.org/private/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.jar | |
[DEBUG] Reading resolution tracking file /Users/arnaud/.m2/repository/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.jar.lastUpdated | |
[DEBUG] Writing resolution tracking file /Users/arnaud/.m2/repository/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/exo.kernel.commons-2.2.10-GA.jar.lastUpdated | |
[ERROR] Failed to execute goal on project sonaca-social-config: Could not resolve dependencies for project com.sonaca.social:sonaca-social-config:jar:1.0.0: The following artifacts could not be resolved: org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.common:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.container:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.cache:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.ext.cache.impl.jboss.v3:jar:2.2.10-GA, org.exoplatform.core:exo.core.component.database:jar:2.3.10-GA, org.exoplatform.jcr:exo.jcr.component.core:jar:1.12.10-GA, org.exoplatform.core:exo.core.component.organization.jdbc:jar:2.3.10-GA, org.exoplatform.core:exo.core.component.organization.api:jar:2.3.10-GA, org.exoplatform.jcr:exo.jcr.component.ext:jar:1.12.10-GA, org.exoplatform.social:exo.social.component.core:jar:1.1.6: Could not find artifact org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA in exo-fr-mirror (http://repository.exoplatform.org/public) -> [Help 1] | |
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonaca-social-config: Could not resolve dependencies for project com.sonaca.social:sonaca-social-config:jar:1.0.0: The following artifacts could not be resolved: org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.common:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.container:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.cache:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.ext.cache.impl.jboss.v3:jar:2.2.10-GA, org.exoplatform.core:exo.core.component.database:jar:2.3.10-GA, org.exoplatform.jcr:exo.jcr.component.core:jar:1.12.10-GA, org.exoplatform.core:exo.core.component.organization.jdbc:jar:2.3.10-GA, org.exoplatform.core:exo.core.component.organization.api:jar:2.3.10-GA, org.exoplatform.jcr:exo.jcr.component.ext:jar:1.12.10-GA, org.exoplatform.social:exo.social.component.core:jar:1.1.6: Could not find artifact org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA in exo-fr-mirror (http://repository.exoplatform.org/public) | |
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project com.sonaca.social:sonaca-social-config:jar:1.0.0: The following artifacts could not be resolved: org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.common:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.container:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.cache:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.ext.cache.impl.jboss.v3:jar:2.2.10-GA, org.exoplatform.core:exo.core.component.database:jar:2.3.10-GA, org.exoplatform.jcr:exo.jcr.component.core:jar:1.12.10-GA, org.exoplatform.core:exo.core.component.organization.jdbc:jar:2.3.10-GA, org.exoplatform.core:exo.core.component.organization.api:jar:2.3.10-GA, org.exoplatform.jcr:exo.jcr.component.ext:jar:1.12.10-GA, org.exoplatform.social:exo.social.component.core:jar:1.1.6: Could not find artifact org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA in exo-fr-mirror (http://repository.exoplatform.org/public) | |
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.common:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.container:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.cache:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.ext.cache.impl.jboss.v3:jar:2.2.10-GA, org.exoplatform.core:exo.core.component.database:jar:2.3.10-GA, org.exoplatform.jcr:exo.jcr.component.core:jar:1.12.10-GA, org.exoplatform.core:exo.core.component.organization.jdbc:jar:2.3.10-GA, org.exoplatform.core:exo.core.component.organization.api:jar:2.3.10-GA, org.exoplatform.jcr:exo.jcr.component.ext:jar:1.12.10-GA, org.exoplatform.social:exo.social.component.core:jar:1.1.6: Could not find artifact org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA in exo-fr-mirror (http://repository.exoplatform.org/public) | |
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.common:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.container:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.cache:jar:2.2.10-GA, org.exoplatform.kernel:exo.kernel.component.ext.cache.impl.jboss.v3:jar:2.2.10-GA, org.exoplatform.core:exo.core.component.database:jar:2.3.10-GA, org.exoplatform.jcr:exo.jcr.component.core:jar:1.12.10-GA, org.exoplatform.core:exo.core.component.organization.jdbc:jar:2.3.10-GA, org.exoplatform.core:exo.core.component.organization.api:jar:2.3.10-GA, org.exoplatform.jcr:exo.jcr.component.ext:jar:1.12.10-GA, org.exoplatform.social:exo.social.component.core:jar:1.1.6: Could not find artifact org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA in exo-fr-mirror (http://repository.exoplatform.org/public) | |
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.exoplatform.kernel:exo.kernel.commons:jar:2.2.10-GA in exo-fr-mirror (http://repository.exoplatform.org/public) | |
But the dep is in my local repo :: | |
$ ls -lsa ~/.m2/repository/org/exoplatform/kernel/exo.kernel.commons/2.2.10-GA/ | |
total 192 | |
0 drwxr-xr-x 9 arnaud staff 306 Oct 4 18:30 . | |
0 drwxr-xr-x 14 arnaud staff 476 Oct 4 18:17 .. | |
8 -rw-r--r-- 1 arnaud staff 223 Oct 4 18:31 _maven.repositories | |
144 -rw-r--r-- 1 arnaud staff 73673 Oct 4 18:30 exo.kernel.commons-2.2.10-GA.jar | |
8 -rw-r--r-- 1 arnaud staff 453 Oct 4 21:48 exo.kernel.commons-2.2.10-GA.jar.lastUpdated | |
8 -rw-r--r-- 1 arnaud staff 40 Oct 4 18:30 exo.kernel.commons-2.2.10-GA.jar.sha1 | |
8 -rw-r--r-- 1 arnaud staff 2048 Oct 4 18:23 exo.kernel.commons-2.2.10-GA.pom | |
8 -rw-r--r-- 1 arnaud staff 453 Oct 4 21:48 exo.kernel.commons-2.2.10-GA.pom.lastUpdated | |
8 -rw-r--r-- 1 arnaud staff 40 Oct 4 18:23 exo.kernel.commons-2.2.10-GA.pom.sha1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment