Le Sat, 25 Sep 2010 11:49:52 +0200,
Tony Chemit <[email protected]> a écrit :
> Hi guys,
>
> Before posting a JIRA bug, I'd like to have our opinion about the regression.
>
> Here is a complete description of the problem :
>
The artifact org.nuiton:mavenpom4labs is available on central if you want to
check it
> There is a profile in the parent pom (org.nuiton:mavenpom4labs:2.2.5) named
> labs-release-profile
> activable by property : performLabsRelease, and which use as defaultGoal
> validate :
>
> <!-- perform a labs release after a successfull release -->
> <profile>
> <id>labs-release-profile</id>
> <activation>
> <property>
> <name>performLabsRelease</name>
> <value>true</value>
> </property>
> </activation>
>
> <properties>
>
> <dryRun>true</dryRun>
> <helper.dryRun>${dryRun}</helper.dryRun>
> <release.version>${project.version}</release.version>
>
> <emailContentFile>src/announcement/release-email-${release.version}.txt</emailContentFile>
> </properties>
> <build>
>
> <defaultGoal>validate</defaultGoal>
>
> <plugins>
>
> <!--
> - check mail content file exists
> -->
> <plugin>
> <artifactId>maven-enforcer-plugin</artifactId>
> <executions>
> <execution>
> <id>check-email-file</id>
> <goals>
> <goal>enforce</goal>
> </goals>
> <phase>validate</phase>
> <inherited>false</inherited>
> <configuration>
> <rules>
> <requireFilesExist>
> <files>
> <file>${emailContentFile}</file>
> </files>
> </requireFilesExist>
> </rules>
> <ignoreCache>true</ignoreCache>
> <failFast>true</failFast>
> <fail>true</fail>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
> <!--
> - send release email
> -->
> <plugin>
> <groupId>org.nuiton</groupId>
> <artifactId>maven-helper-plugin</artifactId>
> <executions>
> <execution>
> <id>send-release-email</id>
> <goals>
> <goal>send-email</goal>
> </goals>
> <phase>validate</phase>
> <inherited>false</inherited>
> <configuration>
>
> <!-- for a multi-module just run on root project -->
> <runOnce>true</runOnce>
> <!--<dryRun>${dryRun}</dryRun>-->
> <emailTitle>[ANN] - ${project.name} ${release.version}
> released</emailTitle>
> <emailContentFile>${emailContentFile}</emailContentFile>
> <mailSender>
> <name>${platform} Release Notification</name>
> <email>nore...@${platform}</email>
> </mailSender>
> <toAddresses>
> <item>${listid}-us...@lists.${platform}</item>
> <item>${listid}-de...@lists.${platform}</item>
> </toAddresses>
> <!--<smtpHost>smtp</smtpHost>-->
> <!-- fix bug #146 -->
> <encoding>iso-8859-1</encoding>
>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
> </plugins>
>
> </build>
> </profile>
>
> In the project, when a do a mvn -DperformLabsRelease (or a mvn
> -Plabs-release-profile ),
>
> It finds the validate phase (otherwise the build will failed) but nothing is
> done (says the plugins executions declared in the profile are not fired).
>
> Here the trace :
>
> Apache Maven 3.0-RC2 (r1000119; 2010-09-22 20:23:26+0200)
> Java version: 1.6.0_21
> Java home: /opt/jdk1.6.0_21/jre
> Default locale: fr_FR, platform encoding: UTF-8
> OS name: "linux" version: "2.6.32-24-generic-pae" arch: "i386" Family: "unix"
> [INFO] Error stacktraces are turned on.
> [DEBUG] Reading user settings from /home/chemit/.m2/settings.xml
> [DEBUG] Reading global settings from /opt/maven/conf/settings.xml
> [DEBUG] Using local repository at /home/chemit/.m2/repository
> [INFO] Scanning for projects...
> [DEBUG] org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-6:
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.2:compile
> [DEBUG] org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-6:compile
> [DEBUG]
> org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6:compile
> [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6:compile
> [DEBUG] Created new class realm
> extension>org.apache.maven.wagon:wagon-ssh-external:1.0-beta-6
> [DEBUG] Created new class realm maven.api
> [DEBUG] Populating class realm
> extension>org.apache.maven.wagon:wagon-ssh-external:1.0-beta-6
> [DEBUG] Included: org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-6
> [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.4.2
> [DEBUG] Included: org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-6
> [DEBUG] Included:
> org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6
> [DEBUG] Extension realms for project org.nuitn.test:observe:pom:1-SNAPSHOT:
> [ClassRealm[extension>org.apache.maven.wagon:wagon-ssh-external:1.0-beta-6,
> parent: ClassRealm[maven.api, parent: null]]]
> [DEBUG] Created new class realm project>org.nuitn.test:observe:1-SNAPSHOT
> [DEBUG] Populating class realm project>org.nuitn.test:observe:1-SNAPSHOT
> [DEBUG] Looking up lifecyle mappings for packaging pom from
> ClassRealm[project>org.nuitn.test:observe:1-SNAPSHOT, parent:
> ClassRealm[maven.api, parent: null]]
> [DEBUG] === REACTOR BUILD PLAN
> ================================================
> [DEBUG] Project: org.nuitn.test:observe:pom:1-SNAPSHOT
> [DEBUG] Tasks: [validate]
> [DEBUG] Style: Regular
> [DEBUG]
> =======================================================================
> [INFO]
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building maven3-bug 1-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Lifecycle default -> [validate, initialize, generate-sources,
> process-sources, generate-resources, process-resources, compile,
> process-classes, generate-test-sources, process-test-sources,
> generate-test-resources, process-test-resources, test-compile,
> process-test-classes, test, prepare-package, package, pre-integration-test,
> integration-test, post-integration-test, verify, install, deploy]
> [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
> [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
> [DEBUG] === PROJECT BUILD PLAN
> ================================================
> [DEBUG] Project: org.nuitn.test:observe:1-SNAPSHOT
> [DEBUG] Dependencies (collect): []
> [DEBUG] Dependencies (resolve): []
> [DEBUG]
> =======================================================================
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1.552s
> [INFO] Finished at: Sat Sep 25 11:45:11 CEST 2010
> [INFO] Final Memory: 2M/76M
> [INFO]
> ------------------------------------------------------------------------
>
> Note that this never works on any of the maven-3* stuff by was working fine
> before.
>
> So Do I open a JIRA ?
>
> thanks for your reply.
>
> ----- Message Transféré -----
>
> Date: Thu, 23 Sep 2010 11:04:20 +0200
> De: Tony Chemit <[email protected]>
> À: [email protected]
> Sujet: Re: [PLEASE TEST] Apache Maven 3.0-RC2
>
>
> Le Wed, 22 Sep 2010 20:44:14 +0200,
> Benjamin Bentmann <[email protected]> a écrit :
>
> > Hi,
> >
> works fine except for a regression I already noticed (and tells in beta-2).
>
> The problem occurs when you use more than one plugin execution declared in
> different profile.
>
> I will make a little example to explain it better and post it to JIRA.
>
> > in preparation for the release of Apache Maven 3.0, the Maven team is
> > seeking your help to discover regressions since Maven 2.x. Everybody
> > interested in taking a preview of the upcoming release for a test drive
> > can get source and binary bundles from this URL:
> >
> > https://repository.apache.org/content/repositories/maven-006/org/apache/maven/apache-maven/3.0-RC2/
> >
> > Before reporting any issues found during testing, please be sure to have
> > a close look at the compatibility notes for Maven 3.x:
> >
> > https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+Compatibility+Notes
> >
> > If you encounter unexpected build issues, please fill a report in JIRA
> > that provides sufficient information to reproduce and analyze the issue:
> >
> > http://jira.codehaus.org/browse/MNG
> >
> > The fixes contained in this release candidate since the 3.0-beta-3
> > release and the previous RC1 can also be seen in JIRA:
> >
> > http://jira.codehaus.org/secure/ReleaseNote.jspa?atl_token=PRIR5ueW-i&version=13142&styleName=Text&projectId=10500&Create=Create
> >
> > Thanks,
> >
> >
> > -The Maven team
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
>
>
>
--
Tony Chemit
--------------------
tél: +33 (0) 2 40 50 29 28
email: [email protected]
http://www.codelutin.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]