Maven 1.x Jar Plugin

jar:install should not install snapshot if ther version ends with -SNAPSHOT

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

The jar:install goal should either not install the artifact or give a warning message if the version ends with -SNAPSHOT.

This is because when jar:install is run with a version like 1.0-SNAPSHOT a artifact like foo-1.0-SNAPSHOT.jar is installed, and when a jar:install-snapshot is run foo-SNAPSHOT.jar is created.

This might clean up some confusion that exists with snapshots.

If it is a wanted feature I can create a patch for it.


Trygvis

Activity

Hide
dion gillard added a comment -

no votes yet

Show
dion gillard added a comment - no votes yet
Hide
Rafal Krzewski added a comment -

MAVEN-842 contains a cleaner solution to the same problem.

Show
Rafal Krzewski added a comment - MAVEN-842 contains a cleaner solution to the same problem.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: