hi everybody,
i found out that there seems to be a difference from
using the prereqs attribute in a goal to using attainGoal
tags instead.
the phenomenon is that the prereqs goals seem to be differently
resolved than the attained goals when using a variable that contains
the goal name.
while prereqs='jar:jar' works fine it does not seem to work when
using prereqs='${goalname}' where ${goalname} evaluates to 'jar:jar'
as long as there is no explicit goal named jar:jar in your project's
maven.xml
though leaving prereqs empty and using attaingGoal name='${goalname}'
works out as expected.
is this a bug or expected behviour?
any comments are welcome.
thanx, michael
-----Urspr�ngliche Nachricht-----
Von: Ibbeken Michael
Gesendet: Mittwoch, 22. Oktober 2003 09:46
An: Maven Users List
Betreff: maven-dist-plugin/maven-multiproject-plugin
hi everybody,
i have been using maven here for quite some time now and find it a
valuable tool.
currently, i am setting up a multiproject with quite some subproject,
one of which is an ear subproject.
as we have several remote repositories here and no cvs, we have
built our own deploy plugin.
when i try to run the multiproject with the following list of goals
'dist:build,deploy:custom'
i happened to find out that the dist:build plugin always builds the jar:jar goal
even though
one subproject is supposed to produce an ear.
i suggest that the dist plugin uses a plugin property to set that defines what goal
is to run.
the original code looks like this:
<snip>
<goal name="dist:prepare-bin-filesystem" prereqs="xdoc:init, jar:jar,
javadoc:generate" description="Builds the binary distribution file system.">
</snip>
while the suggested change would look like this
<snip>
<goal
name="dist:prepare-bin-filesystem"
prereqs="xdoc:init, ${maven.multiproject.type}:${maven.multiproject.type},
javadoc:generate"
description="Builds the binary distribution file system.">
</snip>
any comments are welcome
thanx, michael
---------------------------------------------------------------------------------
Michael Ibbeken
ProSieben Information Service GmbH
CMS - Content Management Systems
Gutenbergstrasse 3
85774 Unterf�hring
Besucheranschrift:
Osterfeldstrasse 82
85737 Ismaning
tel.: +49 (0) 89 / 9507-5108
fax.: +49 (0) 89 / 9507-5192
email: [EMAIL PROTECTED]
{ privat: +49 (0) 173 / 56 78 728 }
{ privat: [EMAIL PROTECTED] }
---------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]