You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dominik Dahlem <Do...@cs.tcd.ie> on 2004/11/27 16:05:07 UTC
multiproject of multiprojects
Hi all,
I've been thinking about how to support a multiproject of multiprojects
and couldn't find a working solution to it. I'm facing two problems:
(1) If I could find out whether a project is a multiproject or not, it
would be possible to just delegate the original command (e.g.
"multiproject:goal -Dgoal=test") to the multiproject. Otherwise, "maven
test" on a normal project. Are there mechanisms in maven which allow to
do that?
(2) If I overwrite the site goal in maven.xml of the multiproject to
attain the site goal on each of its components the components themselves
would inherit the overwritten site goal which ends up in an infinite
build loop.
Any help is appreciated.
Thanks,
Dominik
--
Dominik Dahlem <Do...@cs.tcd.ie>
-------------------------------------------------------
Trinity College Dublin
Department of Computer Science,
Dublin 2, Ireland
tel: (+353) 1-608 1539
fax: (+353) 1-677 2204
www: http://www.cs.tcd.ie/Dominik.Dahlem/
-------------------------------------------------------
Re: Distribution process [please ...]
Posted by Michael Niemaz <Mi...@xrce.xerox.com>.
Right thanx. I know I could do it myself but, as It is on the maven site, I
thought it would be automatically done somehow, like for the jars
distribution ...
Thanx again,
--mike
Eric Giguere wrote:
> Hello
> Sure, take a look at the XML taglib of jelly, could help you do it in
> jelly, so in a maven goal.
> Otherwise, there is always the possibility of calling a custom written
> Java class using again jelly tags like new, invoke, and so on.
>
> Hope it helps.
> Eric
>
> Michael Niemaz wrote:
>
>> Could someone please give me a hint?
>>
>> Michael Niemaz wrote:
>>
>>> Hi all,
>>> Is it possible to ask maven to modify/create/update download.xml
>>> so that I could add gzip links.
>>>
>>> Thanx,
>>>
>>> --mike
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>> .
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> .
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Distribution process [please ...]
Posted by Eric Giguere <er...@videotron.ca>.
Hello
Sure, take a look at the XML taglib of jelly, could help you do it in
jelly, so in a maven goal.
Otherwise, there is always the possibility of calling a custom written
Java class using again jelly tags like new, invoke, and so on.
Hope it helps.
Eric
Michael Niemaz wrote:
> Could someone please give me a hint?
>
> Michael Niemaz wrote:
>
>> Hi all,
>> Is it possible to ask maven to modify/create/update download.xml
>> so that I could add gzip links.
>>
>> Thanx,
>>
>> --mike
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>> .
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Distribution process [please ...]
Posted by Michael Niemaz <Mi...@xrce.xerox.com>.
Could someone please give me a hint?
Michael Niemaz wrote:
> Hi all,
> Is it possible to ask maven to modify/create/update download.xml
> so that I could add gzip links.
>
> Thanx,
>
> --mike
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> .
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Distribution process
Posted by Michael Niemaz <Mi...@xrce.xerox.com>.
Hi all,
Is it possible to ask maven to modify/create/update download.xml
so that I could add gzip links.
Thanx,
--mike
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Modifying download.xml [SOLVED]
Posted by Michael Niemaz <Mi...@xrce.xerox.com>.
oops, I meant 'maven.xdoc.distributionType=zip' of course ;-)
Michael Niemaz wrote:
> I solved my initial problem which was to insert the distribution files
> .zip and .tar.gz in the download page.
> Adding the following in the project properties made the trick:
>
> maven.xdoc.distributionType=zip,tar.gz
>
> However, I can not say why it suddenly turned to work because I've
> been trying
> this for ages and it's only lately that I could see the download page
> fulfilled
> as excepted. Must have done something somehow ;-)
>
> Still, I don't know how to specify that there might be several formats
> to download
> such zip and tar.gz
>
> Thanx anyway,
>
> --mike
>
> Michael Niemaz wrote:
>
>> Hi all,
>> Is it possible to ask maven to modify/create/update download.xml
>> so that I could add gzip links.
>>
>> Thanx,
>>
>> --mike
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>> .
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> .
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Modifying download.xml [SOLVED]
Posted by Michael Niemaz <Mi...@xrce.xerox.com>.
I solved my initial problem which was to insert the distribution files
.zip and .tar.gz in the download page.
Adding the following in the project properties made the trick:
maven.xdoc.distributionType=zip,tar.gz
However, I can not say why it suddenly turned to work because I've been
trying
this for ages and it's only lately that I could see the download page
fulfilled
as excepted. Must have done something somehow ;-)
Still, I don't know how to specify that there might be several formats
to download
such zip and tar.gz
Thanx anyway,
--mike
Michael Niemaz wrote:
> Hi all,
> Is it possible to ask maven to modify/create/update download.xml
> so that I could add gzip links.
>
> Thanx,
>
> --mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> .
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Modifying download.xml
Posted by Michael Niemaz <Mi...@xrce.xerox.com>.
Hi all,
Is it possible to ask maven to modify/create/update download.xml
so that I could add gzip links.
Thanx,
--mike
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: multiproject of multiprojects
Posted by Dominik Dahlem <Do...@cs.tcd.ie>.
Hi Michal,
I'm working at the moment on a maven 1.1 snapshot. It would be nice to
have this feature available in maven 1.1. I'll keep my eyes open to when
it is going to be introduced in maven 1.1.
Thanks,
Dominik
On Sun, 2004-11-28 at 16:03 -0800, Michal Maczka wrote:
> The indicator if project is "multiproject" exists in m2 and will be
> most
> likely introduced in maven 1.1
> This will be implemented by addition of the new tag in the POM named
> <type>.
--
Dominik Dahlem <Do...@cs.tcd.ie>
-------------------------------------------------------
Trinity College Dublin
Department of Computer Science,
Dublin 2, Ireland
tel: (+353) 1-608 1539
fax: (+353) 1-677 2204
www: http://www.cs.tcd.ie/Dominik.Dahlem/
-------------------------------------------------------
Re: multiproject of multiprojects
Posted by Michal Maczka <mm...@interia.pl>.
Dominik Dahlem wrote:
>Hi all,
>
>I've been thinking about how to support a multiproject of multiprojects
>and couldn't find a working solution to it. I'm facing two problems:
>(1) If I could find out whether a project is a multiproject or not, it
>would be possible to just delegate the original command (e.g.
>"multiproject:goal -Dgoal=test") to the multiproject. Otherwise, "maven
>test" on a normal project. Are there mechanisms in maven which allow to
>do that?
>
>
The indicator if project is "multiproject" exists in m2 and will be most
likely introduced in maven 1.1
This will be implemented by addition of the new tag in the POM named
<type>.
At the moment some plugins are using "maven.multiproject.type" property
of multiproject plugin.
But this is not a good thing - but unfortunately the best which
curenntly exists.
>(2) If I overwrite the site goal in maven.xml of the multiproject to
>attain the site goal on each of its components the components themselves
>would inherit the overwritten site goal which ends up in an infinite
>build loop.
>
>
I will try to fix this particular problem pretty soon (requires minor
changes in site and multiproject plugins)
But we will need to define common contract which needs to be implemented
by plugins in case of multiprojects goal.
Possibly this contract can be partially built in into core so for
example delegation to given goal/plugin
may be sensitive to project's type.
Michal
----------------------------------------------------------------------
Startuj z INTERIA.PL!!! >>> http://link.interia.pl/f1837
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: multiproject of multiprojects
Posted by Dominik Dahlem <Do...@cs.tcd.ie>.
Hi Chris,
thanks for your advice. As long as there are no native mechanisms
implemented in maven your way looks like a feasible solution to me.
It'll bring me closer to what I'm trying to achieve.
Cheers,
Dominik
On Mon, 2004-11-29 at 09:29 +0100, Christian Mouttet wrote:
> Don't know if this is the best way to go -- but it's working.
>
> -Chris
>
--
Dominik Dahlem <Do...@cs.tcd.ie>
-------------------------------------------------------
Trinity College Dublin
Department of Computer Science,
Dublin 2, Ireland
tel: (+353) 1-608 1539
fax: (+353) 1-677 2204
www: http://www.cs.tcd.ie/Dominik.Dahlem/
-------------------------------------------------------
Re: multiproject of multiprojects
Posted by Christian Mouttet <ch...@keller-verlag.de>.
Hi Dominik,
this is the code fragment I use to clean multi projects.
maven.xml of the main project:
<util:available file="${maven.multiproject.basedir}">
<j:set var="multiproject.exists" value="true"/>
</util:available>
<postGoal name="clean">
<j:if test="${context.getVariable('multiproject.exists')}">
<j:set var="goal" value="clean"/>
<attainGoal name="multiproject:goal"/>
</j:if>
</postGoal>
Only the main project sets maven.multiproject.basedir in project.properties.
If the 'clean' goal of main project is called all subprojects are also
cleaned.
Don't know if this is the best way to go -- but it's working.
-Chris
On Saturday 27 November 2004 16:05, Dominik Dahlem wrote:
> Hi all,
>
> I've been thinking about how to support a multiproject of multiprojects
> and couldn't find a working solution to it. I'm facing two problems:
> (1) If I could find out whether a project is a multiproject or not, it
> would be possible to just delegate the original command (e.g.
> "multiproject:goal -Dgoal=test") to the multiproject. Otherwise, "maven
> test" on a normal project. Are there mechanisms in maven which allow to
> do that?
> (2) If I overwrite the site goal in maven.xml of the multiproject to
> attain the site goal on each of its components the components themselves
> would inherit the overwritten site goal which ends up in an infinite
> build loop.
>
> Any help is appreciated.
> Thanks,
> Dominik
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org