The following comment has been added to this issue: Author: Charles Crouch Created: Tue, 29 Jun 2004 3:42 PM Body: I have also noticed that my custom goal is getting executed twice. Here is a snippet of maven.xml <preGoal name="java:compile"> <attainGoal name="generate-java"/> </preGoal>
When ever I run java:compile, jar:install or multiproject:install the generate-java goal gets executed twice. Relevant parts of project.xml <?xml version="1.0"?> <project> <extend>${basedir}/../Empower_Common/master-project.xml</extend> <id>Common</id> <name>Common component</name> <shortDescription>The Common component.</shortDescription> <dependencies> <dependency> <!-- only required for generating java files from .wsdl In fact I would like a way to take this jar off the compile path, or off the dependency class path --> <groupId>axis</groupId> <artifactId>axis-ant</artifactId> <version>1.1</version> <url>http://ws.apache.org/axis/java/ant/ant.html</url> </dependency> ... more dependencies </dependencies> <build> <sourceDirectory>${basedir}</sourceDirectory> <!-- the sourceModification is required until the source code gets moved out of the root directory and into its own src folder --> <sourceModifications> <sourceModification> <className>fakeClass</className> <excludes> <exclude>test/**/*.java</exclude> </excludes> </sourceModification> </sourceModifications> </build> </project> Relevant part of master-project.xml <project> <pomVersion>3</pomVersion> <!-- Should be specified in project.xml's which extend this --> <id/> <!-- Should be specified in project.xml's which extend this --> <name/> <groupId>MyGroup</groupId> <currentVersion>1.0</currentVersion> <organization> <name>A company</name> </organization> <inceptionYear>2002</inceptionYear> <!-- Should be specified in project.xml's which extend this --> <shortDescription/> <developers/> <!-- Should be specified in project.xml's which extend this --> <dependencies/> <!-- Should be specified in project.xml's which extend this --> <build/> </project> Environment: Win XP, maven-1.0-rc3 --------------------------------------------------------------------- View this comment: http://jira.codehaus.org/browse/MAVEN-1321?page=comments#action_21177 --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/MAVEN-1321 Here is an overview of the issue: --------------------------------------------------------------------- Key: MAVEN-1321 Summary: preGoal and postGoal executed twice Type: Bug Status: Unassigned Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: maven Components: core Versions: 1.0-rc3 Assignee: Reporter: Jonathan Riboux Created: Wed, 16 Jun 2004 4:57 AM Updated: Tue, 29 Jun 2004 3:42 PM Environment: windows 2k / maven 1.0-rc3 Description: I use a pregoal of war:war to include some files in the webapp before the war is done. code : <preGoal name="war:war"> <attainGoal name="extractDependencies"/> </preGoal> The goal extractDependencies is executed twice. (In the outline "war:war:" is writen once and "extractDependencies:" is writen twice.) I tried to create a preGoal to some other goals with a simple echo in it (tried war:webapp, jar:jar, ...). I noticed the same problem. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]