Message:

   The following issue has been closed.

   Resolver: Brett Porter
       Date: Fri, 23 Jul 2004 2:21 AM

munging filenames in the repository will gve undefined results such as this.
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1387

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1387
    Summary: Dependency checking for named jars
       Type: Improvement

     Status: Closed
 Resolution: WON'T FIX

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven

   Assignee: 
   Reporter: Steve Molloy

    Created: Thu, 22 Jul 2004 10:23 AM
    Updated: Fri, 23 Jul 2004 2:21 AM

Description:
SNAPSHOT dependencies should always be checked and the newest version downloaded. But 
since the AbstractArtifact checks the artifact name itself to determine if it's a 
SNAPSHOT, artifacts not following the <artifactId>-<version>.<type> standard (built 
outside Maven for example) are not considered SNAPSHOT even if you add the flag 
because the jar name doesn't contain the keyword.

I think it would make sense to change the behavior of the isArtifact method of 
AbstractArtifact to check th eversion of the dependency rather then its name. Thus, 
instead of:

return getDependency().getArtifact().indexOf( MavenConstants.SNAPSHOT_SIGNIFIER ) > 0;

You would have:

return getDependency().getVersion().indexOf( MavenConstants.SNAPSHOT_SIGNIFIER ) > 0;

This way, even if you had a jar someJar.jar, you could still get the latest version 
each build by adding the SNAPSHOT version tag as usual. And it wouldn't change the 
behavior for the artifacts created by Maven since the version would also be SNAPSHOT.


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