Uploaded image for project: 'Maven JAR Plugin'
  1. Maven JAR Plugin
  2. MJAR-139

New option to avoid empty jar creation

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.4
    • Component/s: None
    • Labels:
      None

      Description

      Usage of "test-jar" is beneficial for all project, as all of them have tests.
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-jar-plugin</artifactId>
      <version>2.3.1</version>
      <executions>
      <execution>
      <goals>
      <goal>test-jar</goal>
      </goals>
      </execution>
      </executions>
      </plugin>

      Pom artifacts and some jar artifacts does not have test and will never have them.
      In logs we have: "[WARNING] JAR will be empty - no content was marked for inclusion!"
      and empty and useless artifacts are created, deployed , ...

      It will be convenient to have an plugin option to define whether skip empty jar creation and warning or generate jar with warning in log. Does it make sense ?

      By default option will be FALSE, to comply with previous behavior.

        Attachments

          Activity

            People

            • Assignee:
              krosenvold Kristian Rosenvold
              Reporter:
              romani Roman Ivanov

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment