Maven JAR Plugin
  1. Maven JAR Plugin
  2. MJAR-29

Artifact name not correctly calculated for EAR

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      maven 2.0.2
      maven-jar-plugin-2.1-SNAPSHOT
    • Number of attachments :
      0

      Description

      In a parent POM, I added jar:sign to the plugins section, thus adding it to the default lifecycle. In a child, I try to build an EAR.
      Problem:

      • It tries to sign a <artifactId><version>.jar instead of <artifactId><version>.ear, thus resulting in an error.
      • Should jar:sign really trigger on an EAR artifact at all?

      Error message:

      [INFO] [jar:sign

      {execution: jar.sign}

      ]
      [INFO] jarsigner: unable to open jar file: C:\Dokumente und Einstellungen\mbo\wo
      rkspace\BAL-DruckComponentServer-Ear\target\druck-component-server-ear-0.9-SNAPS
      HOT.jar
      [INFO] -------------------------------------------------------------------------

      [ERROR] BUILD ERROR
      [INFO] -------------------------------------------------------------------------

      [INFO] Result of C:\Programme\Java\jdk1.5.0_06\jre\..\bin\jarsigner.exe -keystor
      e "C:\Dokumente und Einstellungen\mbo/.keystore" -storepass Giniality -keypass G
      iniality -signedjar "C:\Dokumente und Einstellungen\mbo\workspace\BAL-DruckCompo
      nentServer-Ear\target\signed\druck-component-server-ear-0.9-SNAPSHOT.jar" "C:\Do
      kumente und Einstellungen\mbo\workspace\BAL-DruckComponentServer-Ear\target\druc
      k-component-server-ear-0.9-SNAPSHOT.jar" mykey execution is: '1'.

        Issue Links

          Activity

          Jerome Lacoste made changes -
          Field Original Value New Value
          Link This issue is related to MJAR-27 [ MJAR-27 ]
          Brett Porter made changes -
          Workflow Maven [ 49046 ] Maven New [ 52104 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Michael Böckling
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: