[ https://issues.apache.org/jira/browse/MNG-6959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17155604#comment-17155604 ]
Robert Scholte commented on MNG-6959: ------------------------------------- In case 1: a project with only test-sources is weird. Consider to move them to the src/main and give them the default scope. In case 2: the packaging shouldn't be jar, because the result isn't a jar. You're making use of the lifecycle-bindings of a jar, but that's lazily abusing it. Ideally you should have a bindings for jib. If that one doesn't exist, the correct solution right now is to choose for packaging pom and bind your required goals to their build phases. We will make this easier in the future once we can change the pom file. In case 3: I never said that the result is always a jar, but an artifact. First 2 cases confirm that. It is also possible to distribute a pom, but that's often a parent-pom. Once a skip parameter is introduced it is very hard to remove it, hence you still see it in too many places. In the past if was a simple way to hack around certain situations, but by now it is time to do things correct. > Add "maven.jar.skip" property > ----------------------------- > > Key: MNG-6959 > URL: https://issues.apache.org/jira/browse/MNG-6959 > Project: Maven > Issue Type: Improvement > Reporter: Rupert Madden-Abbott > Assignee: Robert Scholte > Priority: Minor > > The following properties are available from various plugins: > * maven.test.skip > * maven.install.skip > * maven.deploy.skip > For consistency, please can we also have maven.jar.skip? > There is a skipIfEmpty parameter but there is no way to set it via a property. > This is helpful in keeping a standard CI build script across multiple > projects e.g. running mvn install, and keeping build specific various in the > pom.xml. > Current workaround is to configure the jar plugin with a phase of none but > this is less consistent with the method of skipping other default plugins. -- This message was sent by Atlassian Jira (v8.3.4#803005)