[ http://jira.codehaus.org/browse/MINVOKER-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=210395#action_210395 ]
Matthew McCullough commented on MINVOKER-99: -------------------------------------------- Benjamin - When you say wrong, can you be more specific? I'm not quite following where I should be looking to fix this yet. In the pom.xml, I have this parameter specified as {{<localRepositoryPath>${project.build.directory}/it/repo</localRepositoryPath>}} which should resolve at POM interpolation time, right? If I look at the {{localRepositoryPath}} parameter passed in to the invoker plugin in the Maven3MainBuild.log file attached earlier, I see it fully resolved to the complete path {{/Users/mccm06/Documents/Temp/Scratch/quickstart-itbrokenonmaven3/target/it/repo}}: {{ [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-invoker-plugin:1.5:install (integration-test) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?> <configuration> <localRepository>${localRepository}</localRepository> <localRepositoryPath>/Users/mccm06/Documents/Temp/Scratch/quickstart-itbrokenonmaven3/target/it/repo</localRepositoryPath> <project>${project}</project> <reactorProjects default-value="${reactorProjects}"/> <skipInstallation default-value="false">${invoker.skip}</skipInstallation> </configuration> [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:integration-test (default-integration-test) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?> <configuration> <project>${project}</project> <skip>${archetype.test.skip}</skip> </configuration> [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-invoker-plugin:1.5:run (integration-test) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?> <configuration> <addTestClassPath default-value="false">${invoker.addTestClassPath}</addTestClassPath> <cloneAllFiles default-value="false"/> <cloneProjectsTo>/Users/mccm06/Documents/Temp/Scratch/quickstart-itbrokenonmaven3/target/it/projects</cloneProjectsTo> <debug default-value="false">${invoker.debug}</debug> <disableReports default-value="false">${invoker.disableReports}</disableReports> <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding> <goals> <goal>org.apache.maven.plugins:maven-archetype-plugin:generate</goal> </goals> <goalsFile default-value="goals.txt">${invoker.goalsFile}</goalsFile> <ignoreFailures default-value="false">${maven.test.failure.ignore}</ignoreFailures> <invokerPropertiesFile default-value="invoker.properties">${invoker.invokerPropertiesFile}</invokerPropertiesFile> <invokerTest>${invoker.test}</invokerTest> <javaHome>${invoker.javaHome}</javaHome> <localRepositoryPath default-value="${settings.localRepository}">/Users/mccm06/Documents/Temp/Scratch/quickstart-itbrokenonmaven3/target/it/repo</localRepositoryPath> <mavenHome>${invoker.mavenHome}</mavenHome> <mavenOpts>${invoker.mavenOpts}</mavenOpts> <noLog default-value="false">${invoker.noLog}</noLog> <pom>${invoker.pom}</pom> <pomIncludes> <pomInclude>*</pomInclude> </pomIncludes> <postBuildHookScript default-value="postbuild">${invoker.postBuildHookScript}</postBuildHookScript> <preBuildHookScript default-value="prebuild">${invoker.preBuildHookScript}</preBuildHookScript> <profilesFile default-value="profiles.txt">${invoker.profilesFile}</profilesFile> <project>${project}</project> <projectsDirectory default-value="${basedir}/src/it/">/Users/mccm06/Documents/Temp/Scratch/quickstart-itbrokenonmaven3/src/it/projects</projectsDirectory> <properties> <archetypeArtifactId>quickstartBROKENIT</archetypeArtifactId> <archetypeGroupId>org.sonatype.maven.archetype</archetypeGroupId> <archetypeRepository>local</archetypeRepository> <archetypeVersion>0.8.4-SNAPSHOT</archetypeVersion> <goals>install</goals> <interactiveMode>false</interactiveMode> </properties> <reportsDirectory default-value="${project.build.directory}/invoker-reports">${invoker.reportsDirectory}</reportsDirectory> <selectorScript default-value="selector">${invoker.selectorScript}</selectorScript> <settings>${settings}</settings> <settingsFile>${invoker.settingsFile}</settingsFile> <showErrors default-value="false">${invoker.showErrors}</showErrors> <showVersion default-value="false">${invoker.showVersion}</showVersion> <skipInvocation default-value="false">${invoker.skip}</skipInvocation> <streamLogs default-value="false">true</streamLogs> <suppressSummaries default-value="false"/> <testClassPath default-value="${project.testClasspathElements}"/> <testPropertiesFile default-value="test.properties">${invoker.testPropertiesFile}</testPropertiesFile> </configuration> }} > Final JAR artifact for archetype not install(ed) into localRepositoryUrl on > Mavne 3.0-alpha-6 > --------------------------------------------------------------------------------------------- > > Key: MINVOKER-99 > URL: http://jira.codehaus.org/browse/MINVOKER-99 > Project: Maven 2.x Invoker Plugin > Issue Type: Bug > Affects Versions: 1.5 > Environment: MacOS 10.6.2 with Maven 3.0-alpha6 > Reporter: Matthew McCullough > Attachments: Maven2MainBuild.log, Maven2Success_BUILD-quickstart.xml, > Maven2Success_build.log, Maven3Failure_BUILD-quickstart.xml, > Maven3Failure_build.log, Maven3MainBuild.log, quickstart-itbrokenonmaven3.zip > > > I'm coding on an archetype project > (http://github.com/sonatype/sonatype-archetype) and am using the install goal > of Invoker 1.5. If I use an alternate repo with the <localRepositoryUrl>, > the archetype JAR is not copied into the local repo location. If I use Maven > 2.2.1, the resource is copied into the localRepositoryUrl location with no > problem. > I've commented out the <install> and <localRepositoryUrl> tags in the > committed version so that it passes when built with Maven 3.0-alpha-6. > File: > http://github.com/sonatype/sonatype-archetype/blob/master/archetype-archetypes/quickstart/pom.xml > To reproduce this. > 1) Download Maven 3.0-alpha-6 > 2) Set it to be your active maven version > 3) git clone g...@github.com:sonatype/sonatype-archetype.git > 4) Hijack and uncomment the <goal>install</goal> and > <localRepositoryPath>${project.build.directory}/it/repo</localRepositoryPath> > in the file archetype-archetypes/quickstart/pom.xml > 5) build the entire source tree with "mvn install" > 5) It will fail with the following error: > [INFO] [INFO] > ------------------------------------------------------------------------ > [INFO] [INFO] BUILD FAILURE > [INFO] [INFO] > ------------------------------------------------------------------------ > [INFO] [INFO] Total time: 15.576s > [INFO] [INFO] Finished at: Mon Feb 15 19:49:33 MST 2010 > [INFO] [INFO] Final Memory: 6M/80M > [INFO] [INFO] > ------------------------------------------------------------------------ > [INFO] [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate > (default-cli) on project standalone-pom: The desired archetype does not exist > (org.sonatype.maven.archetype:quickstart:0.8.4-SNAPSHOT) -> [Help 1] > [INFO] [ERROR] > [INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with > the -e switch. > [INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [INFO] [ERROR] > [INFO] [ERROR] For more information about the errors and possible solutions, > please read the following articles: > [INFO] [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException > [INFO] ..FAILED (16.8 s) > [INFO] The build exited with code 1. See > /Users/mccm06/Documents/Code/OpenSourceContribs/sonatype-archetype_git/archetype-archetypes/quickstart/target/it/projects/quickstart/build.log > for details. > [INFO] ------------------------------------------------- > [INFO] Build Summary: > [INFO] Passed: 0, Failed: 1, Errors: 0, Skipped: 0 > [INFO] ------------------------------------------------- > [ERROR] The following builds failed: > [ERROR] * quickstart > [INFO] ------------------------------------------------- > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 21.310s > [INFO] Finished at: Mon Feb 15 19:49:34 MST 2010 > [INFO] Final Memory: 8M/80M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-invoker-plugin:1.5:run (integration-test) on > project quickstart: 1 build failed. -> [Help 1] -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira