[ http://jira.codehaus.org/browse/MNG-2097?page=comments#action_63375 ]
Felipe Leme commented on MNG-2097:
----------------------------------
Olivier,
I agree with you that such phase is necessary, but that might be situations
where you need to use the same package on the integration-test phase and only
change it right before install. So, it might be better to add 2 new phases,
'prepare-package' (or 'pre-package') as proposed and 'pre-install'.
Also, it's necessary a tool (probably a plugin) to facilitate this preparation;
something like a maven-package-tuner-plugin which takes as configuration the
files to be included/excluded from the package. Something like:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-package-tuner-plugin</artifactId>
<configuration>
<excludes>/classes/**Mock*.class</excludes>
<excludes>/test.jsp</excludes>
<includes>
<dir>src/it/resources</dir>
<files>*.xml</files>
</includes>
</configuration>
</plugin>
Of course, this is just an example - the real plugin should use a familiar
includes/excludes syntax (like the Ant way).
-- Felipe
> adding a phase called prepare-package
> -------------------------------------
>
> Key: MNG-2097
> URL: http://jira.codehaus.org/browse/MNG-2097
> Project: Maven 2
> Type: New Feature
> Components: Plugins and Lifecycle
> Versions: 2.0.2
> Environment: all
> Reporter: Olivier Lamy
> Attachments: MNG-2097.diff
>
>
> Hi,
> I have an artifact (packaging war).
> I have some jobs to do (xdoclet-maven-plugin others internal plugin) which
> are only needed for included materials in the war :
> - web.xml
> - automatic generated pages (about page etc..)
> Actually I attached it tho the phase process-classes or test.
> But when I just want to try a simple the simple : mvn -Dtest=something clean
> test.
> All of my .java are parsed by the plugin and all other jobs made whereas this
> should be done in a phase just before packaging.
> I really need a phase just before package to place all this jobs.
> Probably this can be extends to phase deploy.
> Olivier
--
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