You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Hahne, Ronald" <Ro...@NielsenMedia.com> on 2004/02/11 19:20:30 UTC

Using multiproject goals

Can anyone explain to me why maven does not display all the actions that is
being performed on each of the projects during a multiproject? It seems to
only display the actions for the first project. example:

maven -Dgoal=clean,jar:install multiproject:goal
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

Starting the reactor...
Our processing order:
Utility Component
properties Component
exceptionHandler Component
keyUtility Component
microstrategy Component
+----------------------------------------
| Executing clean,jar:install Utility Component
| Memory: 2M/3M
+----------------------------------------
multiproject:goal:
clean:clean:
    [delete] Deleting directory
/dun/d2drt1/devel/hahnerd/java/JavaProjects/npowerApp/utility/target

clean:

java:prepare-filesystem:
    [mkdir] Created dir:
/dun/d2drt1/devel/hahnerd/java/JavaProjects/npowerApp/utility/target/classes

java:compile:
    [echo] Compiling to
/dun/d2drt1/devel/hahnerd/java/JavaProjects/npowerApp/utility/target/classes
    [javac] Compiling 53 source files to
/dun/d2drt1/devel/hahnerd/java/JavaProjects/npowerApp/utility/target/classes

java:jar-resources:

test:prepare-filesystem:
    [mkdir] Created dir:
/dun/d2drt1/devel/hahnerd/java/JavaProjects/npowerApp/utility/target/test-cl
asses
    [mkdir] Created dir:
/dun/d2drt1/devel/hahnerd/java/JavaProjects/npowerApp/utility/target/test-re
ports

test:test-resources:

test:compile:
    [javac] Compiling 46 source files to
/dun/d2drt1/devel/hahnerd/java/JavaProjects/npowerApp/utility/target/test-cl
asses

test:test:
    [junit] dir attribute ignored if running in the same VM
    [junit] Running com.nielsenmedia.db.DBUtilitiesTest
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.03 sec
    [junit] dir attribute ignored if running in the same VM
    [junit] Running com.nielsenmedia.db.NonPooledDataSourceTest
    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.029 sec
/dun/d2drt1/devel/hahnerd/java/JavaProjects/npowerApp/microstrategy/src/java
/com/nielsenmedia/npower/mstr/MicroStrategySearch.java:33: cannot resolve
symbol
symbol  : class MicroStrategyException 
location: package mstr
import com.nielsenmedia.npower.mstr.MicroStrategyException;

16 errors
BUILD FAILED
File...... file:/home/hahnerd/.maven/plugins/maven-multiproject-plugin-1.1/
Element... maven:reactor
Line...... 174
Column.... 9
Unable to obtain goal [java:compile] --
file:/home/hahnerd/.maven/plugins/maven-java-plugin-1.3/:34:48: <ant:javac>
Compile failed; see the compiler error output for details.


In this example the last project failed, but all of the others were
successfull.

I have even put a maven.xml in each of the projects directory with the
following pregoals. Still nothing except for the first project.

<project>
xmlns:maven="maven"
xmlns:j="jelly:core"
xmlns:ant="jelly:ant"
xmlns:u=jelly:util">
	<preGoal name="java:jar-resources">
		<echo>jar-resources ${pom.artifactId} HELLO
************************</echo>
	</preGoal>
	<preGoal name="test:compile">
		<echo>Compiling test ${pom.artifactId} HELLO
************************</echo>
	</preGoal>
	<preGoal name="test:test">
		<echo>testing ${pom.artifactId} HELLO
************************</echo>
	</preGoal>
	<preGoal name="java:compile">
		<echo>Compiling ${pom.artifactId} HELLO
************************</echo>
	</preGoal>
</project>


Thanks,
                 \  /
Ron Hahne       (* *)
              ooO( )Ooo

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