Maven 2.x Repository Plugin

project.scm.connection should not be required for bundle-create

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.1
  • Fix Version/s: 2.1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

It is not possible to create an upload bundle without specifying <project>/<scm>/<connection>.

Some projects are not under source control, or the source may not be accessible by the public, so this element should not be required.

To reproduce:

$ mvn archetype:create -DartifactId=test -DgroupId=com.example
$ cd test
$ mvn repository:bundle-create
...
[INFO] [repository:bundle-create]
[INFO] ---------------------------------------------
[ERROR] BUILD ERROR
[INFO] ---------------------------------------------
[INFO] Project scm element is null.
[INFO] ---------------------------------------------

After adding <scm>/<url> to pom.xml:

$ mvn repository:bundle-create
...
[INFO] [repository:bundle-create]
[INFO] ----------------------------------------------
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------
[INFO] project.scm.connection must be present.
[INFO] ----------------------------------------------

Issue Links

Activity

Hide
fabrizio giustina added a comment -

I agree, limitation removed for version 2.1

Show
fabrizio giustina added a comment - I agree, limitation removed for version 2.1

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: