Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-432

Maven Archiver creates invalid Specification-Version string for SNAPSHOTs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • maven-archiver-2.6
    • None
    • maven-archiver
    • None
    • Oracle Weblogic 12.x

    Description

      Steps to reproduce:
      1) Build any SNAPSHOT-version of a war or ear with the configuration shown here to add implementation- and Specification-Version to the archives metadata:
      http://maven.apache.org/shared/maven-archiver/examples/manifest.html
      The added Version-String looks like 1.0.0-SNAPSHOT !

      2) Deploy this archive in Weblogic 12.x
      This results in weblogic not deploying the archive and throwing the following errors:

      BEA-160142: The library at {0} has an illegal Specification-Version: {1}. The Specification-Version must be a valid version string: int(.int)*, int >=0; for example: 2.1.1
          Cause: The Specification-Version for the library at {0} cannot be parsed.
          Action: Fix the library Specification-Version to conform to the required version string syntax.
      
          Level: 1
      
          Type: ERROR
      
          Impact: J2EE
      
      BEA-160143: Library {0} has an illegal Specification-Version: {1}. The Specification-Version must be a valid version string: int(.int)*, int >=0. For example: 2.1.1.
          Cause: The library cannot be statically deployed because its MBean has an invalid Specification-Version.
          Action: Undeploy the library and deploy it again with a correct Specification-Version.
      
          Level: 1
      
          Type: ERROR
      
          Impact: J2EE
      
      

      see http://docs.oracle.com/middleware/1213/core/FMERR/chapter_bea_messages.htm

      Proposed solution:
      Omit the "-SNAPSHOT" String in the version metadata

      Alternative solution:
      Replace "-SNAPSHOT" with ".TIMESTAMP", where TIMESTAMP consists only of positive integers.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              joerg.sesterhenn Jörg Sesterhenn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: