You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Marco rietveld (JIRA)" <ji...@codehaus.org> on 2012/09/03 17:12:21 UTC

[jira] (MJAR-160) Please make test-jar also run for "war" packages

Marco rietveld created MJAR-160:
-----------------------------------

             Summary: Please make test-jar also run for "war" packages
                 Key: MJAR-160
                 URL: https://jira.codehaus.org/browse/MJAR-160
             Project: Maven 2.x JAR Plugin
          Issue Type: Wish
    Affects Versions: 2.4
            Reporter: Marco rietveld
            Priority: Minor


If you configure the jar plugin to also run the test-jar goal, it will only run that if the package type in the pom of the project is "jar". 

However, in the case of wars it's would also be handy to be able to make the test-jars (by simply changing the configuration in one mother pom). 

We realize that this is an edge-case. However, we (drools/jbpm) work with a project that has _lots_ or submodules including a couple "war" submodules. Being able to simply have all war submodules generate test-jars without having to modify each individual war submodule's pom.xml would be nice. 

Thanks!

--
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] (MWAR-286) Please make test-jar also run for "war" packages

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MWAR-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308279#comment-308279 ] 

Robert Scholte commented on MWAR-286:
-------------------------------------

I understand your point, but it is weird to add the maven-jar-plugin when the packaging-type is {{war}}. I expect this can be fixed with a small number of lines.
The result will be: one or two extra tag in the maven-war-plugin configuration instead of the maven-jar-plugin + configuration + execution. 

                
> Please make test-jar also run for "war" packages
> ------------------------------------------------
>
>                 Key: MWAR-286
>                 URL: https://jira.codehaus.org/browse/MWAR-286
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Wish
>    Affects Versions: 2.2
>            Reporter: Marco rietveld
>            Priority: Minor
>
> If you configure the jar plugin to also run the test-jar goal, it will only run that if the package type in the pom of the project is "jar". 
> However, in the case of wars it's would also be handy to be able to make the test-jars (by simply changing the configuration in one mother pom). 
> We realize that this is an edge-case. However, we (drools/jbpm) work with a project that has _lots_ or submodules including a couple "war" submodules. Being able to simply have all war submodules generate test-jars without having to modify each individual war submodule's pom.xml would be nice. 
> Thanks!

--
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] (MWAR-286) Please make test-jar also run for "war" packages

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MWAR-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308142#comment-308142 ] 

Robert Scholte commented on MWAR-286:
-------------------------------------

An equivalent of [attachClasses|http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#attachClasses]?
                
> Please make test-jar also run for "war" packages
> ------------------------------------------------
>
>                 Key: MWAR-286
>                 URL: https://jira.codehaus.org/browse/MWAR-286
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Wish
>    Affects Versions: 2.2
>            Reporter: Marco rietveld
>            Priority: Minor
>
> If you configure the jar plugin to also run the test-jar goal, it will only run that if the package type in the pom of the project is "jar". 
> However, in the case of wars it's would also be handy to be able to make the test-jars (by simply changing the configuration in one mother pom). 
> We realize that this is an edge-case. However, we (drools/jbpm) work with a project that has _lots_ or submodules including a couple "war" submodules. Being able to simply have all war submodules generate test-jars without having to modify each individual war submodule's pom.xml would be nice. 
> Thanks!

--
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] (MWAR-286) Please make test-jar also run for "war" packages

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MWAR-286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte moved MJAR-160 to MWAR-286:
------------------------------------------

    Affects Version/s:     (was: 2.4)
                       2.2
                  Key: MWAR-286  (was: MJAR-160)
              Project: Maven 2.x WAR Plugin  (was: Maven 2.x JAR Plugin)
    
> Please make test-jar also run for "war" packages
> ------------------------------------------------
>
>                 Key: MWAR-286
>                 URL: https://jira.codehaus.org/browse/MWAR-286
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Wish
>    Affects Versions: 2.2
>            Reporter: Marco rietveld
>            Priority: Minor
>
> If you configure the jar plugin to also run the test-jar goal, it will only run that if the package type in the pom of the project is "jar". 
> However, in the case of wars it's would also be handy to be able to make the test-jars (by simply changing the configuration in one mother pom). 
> We realize that this is an edge-case. However, we (drools/jbpm) work with a project that has _lots_ or submodules including a couple "war" submodules. Being able to simply have all war submodules generate test-jars without having to modify each individual war submodule's pom.xml would be nice. 
> Thanks!

--
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] (MWAR-286) Please make test-jar also run for "war" packages

Posted by "Geoffrey De Smet (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MWAR-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308205#comment-308205 ] 

Geoffrey De Smet commented on MWAR-286:
---------------------------------------

@Robert that would work: it fixes the problem of having to overwrite the jar plugin on every war module just to deploy the test-jar.
But personally, I believe that if the jar plugin is configured to generate a test-jar, it should do that for war modules too.
                
> Please make test-jar also run for "war" packages
> ------------------------------------------------
>
>                 Key: MWAR-286
>                 URL: https://jira.codehaus.org/browse/MWAR-286
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Wish
>    Affects Versions: 2.2
>            Reporter: Marco rietveld
>            Priority: Minor
>
> If you configure the jar plugin to also run the test-jar goal, it will only run that if the package type in the pom of the project is "jar". 
> However, in the case of wars it's would also be handy to be able to make the test-jars (by simply changing the configuration in one mother pom). 
> We realize that this is an edge-case. However, we (drools/jbpm) work with a project that has _lots_ or submodules including a couple "war" submodules. Being able to simply have all war submodules generate test-jars without having to modify each individual war submodule's pom.xml would be nice. 
> Thanks!

--
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] (MWAR-286) Please make test-jar also run for "war" packages

Posted by "Marco rietveld (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MWAR-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308387#comment-308387 ] 

Marco rietveld commented on MWAR-286:
-------------------------------------

@Robert, thanks, that fixes the problem for us. 
                
> Please make test-jar also run for "war" packages
> ------------------------------------------------
>
>                 Key: MWAR-286
>                 URL: https://jira.codehaus.org/browse/MWAR-286
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Wish
>    Affects Versions: 2.2
>            Reporter: Marco rietveld
>            Priority: Minor
>
> If you configure the jar plugin to also run the test-jar goal, it will only run that if the package type in the pom of the project is "jar". 
> However, in the case of wars it's would also be handy to be able to make the test-jars (by simply changing the configuration in one mother pom). 
> We realize that this is an edge-case. However, we (drools/jbpm) work with a project that has _lots_ or submodules including a couple "war" submodules. Being able to simply have all war submodules generate test-jars without having to modify each individual war submodule's pom.xml would be nice. 
> Thanks!

--
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