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 2003/09/02 02:34:10 UTC

[jira] Commented: (MAVEN-750) SnapshotSignature does not include currentVersion

The following comment has been added to this issue:

     Author: John Fallows
    Created: Mon, 1 Sep 2003 7:34 PM
       Body:
The snapshot capabilities in maven are great, including the convert-snapshots functionality.

It would be great if we could continue to use this while still enabling active snapshot development on two branches simultaneously.

For example, project "foo" has two active branches, 2.0 and 1.0.

Both of these active branches use the snapshot functionality in maven to make their most recent work automatically picked up by other dependent projects.

With the proposed change above, this would give us:

foo-1.0-SNAPSHOT.jar
foo-2.0-SNAPSHOT.jar

...both of which can coexist in <foo>/jars directory in the maven repository.

However, without making this fix, the generated SNAPSHOT jars collide in their names

foo-SNAPSHOT.jar

...so the most recent project branch to be built will "win" this collision.  This would cause maven to mistakenly pick up the foo 1.0 snapshot when it really dependended on the 2.0 snapshot.

This request seems consistent with the original intent of the above mentioned method.  Please let us know if there is another way to leverage the maven snapshot functionality without introducing this naming collision.

Thanks in advance for any assistance you can provide.
---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-750


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-750
    Summary: SnapshotSignature does not include currentVersion
       Type: Bug

     Status: Reopened
   Priority: Minor

 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             plugin-jar
   Fix Fors:
             1.0-rc1
   Versions:
             1.0-beta-10

   Assignee: 
   Reporter: 

    Created: Wed, 27 Aug 2003 1:41 PM
    Updated: Mon, 1 Sep 2003 2:29 AM
Environment: WinXP, J2SE 1.3.1

Description:
class org.apache.maven.jelly.tags.maven.SnapshotSignature
method doTag

    /**
     * Process the tag. Create a variable in the current context of the format
     * <code>${pom.id}-${pom.currentVersion}.yyyyMMdd.HHmmss</code>
     *
     * @param output used to send XML output to Jelly
     * @throws MissingAttributeException if the project property is not set
     */
    public void doTag( XMLOutput output ) throws MissingAttributeException
    {
      ...
      String snapshotSignature = getProject().getArtifactId() + "-" + snapshotVersion;
      ...
    }

This method does not appear to generate a snapshot JAR name that includes the current version (as spec'd in the Javadoc).

Thanks for your help :)
      


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