You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dieter König (JIRA)" <ji...@codehaus.org> on 2011/04/28 13:54:22 UTC

[jira] Created: (MSOURCES-56) Automatic skip of jar generation when no sources found

Automatic skip of jar generation when no sources found
------------------------------------------------------

                 Key: MSOURCES-56
                 URL: http://jira.codehaus.org/browse/MSOURCES-56
             Project: Maven 2.x Source Plugin
          Issue Type: New Feature
    Affects Versions: 2.1.2, 2.1.1, 2.1, 2.0.4, 2.0.3, 2.0.2, 2.0.1, 2.0
            Reporter: Dieter König


Generation of sources-jar should be automatically skipped when no sources were found.

###########
Just in the same way as javadoc-plugin does!
###########

For example if the sources- (default: src/main/java, configured value should be taken into account) and testsources-folder are missing then no sources-jar should be generated. Also if the folders are there but no files in that folders are available the generation should be skipped.

In other words: don't generate a sources jar which contains only META-INF/MANIFEST.MF with following content:
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: 11.0-b15 (Sun Microsystems Inc.)

Reason:
- Generated sources-jar for empty sources is useless
- Generated sources-jar for empty sources spams the maven repository!
- Generation of sources-jar "costs" expensive build time
- explicit skipping of plugin (which is one of the features for 2.2-release) is annoying/would be an expensive work as you have to go through all the pom's...

If you are aware of old behaviour (someone could need the useless empty jars) then provide the possibility to configure/enable the automatic skip behaviour.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] (MSOURCES-56) Parameter to skip the generation of the sources jar

Posted by "Stéphane Nicoll (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSOURCES-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stéphane Nicoll updated MSOURCES-56:
------------------------------------

    Summary: Parameter to skip the generation of the sources jar  (was: Automatic skip of jar generation when no sources found)
    
> Parameter to skip the generation of the sources jar
> ---------------------------------------------------
>
>                 Key: MSOURCES-56
>                 URL: https://jira.codehaus.org/browse/MSOURCES-56
>             Project: Maven 2.x Source Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1, 2.1.1, 2.1.2
>            Reporter: Dieter König
>            Assignee: Olivier Lamy
>             Fix For: 2.2
>
>
> Generation of sources-jar should be automatically skipped when no sources were found.
> ###########
> Just in the same way as javadoc-plugin does!
> ###########
> For example if the sources- (default: src/main/java, configured value should be taken into account) and testsources-folder are missing then no sources-jar should be generated. Also if the folders are there but no files in that folders are available the generation should be skipped.
> In other words: don't generate a sources jar which contains only META-INF/MANIFEST.MF with following content:
> Manifest-Version: 1.0
> Archiver-Version: Plexus Archiver
> Created-By: 11.0-b15 (Sun Microsystems Inc.)
> Reason:
> - Generated sources-jar for empty sources is useless
> - Generated sources-jar for empty sources spams the maven repository!
> - Generation of sources-jar "costs" expensive build time
> - explicit skipping of plugin (which is one of the features for 2.2-release) is annoying/would be an expensive work as you have to go through all the pom's...
> If you are aware of old behaviour (someone could need the useless empty jars) then provide the possibility to configure/enable the automatic skip behaviour.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] (MSOURCES-56) Parameter to skip the generation of the sources jar

Posted by "Stéphane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSOURCES-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=305550#comment-305550 ] 

Stéphane Nicoll commented on MSOURCES-56:
-----------------------------------------

For the record, a skip parameter was added but it's not automatic, you have to configure it manually.
                
> Parameter to skip the generation of the sources jar
> ---------------------------------------------------
>
>                 Key: MSOURCES-56
>                 URL: https://jira.codehaus.org/browse/MSOURCES-56
>             Project: Maven 2.x Source Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1, 2.1.1, 2.1.2
>            Reporter: Dieter König
>            Assignee: Olivier Lamy
>             Fix For: 2.2
>
>
> Generation of sources-jar should be automatically skipped when no sources were found.
> ###########
> Just in the same way as javadoc-plugin does!
> ###########
> For example if the sources- (default: src/main/java, configured value should be taken into account) and testsources-folder are missing then no sources-jar should be generated. Also if the folders are there but no files in that folders are available the generation should be skipped.
> In other words: don't generate a sources jar which contains only META-INF/MANIFEST.MF with following content:
> Manifest-Version: 1.0
> Archiver-Version: Plexus Archiver
> Created-By: 11.0-b15 (Sun Microsystems Inc.)
> Reason:
> - Generated sources-jar for empty sources is useless
> - Generated sources-jar for empty sources spams the maven repository!
> - Generation of sources-jar "costs" expensive build time
> - explicit skipping of plugin (which is one of the features for 2.2-release) is annoying/would be an expensive work as you have to go through all the pom's...
> If you are aware of old behaviour (someone could need the useless empty jars) then provide the possibility to configure/enable the automatic skip behaviour.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] (MSOURCES-56) Automatic skip of jar generation when no sources found

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSOURCES-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy closed MSOURCES-56.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2
         Assignee: Olivier Lamy
    
> Automatic skip of jar generation when no sources found
> ------------------------------------------------------
>
>                 Key: MSOURCES-56
>                 URL: https://jira.codehaus.org/browse/MSOURCES-56
>             Project: Maven 2.x Source Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1, 2.1.1, 2.1.2
>            Reporter: Dieter König
>            Assignee: Olivier Lamy
>             Fix For: 2.2
>
>
> Generation of sources-jar should be automatically skipped when no sources were found.
> ###########
> Just in the same way as javadoc-plugin does!
> ###########
> For example if the sources- (default: src/main/java, configured value should be taken into account) and testsources-folder are missing then no sources-jar should be generated. Also if the folders are there but no files in that folders are available the generation should be skipped.
> In other words: don't generate a sources jar which contains only META-INF/MANIFEST.MF with following content:
> Manifest-Version: 1.0
> Archiver-Version: Plexus Archiver
> Created-By: 11.0-b15 (Sun Microsystems Inc.)
> Reason:
> - Generated sources-jar for empty sources is useless
> - Generated sources-jar for empty sources spams the maven repository!
> - Generation of sources-jar "costs" expensive build time
> - explicit skipping of plugin (which is one of the features for 2.2-release) is annoying/would be an expensive work as you have to go through all the pom's...
> If you are aware of old behaviour (someone could need the useless empty jars) then provide the possibility to configure/enable the automatic skip behaviour.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira