You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Arik Kfir (JIRA)" <ji...@codehaus.org> on 2005/10/01 14:56:19 UTC
[jira] Updated: (MNG-1021) Build numbers are incremented when they shouldn't
[ http://jira.codehaus.org/browse/MNG-1021?page=all ]
Arik Kfir updated MNG-1021:
---------------------------
Attachment: pom.xml
Tried again using m2 trunk - and still happens. I've attached the exact POM so you can take a look (perhaps I'm doing something wrong?)
I've also tried cleaning my .m2 repo (completely removed it), but to no avail.
> Build numbers are incremented when they shouldn't
> -------------------------------------------------
>
> Key: MNG-1021
> URL: http://jira.codehaus.org/browse/MNG-1021
> Project: Maven 2
> Type: Bug
> Versions: 2.0-beta-1
> Environment: Fedora 4, JDK 1.5.0_04, Maven 2 beta 1
> Reporter: Arik Kfir
> Assignee: John Casey
> Fix For: 2.0-beta-3
> Attachments: pom.xml
>
> Original Estimate: 3 hours
> Time Spent: 2 hours
> Remaining: 1 hour
>
> I have a project built using m2. I want the project to install/deploy
> a source-code JAR along with the binaries JAR (on both the install and
> deploy phases). I've added the following section in the pom.xml file:
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-source-plugin</artifactId>
> <executions>
> <execution>
> <goals>
> <goal>jar</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> It works very nice, except for one problem: the sources JAR always
> gets a new build number. For instance, assuming I clean my local repo,
> and then run "m2 install", the local repo will contain:
> myproject-20050925.155953-1.jar
> myproject-20050925.155953-2-sources.jar
> Shouldn't they have the same build number?
> This causes a problem because the maven-metadata.xml file specifies
> that the current build number is 2, and so, projects depending on that
> project can't find the file (since there's no binary JAR for build
> number 2, only for build 1).
--
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
-
For more information on JIRA, 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