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/11/19 22:34:07 UTC

[jira] Commented: (MAVEN-1511) Jar override does not work when trying to override to SNAPSHOT

The following comment has been added to this issue:

     Author: Jon Strayer
    Created: Fri, 19 Nov 2004 4:32 PM
       Body:
Damn, I hosed the code.  It should be changes from this:

if ( Character.isDigit( mavenJarProperty.charAt( 0 ) ) )

to this:

if ( Character.isDigit( mavenJarProperty.charAt( 0 ) ) || "SNAPSHOT".equals(mavenJarProperty) )

---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MAVEN-1511?page=comments#action_26959

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1511

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1511
    Summary: Jar override does not work when trying to override to SNAPSHOT
       Type: Bug

     Status: Unassigned
   Priority: Minor

 Original Estimate: 15 minutes
 Time Spent: Unknown
  Remaining: 15 minutes

    Project: maven
 Components: 
             model
   Versions:
             1.0
             1.0.1

   Assignee: 
   Reporter: Jon Strayer

    Created: Fri, 19 Nov 2004 4:25 PM
    Updated: Fri, 19 Nov 2004 4:32 PM
Environment: All

Description:
The code in ArtifactListBuilder that checks the type of override being performed (version or path) just checks that the value of the first character of mavenJarProperty is a digit.  If you are tyring to override to SNAPSHOT this doesn't work.  If the code was changed from

if ( mavenJarOverride && StringUtils.isNotEmpty(mavenJarProperty) )

to

if ( mavenJarOverride && (StringUtils.isNotEmpty(mavenJarProperty) ||
    "SNAPSHOT".equals(mavenJarProperty)))

then we'd be able to override to SNAPSHOT for integration builds and not have to change all the dependencies before a relase (and then back to SNAPSHOT after).


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