Maven Ear Plugin
  1. Maven Ear Plugin
  2. MEAR-98

Add an implementation of FileNameMapping that allows to remove version of artefact in the ear.

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.5
    • Labels:
      None
    • Environment:
      Any
    • Patch Submitted:
      Yes
    • Number of attachments :
      2

      Description

      Right now there is 2 implementations of FileNameMapping, one that bundle artifact in the form $

      {artifactId}{$dashClassifider?}${version}.${type} and one in the form ${groupId}${artifactId}

      {$dashClassifider?}-$

      {version}

      .$

      {type}. This add a new FileNameMapping that bundle artifact in the form ${artifactId}{$dashClassifider?}.${type}

      (it removes the version information).

        Activity

        Hide
        Benjamin LERMAN added a comment -

        Correct previous patch.

        Show
        Benjamin LERMAN added a comment - Correct previous patch.
        Hide
        Stéphane Nicoll added a comment -

        Used your patch, thanks. Also added a "no-version" entry in the mapping registry so that you can do something like:

              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-ear-plugin</artifactId>
                <configuration>
                  <fileNameMapping>no-version</fileNameMapping>
                </configuration>
              </plugin>
        
        Show
        Stéphane Nicoll added a comment - Used your patch, thanks. Also added a "no-version" entry in the mapping registry so that you can do something like: <plugin> <groupId> org.apache.maven.plugins </groupId> <artifactId> maven-ear-plugin </artifactId> <configuration> <fileNameMapping> no-version </fileNameMapping> </configuration> </plugin>

          People

          • Assignee:
            Stéphane Nicoll
            Reporter:
            Benjamin LERMAN
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: