You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Shinobu Kawai (JIRA)" <ji...@codehaus.org> on 2006/07/27 22:27:32 UTC

[jira] Created: (MPEJB-23) ejb:init does not compile java code if tests are not run

ejb:init does not compile java code if tests are not run
--------------------------------------------------------

                 Key: MPEJB-23
                 URL: http://jira.codehaus.org/browse/MPEJB-23
             Project: maven-ejb-plugin
          Issue Type: Bug
            Reporter: Shinobu Kawai
            Priority: Critical
         Attachments: MPEJB-23

When there are no tests, or maven.test.skip=true, then the build classes and resources are not included in the ejb jar file.

As a workaround, you can set java:compile and java:jar-resources as preGoals for ejb:ejb in your maven.xml:

  <preGoal name="ejb:init">
    <j:if test="${unitTestSourcesPresent != 'true' or context.getVariable('maven.test.skip') == 'true'}">
      <attainGoal name="java:compile"/>
      <attainGoal name="java:jar-resources"/>
    </j:if>
  </preGoal>


-- 
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] Updated: (MPEJB-23) ejb:init does not compile java code if tests are not run

Posted by "Shinobu Kawai (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPEJB-23?page=all ]

Shinobu Kawai updated MPEJB-23:
-------------------------------

    Attachment: MPEJB-23

Patch to fix bug.

> ejb:init does not compile java code if tests are not run
> --------------------------------------------------------
>
>                 Key: MPEJB-23
>                 URL: http://jira.codehaus.org/browse/MPEJB-23
>             Project: maven-ejb-plugin
>          Issue Type: Bug
>            Reporter: Shinobu Kawai
>            Priority: Critical
>         Attachments: MPEJB-23
>
>
> When there are no tests, or maven.test.skip=true, then the build classes and resources are not included in the ejb jar file.
> As a workaround, you can set java:compile and java:jar-resources as preGoals for ejb:ejb in your maven.xml:
>   <preGoal name="ejb:init">
>     <j:if test="${unitTestSourcesPresent != 'true' or context.getVariable('maven.test.skip') == 'true'}">
>       <attainGoal name="java:compile"/>
>       <attainGoal name="java:jar-resources"/>
>     </j:if>
>   </preGoal>

-- 
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] Updated: (MPEJB-23) ejb:init does not compile java code if tests are not run

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPEJB-23?page=all ]

Lukas Theussl updated MPEJB-23:
-------------------------------

    Fix Version/s: 1.7.3

> ejb:init does not compile java code if tests are not run
> --------------------------------------------------------
>
>                 Key: MPEJB-23
>                 URL: http://jira.codehaus.org/browse/MPEJB-23
>             Project: maven-ejb-plugin
>          Issue Type: Bug
>            Reporter: Shinobu Kawai
>            Priority: Critical
>             Fix For: 1.7.3
>
>         Attachments: MPEJB-23
>
>
> When there are no tests, or maven.test.skip=true, then the build classes and resources are not included in the ejb jar file.
> As a workaround, you can set java:compile and java:jar-resources as preGoals for ejb:ejb in your maven.xml:
>   <preGoal name="ejb:init">
>     <j:if test="${unitTestSourcesPresent != 'true' or context.getVariable('maven.test.skip') == 'true'}">
>       <attainGoal name="java:compile"/>
>       <attainGoal name="java:jar-resources"/>
>     </j:if>
>   </preGoal>

-- 
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] Commented: (MPEJB-23) ejb:init does not compile java code if tests are not run

Posted by "dion gillard (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPEJB-23?page=comments#action_71585 ] 
            
dion gillard commented on MPEJB-23:
-----------------------------------

This is a showstopper for another 1.1 beta release for me, as well.

> ejb:init does not compile java code if tests are not run
> --------------------------------------------------------
>
>                 Key: MPEJB-23
>                 URL: http://jira.codehaus.org/browse/MPEJB-23
>             Project: maven-ejb-plugin
>          Issue Type: Bug
>            Reporter: Shinobu Kawai
>            Priority: Critical
>         Attachments: MPEJB-23
>
>
> When there are no tests, or maven.test.skip=true, then the build classes and resources are not included in the ejb jar file.
> As a workaround, you can set java:compile and java:jar-resources as preGoals for ejb:ejb in your maven.xml:
>   <preGoal name="ejb:init">
>     <j:if test="${unitTestSourcesPresent != 'true' or context.getVariable('maven.test.skip') == 'true'}">
>       <attainGoal name="java:compile"/>
>       <attainGoal name="java:jar-resources"/>
>     </j:if>
>   </preGoal>

-- 
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] Closed: (MPEJB-23) ejb:init does not compile java code if tests are not run

Posted by "Shinobu Kawai (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPEJB-23?page=all ]

Shinobu Kawai closed MPEJB-23.
------------------------------

    Resolution: Fixed

This should be revisited once MPTEST-66 is fixed one way or another.

> ejb:init does not compile java code if tests are not run
> --------------------------------------------------------
>
>                 Key: MPEJB-23
>                 URL: http://jira.codehaus.org/browse/MPEJB-23
>             Project: maven-ejb-plugin
>          Issue Type: Bug
>            Reporter: Shinobu Kawai
>            Priority: Critical
>             Fix For: 1.7.3
>
>         Attachments: MPEJB-23
>
>
> When there are no tests, or maven.test.skip=true, then the build classes and resources are not included in the ejb jar file.
> As a workaround, you can set java:compile and java:jar-resources as preGoals for ejb:ejb in your maven.xml:
>   <preGoal name="ejb:init">
>     <j:if test="${unitTestSourcesPresent != 'true' or context.getVariable('maven.test.skip') == 'true'}">
>       <attainGoal name="java:compile"/>
>       <attainGoal name="java:jar-resources"/>
>     </j:if>
>   </preGoal>

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