jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1.x Release Plugin
  • MPRELEASE-2

convert-snapshots does not change pom

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    maven-rc1, win2k

Description

Invoking convert-snapshots-auto seems to touch my project.xml and creates a project.xml.backup, but the SNAPSHOT within the version tag remains the same.

Invoking convert-snapshots interactively correctly identifies the SNAPSHOT versions and asks for updating it, but as with -auto does not change anything in the end...

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Jason van Zyl added a comment - 08/Dec/03 12:10 PM

You realize you must have a source of information for the version to convert the snapshot to, yes?

What are you trying to convert exactly?

Please do not post some that says "it doesn't work" as that's not at all helpful.

Show
Jason van Zyl added a comment - 08/Dec/03 12:10 PM You realize you must have a source of information for the version to convert the snapshot to, yes? What are you trying to convert exactly? Please do not post some that says "it doesn't work" as that's not at all helpful.
Hide
Permalink
Oliver Noelle added a comment - 09/Dec/03 2:07 AM

What kind of "source of information" do I need?

There's no hint to that in the docs (maven user guide).

I thought the plugin would determine the latest timestamped version in the central and/or local repository and thus convert the snapshot to the corresponding timestamp tag.

This is the situation: I have a timestamped version in the central repository (created with jar:deploy-snapshot), so I thought that would be the "source of information". I also tried to install a timestamped version in the local repo (jar:install-snapshot), but still invoking the plugin does not have any effect.

I also looked at the jelly script, but as it just calls a custom tag I could not determine the way the plugin is supposed to work.

This is exactly what I have:
In component A:

<dependency>
<artifactId>errormanager</artifactId>
<groupId>errormanager</groupId>
<version>SNAPSHOT</version>
</dependency>

In central repo (linux):
errormanager-SNAPSHOT.jar (which is a link to the timestamped version)
errormanager-20031208.173720.jar

Or more verbose:
rw-rw-r- 1 oliver.n develope 40834 Dez 8 18:37 errormanager-20031208.173720.jar
lrwxrwxrwx 1 oliver.n develope 32 Dez 8 18:37 errormanager-SNAPSHOT.jar -> errormanager-20031208.173720.jar
rw-rr- 1 oliver.n develope 16 Dez 8 18:37 errormanager-snapshot-version

In local repo (win2k) similar situation, but not a -SNAPSHOT link but a regular file I think.

Well, and what I expected was that the SNAPSHOT in component A's POM would be replaced with the timestamp version when I invoke "convert-snapshots-auto" in that components project base dir.

Okay, I think this is all relevant information I can give you.

If there is something more to take care of (another source of information), please document it! Maven really rocks, but the documentation is the biggest drawback at the moment and possibly causes a bit of frustration sometimes...)

(another question: it took me a few minutes to find out in which plugin this functionality is implemented. Shouldn't the goal be preceded with "release:"? How do I find out which plugin is responsible for a goal if I just have the goal name?)

(sorry, just one more: on the plugin site doc of release plugin, there is no description of what the goals convert-snapshots(-auto) do... I think this plugin documentation is extremely useful and should at least give a hint at what the goal does)

Sorry, but I'm really trying to be helpful...

If you need any more information let me know.

Show
Oliver Noelle added a comment - 09/Dec/03 2:07 AM What kind of "source of information" do I need? There's no hint to that in the docs (maven user guide). I thought the plugin would determine the latest timestamped version in the central and/or local repository and thus convert the snapshot to the corresponding timestamp tag. This is the situation: I have a timestamped version in the central repository (created with jar:deploy-snapshot), so I thought that would be the "source of information". I also tried to install a timestamped version in the local repo (jar:install-snapshot), but still invoking the plugin does not have any effect. I also looked at the jelly script, but as it just calls a custom tag I could not determine the way the plugin is supposed to work. This is exactly what I have: In component A: <dependency> <artifactId>errormanager</artifactId> <groupId>errormanager</groupId> <version>SNAPSHOT</version> </dependency> In central repo (linux): errormanager-SNAPSHOT.jar (which is a link to the timestamped version) errormanager-20031208.173720.jar Or more verbose: rw-rw-r- 1 oliver.n develope 40834 Dez 8 18:37 errormanager-20031208.173720.jar lrwxrwxrwx 1 oliver.n develope 32 Dez 8 18:37 errormanager-SNAPSHOT.jar -> errormanager-20031208.173720.jar rw-rr- 1 oliver.n develope 16 Dez 8 18:37 errormanager-snapshot-version In local repo (win2k) similar situation, but not a -SNAPSHOT link but a regular file I think. Well, and what I expected was that the SNAPSHOT in component A's POM would be replaced with the timestamp version when I invoke "convert-snapshots-auto" in that components project base dir. Okay, I think this is all relevant information I can give you. If there is something more to take care of (another source of information), please document it! Maven really rocks, but the documentation is the biggest drawback at the moment and possibly causes a bit of frustration sometimes...) (another question: it took me a few minutes to find out in which plugin this functionality is implemented. Shouldn't the goal be preceded with "release:"? How do I find out which plugin is responsible for a goal if I just have the goal name?) (sorry, just one more: on the plugin site doc of release plugin, there is no description of what the goals convert-snapshots(-auto) do... I think this plugin documentation is extremely useful and should at least give a hint at what the goal does) Sorry, but I'm really trying to be helpful... If you need any more information let me know.

People

  • Assignee:
    Unassigned
    Reporter:
    Oliver Noelle
Vote (0)
Watch (0)

Dates

  • Created:
    08/Dec/03 12:03 PM
    Updated:
    24/Apr/04 10:46 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.