Issue Details (XML | Word | Printable)

Key: MPMULTIPROJECT-49
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Jesper Tejlgaard Pedersen
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1.x Multi-Project Plugin

Can not mix multiproject goals with other/custom goals

Created: 07/Jan/05 06:20 AM   Updated: 20/Sep/05 12:10 PM   Resolved: 20/Sep/05 12:10 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 1.5

Time Tracking:
Not Specified

Environment:
windows 2000
cruisecontrol
maven 1.0.2
java 1.4.2
Issue Links:
Related
 


 Description  « Hide

I would like to configure the multiproject plug-in to run checkstyle separately on our buildserver.
We are trying to run maven using the command
maven -Dgoal checkstyle multiproject:install multiproject:goal multiproject:clean multiproject:deploy

This however only results in an execution which could have been described as
maven multiproject:install multiproject:install multiproject:clean multiproject:deploy.

That is: install is runned twice instead of running install followed by checkstyle.



Brett Porter added a comment - 07/Jan/05 06:23 AM

until the bug is fixed you can try this:

maven multiproject:install mygoal multiproject:clean multiproject:deploy

in your maven.xml, add:
<goal name="mygoal">
<j:set var="goal" value="checkstyle" />
<attainGoal name="multiproject:goal" />
</goal>


dion gillard made changes - 14/Apr/05 08:52 PM
Field Original Value New Value
Assignee dion gillard [ diongillard ]
Michal Slocinski added a comment - 05/Sep/05 01:51 AM

Workaround given here doesn't work for me :-/ I've similar situation like described below,
except that I'm tryining to run goal defined in my custom plugin.


Jesper Tejlgaard Pedersen added a comment - 05/Sep/05 02:42 AM

The workaround I used myself was actually slightly different. I added the following to all maven.xml files, which were in the projects included in the multiproject build.

<preGoal name="java:compile">
<echo>Custom forced checkstyle</echo>
<attainGoal name="checkstyle"/>
</preGoal>

and still achieved the functionality that I wanted....

I do not know wether this will work for you Michal, as you have written your own custom plugin.


Lukas Theussl made changes - 16/Sep/05 11:02 AM
Link This issue is related to MAVEN-1691 [ MAVEN-1691 ]
Lukas Theussl made changes - 16/Sep/05 11:02 AM
Description I would like to configure the multiproject plug-in to run checkstyle separately on our buildserver.
We are trying to run maven using the command
maven -Dgoal checkstyle multiproject:install multiproject:goal multiproject:clean multiproject:deploy

This however only results in an execution which could have been described as
maven multiproject:install multiproject:install multiproject:clean multiproject:deploy.

That is: install is runned twice instead of running install followed by checkstyle.
I would like to configure the multiproject plug-in to run checkstyle separately on our buildserver.
We are trying to run maven using the command
maven -Dgoal checkstyle multiproject:install multiproject:goal multiproject:clean multiproject:deploy

This however only results in an execution which could have been described as
maven multiproject:install multiproject:install multiproject:clean multiproject:deploy.

That is: install is runned twice instead of running install followed by checkstyle.
Environment windows 2000
cruisecontrol
maven 1.0.2
java 1.4.2
windows 2000
cruisecontrol
maven 1.0.2
java 1.4.2
Fix Version/s 1.5 [ 11768 ]
Lukas Theussl made changes - 20/Sep/05 12:10 PM
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]