You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tony Chemit (JIRA)" <ji...@codehaus.org> on 2011/09/21 16:32:17 UTC

[jira] Commented: (MINVOKER-107) mvn deploy of SNAPSHOT failed with maven3 when invoker:run look for current build dependency

    [ https://jira.codehaus.org/browse/MINVOKER-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=279535#comment-279535 ] 

Tony Chemit commented on MINVOKER-107:
--------------------------------------

Your workaround is not acceptable for me : using directly the local repository spoils it.

We have the same problem on the project http://svn.nuiton.org/svn/topia/trunk/, but what is amazing is that sometimes it works and some other time it does NOT :

Example (not working):

{noformat}[INFO] Installing /home/maven-release/projets/nuiton-central/topia/pom.xml to /home/maven-release/projets/nuiton-central/topia/topia-persistence/target/local-repo/org/nuiton/topia/2.6.2-SNAPSHOT/topia-2.6.2-20110921.121707-5.pom
{noformat}

Example (is working):
{noformat}[INFO] Installing /home/tchemit/projets/nuiton-central/topia/pom.xml to /home/tchemit/projets/nuiton-central/topia/topia-persistence/target/local-repo/org/nuiton/topia/2.6.2-SNAPSHOT/topia-2.6.2-SNAPSHOT.pom
{noformat}

Is there a problem with the ArtifactInstaller tool ?



> mvn deploy of SNAPSHOT failed with maven3 when invoker:run look for current build dependency
> --------------------------------------------------------------------------------------------
>
>                 Key: MINVOKER-107
>                 URL: https://jira.codehaus.org/browse/MINVOKER-107
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: Apache Maven 3.0 (r1004208; 2010-10-04 13:50:56+0200)
> Java version: 1.6.0_22
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.22/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.32-25-generic-pae" arch: "i386" Family: "unix"
>            Reporter: ludovic
>
> When I build http://code.google.com/p/mycila/source/browse/mycila-testing/trunk?r=1448 on revision 1448, the build failed. r1449 is a workaround.
> the maven command is : mvn clean deploy
> the build failed when running plugin invoker:run with maven3 BUT succeed with maven2
> the failure is due of a missing artifact in the its local repository, the searched version is a SNAPSHOT, the present version is a timestamped SNAPSHOT
> the dependency com.mycila.testing:mycila-testing-api:jar:2.6-SNAPSHOT is not found because the invoker:install copy the SNAPSHOT with the timestamp during deploy. And then after during the test, the dependency could not be found. The reason is because maven3 always deploy using a timestamped version.
> @see https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCompatibilityNotes-NonuniqueSnapshotDeployments
> ! workaround
> remove <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> from the invoker configuration

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira