Maven 1

id is used instead of artifactId

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.1-beta-3
  • Fix Version/s: 1.1-rc1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

I am using the build of 2006-07-23. Whenever I do jar:install or jar:deploy or war:install or war:deploy it does it.
Same thing for struts-module plugin or other custom plugins I developed.

It seems to come directly from the maven code as it is common to all plugins I've tried.

If I have the following coonfiguration in the POM:

<id>id</id>
<groupId>group</groupId>
<artifactId>artifact</artifactId>
<currentVersion>2.11-beta2</currentVersion>

Here is the output:

jar:install:
[echo] Installing...
Uploading to group/jars/id-2.11-beta2.jar:
.................... (467K)
Uploading to group/poms/id-2.11-beta2.pom:
.................... (16K)
BUILD SUCCESSFUL
Total time : 12 seconds
Finished at : Monday, July 31, 2006 10:02:49 BST AM

If id is a combination of group and artifact like this

<id>group:artifact</id>
<groupId>group</groupId>
<artifactId>artifact</artifactId>
<currentVersion>2.11-beta2</currentVersion>

Here is the output

jar:jar:
[jar] Building jar: C:\eclipse\workspace\DBInterface\target\group:artifact-2.11-beta2.jar

jar:install:
[echo] Installing...
Uploading to group/jars/group:artifact-2.11-beta2.jar:
(0K)
Uploading to group/poms/group:artifact-2.11-beta2.pom:
.................... (16K)
BUILD SUCCESSFUL

If I remove the id element, it works as expected:

jar:jar:
[jar] Building jar: C:\eclipse\workspace\DBInterface\target\artifact-2.11-beta2.jar

jar:install:
[echo] Installing...
Uploading to group/jars/artifact-2.11-beta2.jar:
.................... (467K)
Uploading to group/poms/artifact-2.11-beta2.pom:
.................... (16K)
BUILD SUCCESSFUL

Issue Links

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: