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/07/28 14:17:07 UTC
[jira] Commented: (MAVEN-1321) preGoal and postGoal executed twice
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