The following comment has been added to this issue:

     Author: John Casey
    Created: Wed, 4 Feb 2004 7:33 PM
       Body:
I remember exactly this issue being brought up on the Ant lists a couple of years ago. 
It has to do with Ant detecting which files actually need to be recompiled, and then 
recompiling those (I think).

Since maven uses Ant for this functionality, it's actually a re-expression of that 
same issue, which hasn't been resolved. As a matter of fact, I'm not sure how one 
would resolve it, short of parsing all sources in the ${maven.src.dir} and graphing 
which ones supplied a constant and which ones used it. Obviously, this isn't a 
feasible response to such a small issue. Especially when one can just use:

maven clean java:compile

instead.

See: http://ant.apache.org/manual/OptionalTasks/depend.html
Just search for 'constant' in this document to see what I mean.
---------------------------------------------------------------------
View this comment:
  
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1149&page=comments#action_16453

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1149

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1149
    Summary: public static final value changes do not force a recompile of dependent 
modules
       Type: Bug

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             core

   Assignee: 
   Reporter: Robin Morris

    Created: Wed, 4 Feb 2004 1:16 PM
    Updated: Wed, 4 Feb 2004 7:33 PM

Description:
public static final values are erplaced t compile time and put directly into the class 
files. See:

http://www.javaworld.com/javaqa/2003-03/02-qa-0328-constant_p.html

Dependent modules do not get recompiled if a public static final from one module gets 
chnaged.

This results in two differnt class files being generated (for the dependent modules) 
if the code was built from scratch verses built through maven.




---------------------------------------------------------------------
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]

Reply via email to