Plugins and Multiple projects

2007-11-08 Thread Grant Ingersoll
I have several subprojects of a project, plus another project that is  
not controlled by Maven.  I would like to setup the antrun plugin to  
run ANT on just the subproject that is not controlled by Maven (and I  
don't have the power to change this).  When I put the plugin  
definition into the lifecycle via:


maven-antrun-plugin

  
Solr Build
compile
false


  
target="dist"/>

  


  run

  

  

Maven tries to run this plugin on all of my modules and thus fails b/c  
the build.xml doesn't exist in any of the modules directories.  Is  
there some way to tell it to only run this plugin once, at the top  
level, but still execute the compile phase?


Thanks,
Grant


--
Grant Ingersoll
http://lucene.grantingersoll.com

Lucene Boot Camp Training:
ApacheCon Atlanta, Nov. 12, 2007.  Sign up now!  http://www.apachecon.com

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Plugins and Multiple projects

2007-11-08 Thread Roland Asmann
Seeing that you build the 'other-project' as well, wouldn't it be easier
to just throw in a pom.xml in that directory and configure the ant-run
there? That way your project 'is' a Maven-project from now on! ;-)

I believe that's the easiest solution, because a pom-type-project
(parent-project) doesn't execute the compile-phase. You could try to
configure it in another phase that IS run by the pom-lifecycle, but I
still believe the 'small conversion' I suggested would be the easiest way
to go...


> I have several subprojects of a project, plus another project that is
> not controlled by Maven.  I would like to setup the antrun plugin to
> run ANT on just the subproject that is not controlled by Maven (and I
> don't have the power to change this).  When I put the plugin
> definition into the lifecycle via:
> 
>  maven-antrun-plugin
>  
>
>  Solr Build
>  compile
>  false
>
>  
>
>   target="dist"/>
>
>  
>  
>run
>  
>
>  
>
>
> Maven tries to run this plugin on all of my modules and thus fails b/c
> the build.xml doesn't exist in any of the modules directories.  Is
> there some way to tell it to only run this plugin once, at the top
> level, but still execute the compile phase?
>
> Thanks,
> Grant
>
>
> --
> Grant Ingersoll
> http://lucene.grantingersoll.com
>
> Lucene Boot Camp Training:
> ApacheCon Atlanta, Nov. 12, 2007.  Sign up now!  http://www.apachecon.com
>
> Lucene Helpful Hints:
> http://wiki.apache.org/lucene-java/BasicsOfPerformance
> http://wiki.apache.org/lucene-java/LuceneFAQ
>
>
>
> -
> 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]



Re: Plugins and Multiple projects

2007-11-08 Thread Jim Sellers
I'm not 100% sure, but I think that you can put

false


HTH
Jim


On Nov 8, 2007 4:15 PM, Grant Ingersoll <[EMAIL PROTECTED]> wrote:

> I have several subprojects of a project, plus another project that is
> not controlled by Maven.  I would like to setup the antrun plugin to
> run ANT on just the subproject that is not controlled by Maven (and I
> don't have the power to change this).  When I put the plugin
> definition into the lifecycle via:
> 
> maven-antrun-plugin
> 
>   
> Solr Build
> compile
> false
>
> 
>   
>  target="dist"/>
>   
> 
> 
>   run
> 
>   
> 
>   
>
> Maven tries to run this plugin on all of my modules and thus fails b/c
> the build.xml doesn't exist in any of the modules directories.  Is
> there some way to tell it to only run this plugin once, at the top
> level, but still execute the compile phase?
>
> Thanks,
> Grant
>
>
> --
> Grant Ingersoll
> http://lucene.grantingersoll.com
>
> Lucene Boot Camp Training:
> ApacheCon Atlanta, Nov. 12, 2007.  Sign up now!  http://www.apachecon.com
>
> Lucene Helpful Hints:
> http://wiki.apache.org/lucene-java/BasicsOfPerformance
> http://wiki.apache.org/lucene-java/LuceneFAQ
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Plugins and Multiple projects

2007-11-09 Thread Grant Ingersoll
I suppose I could copy in a pom that I keep somewhere else if and when  
I do a fresh checkout of the project.  Or, I could try to convince the  
authors of that project to convert to Maven.


Thanks for the help,
Grant

From: "Roland Asmann" <[EMAIL PROTECTED]>
Date: November 8, 2007 6:39:51 PM EST
To: "Maven Users List" 
Subject: Re: Plugins and Multiple projects


Seeing that you build the 'other-project' as well, wouldn't it be easier
to just throw in a pom.xml in that directory and configure the ant-run
there? That way your project 'is' a Maven-project from now on! ;-)

I believe that's the easiest solution, because a pom-type-project
(parent-project) doesn't execute the compile-phase. You could try to
configure it in another phase that IS run by the pom-lifecycle, but I
still believe the 'small conversion' I suggested would be the easiest  
way

to go...



I have several subprojects of a project, plus another project that is
not controlled by Maven.  I would like to setup the antrun plugin to
run ANT on just the subproject that is not controlled by Maven (and I
don't have the power to change this).  When I put the plugin
definition into the lifecycle via:

maven-antrun-plugin

  
Solr Build
compile
false


  

  


  run

  

  

Maven tries to run this plugin on all of my modules and thus fails b/c
the build.xml doesn't exist in any of the modules directories.  Is
there some way to tell it to only run this plugin once, at the top
level, but still execute the compile phase?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Plugins and Multiple projects

2007-11-09 Thread Roland Asmann
Best solution would be to ask them to switch to Maven, but for now I think 
only adding a POM should work. You could ask the developers if they can just 
add the file to their project, so that you don't have to maintain the file in 
a different location. Just tell them it's a resource that you need during the 
build! ;-)


On Friday 09 November 2007 16:36, Grant Ingersoll wrote:
> I suppose I could copy in a pom that I keep somewhere else if and when
> I do a fresh checkout of the project.  Or, I could try to convince the
> authors of that project to convert to Maven.
>
> Thanks for the help,
> Grant
>
> From: "Roland Asmann" <[EMAIL PROTECTED]>
> Date: November 8, 2007 6:39:51 PM EST
> To: "Maven Users List" 
> Subject: Re: Plugins and Multiple projects
>
>
> Seeing that you build the 'other-project' as well, wouldn't it be easier
> to just throw in a pom.xml in that directory and configure the ant-run
> there? That way your project 'is' a Maven-project from now on! ;-)
>
> I believe that's the easiest solution, because a pom-type-project
> (parent-project) doesn't execute the compile-phase. You could try to
> configure it in another phase that IS run by the pom-lifecycle, but I
> still believe the 'small conversion' I suggested would be the easiest
> way
> to go...
>
> > I have several subprojects of a project, plus another project that is
> > not controlled by Maven.  I would like to setup the antrun plugin to
> > run ANT on just the subproject that is not controlled by Maven (and I
> > don't have the power to change this).  When I put the plugin
> > definition into the lifecycle via:
> > 
> > maven-antrun-plugin
> > 
> >   
> > Solr Build
> > compile
> > false
> >
> > 
> >   
> >  > target="dist"/>
> >   
> > 
> > 
> >   run
> > 
> >   
> > 
> >   
> >
> > Maven tries to run this plugin on all of my modules and thus fails b/c
> > the build.xml doesn't exist in any of the modules directories.  Is
> > there some way to tell it to only run this plugin once, at the top
> > level, but still execute the compile phase?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Plugins and Multiple projects

2007-11-13 Thread gsingers

This is my understanding, too, but it doesn't seem to be working.  Is this a
bug?

And also, I am trying to build a project that is checked out via SVN
external and I have no say in their build process.  

Jim Sellers wrote:
> 
> I'm not 100% sure, but I think that you can put
> 
> false
> 
> 
> HTH
> Jim
> 
> 
> On Nov 8, 2007 4:15 PM, Grant Ingersoll <[EMAIL PROTECTED]> wrote:
> 
>> I have several subprojects of a project, plus another project that is
>> not controlled by Maven.  I would like to setup the antrun plugin to
>> run ANT on just the subproject that is not controlled by Maven (and I
>> don't have the power to change this).  When I put the plugin
>> definition into the lifecycle via:
>> 
>> maven-antrun-plugin
>> 
>>   
>> Solr Build
>> compile
>> false
>>
>> 
>>   
>> > target="dist"/>
>>   
>> 
>> 
>>   run
>> 
>>   
>> 
>>   
>>
>> Maven tries to run this plugin on all of my modules and thus fails b/c
>> the build.xml doesn't exist in any of the modules directories.  Is
>> there some way to tell it to only run this plugin once, at the top
>> level, but still execute the compile phase?
>>
>> Thanks,
>> Grant
>>
>>
>> --
>> Grant Ingersoll
>> http://lucene.grantingersoll.com
>>
>> Lucene Boot Camp Training:
>> ApacheCon Atlanta, Nov. 12, 2007.  Sign up now!  http://www.apachecon.com
>>
>> Lucene Helpful Hints:
>> http://wiki.apache.org/lucene-java/BasicsOfPerformance
>> http://wiki.apache.org/lucene-java/LuceneFAQ
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Plugins-and-Multiple-projects-tf4773704s177.html#a13736073
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]