You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by vipul vij <vi...@orange.net> on 2003/05/06 11:42:03 UTC

Please help ---- Reactor

Hi,

I posted a message a few days ago and I did not get any response.I am 
not making any progress and I will be grateful to you for any help. 

I have to following project structure:

c:\
 |
 |
  - MAVEN
        |
        |
         - JAR project 
        |            |
        |             - maven.xml
         - WAR project 
        |  (depends on JAR project)
        |
         - WAR project 
        |   (depends on JAR project)
        |
         .......

Each project is building fine individually. I would like to set up the 
reactor. I have used an example that I have found saved this in the JAR 
project's maven.xml file. Now, when I run "maven build -X" it comes 
back as a "successful build". It is clearly not doing what it should do 
as it only takes four secs to do this and there is only a few lines in 
the trace (that is even using "-X"). None of my project.xml files use 
inheritance. 

Setting up the reactor is probably very trivial , but I have been going 
around in circles and I am not getting anywhere.  

Regards, 

Vipul 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Please help ---- Reactor

Posted by "Mark H. Wilkinson" <mh...@kremvax.net>.
[Damn; posted before I'd finished composing...]

On Tue, 2003-05-06 at 10:42, vipul vij wrote:
> Hi,
> 
> I posted a message a few days ago and I did not get any response.I am 
> not making any progress and I will be grateful to you for any help. 
> 
> I have to following project structure:
> 
> c:\
>  |
>  |
>   - MAVEN
>         |
>         |
>          - JAR project 
>         |            |
>         |             - maven.xml
>          - WAR project 
>         |  (depends on JAR project)
>         |
>          - WAR project 
>         |   (depends on JAR project)
>         |
>          .......
> 
> Each project is building fine individually. I would like to set up the 
> reactor. I have used an example that I have found saved this in the JAR 
> project's maven.xml file. Now, when I run "maven build -X" it comes 
> back as a "successful build". It is clearly not doing what it should do 
> as it only takes four secs to do this and there is only a few lines in 
> the trace (that is even using "-X"). None of my project.xml files use 
> inheritance. 

You posted a maven.xml file which included this:

> <project default="build"
>            xmlns:reactor="reactor"
>            xmlns:m="maven"
>            xmlns:texen="texen">
>   
> [...]
>     
>     <goal name="build">
>     
>       <reactor:execute
>         basedir="${basedir}"
>         glob="*/project.xml"
>         goals="clean,jar:install"
>         banner="Building"
>         ignoreFailures="true"
>       />
>     
>     </goal>

Given the directory layout you've drawn above, try replacing

        basedir="${basedir}"

with

        basedir="${basedir}/.."

The basedir here is where the glob should be expanded from.

-Mark.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Please help ---- Reactor

Posted by "Mark H. Wilkinson" <mh...@kremvax.net>.
On Tue, 2003-05-06 at 10:42, vipul vij wrote:
> Hi,
> 
> I posted a message a few days ago and I did not get any response.I am 
> not making any progress and I will be grateful to you for any help. 
> 
> I have to following project structure:
> 
> c:\
>  |
>  |
>   - MAVEN
>         |
>         |
>          - JAR project 
>         |            |
>         |             - maven.xml
>          - WAR project 
>         |  (depends on JAR project)
>         |
>          - WAR project 
>         |   (depends on JAR project)
>         |
>          .......
> 
> Each project is building fine individually. I would like to set up the 
> reactor. I have used an example that I have found saved this in the JAR 
> project's maven.xml file. Now, when I run "maven build -X" it comes 
> back as a "successful build". It is clearly not doing what it should do 
> as it only takes four secs to do this and there is only a few lines in 
> the trace (that is even using "-X"). None of my project.xml files use 
> inheritance. 

You posted a maven.xml file which included this:

> <project default="build"
>            xmlns:reactor="reactor"
>            xmlns:m="maven"
>            xmlns:texen="texen">
>   
> [...]
>     
>     <goal name="build">
>     
>       <reactor:execute
>         basedir="${basedir}"
>         glob="*/project.xml"
>         goals="clean,jar:install"
>         banner="Building"
>         ignoreFailures="true"
>       />
>     
>     </goal>

Given the directory layout you've drawn above, try replacing

        basedir="${basedir}"

with


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Please help ---- Reactor

Posted by Peter Lynch <pe...@mindspring.com>.
vipul vij wrote:
> Each project is building fine individually. I would like to set up the 
> reactor. I have used an example that I have found saved this in the JAR 
> project's maven.xml file. Now, when I run "maven build -X" it comes 
> back as a "successful build". It is clearly not doing what it should do 
> as it only takes four secs to do this and there is only a few lines in 
> the trace (that is even using "-X"). None of my project.xml files use 
> inheritance. 

Have you tried

maven -X build

??

Goals always go last.
-Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org