You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/06/16 11:00:09 UTC

[jira] Created: (MAVEN-1321) preGoal and postGoal executed twice

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
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: Wed, 16 Jun 2004 4:57 AM
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MAVEN-1321) preGoal and postGoal executed twice

Posted by ji...@codehaus.org.
The following comment has been added to this issue:

     Author: Joel Burrows
    Created: Wed, 28 Jul 2004 8:15 AM
       Body:
I saw a similar thing when I ran maven (1.0-rc3) from a Unix environment (Solaris).

I was debugging a problem and did something stupid - not realizing that when you extend a project, you also pick up it's properties, I copied the project.xml I was extending to my local directory. Thus my local directory had two different project files and both were being loaded (i.e. one extending the other).

In my local directory, I also had a maven.xml file with some preGoal and postGoals. While I was using both project files, these goals were executed twice. As soon as I extended the project from the proper directory instead of the local directory, the problem went away.
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MAVEN-1321?page=comments#action_22446

---------------------------------------------------------------------
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: Closed
   Priority: Major
 Resolution: CANNOT REPRODUCE

 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: Wed, 28 Jul 2004 8:15 AM
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MAVEN-1321) preGoal and postGoal executed twice

Posted by ji...@codehaus.org.
Message:

   The following issue has been closed.

---------------------------------------------------------------------
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: Closed
   Priority: Major
 Resolution: CANNOT REPRODUCE

 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: Fri, 23 Jul 2004 2:04 AM
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MAVEN-1321) preGoal and postGoal executed twice

Posted by ji...@codehaus.org.
The following comment has been added to this issue:

     Author: Brett Porter
    Created: Fri, 25 Jun 2004 10:10 AM
       Body:
I can't replicate this, and there are tests in touchstone to verify it is only run once.

What goal do you run, just war:war?

Do you have a small project that reproduces the problem?
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MAVEN-1321?page=comments#action_21020

---------------------------------------------------------------------
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: Fri, 25 Jun 2004 10:10 AM
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MAVEN-1321) preGoal and postGoal executed twice

Posted by ji...@codehaus.org.
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org