Maven 1

running war plugin while skipping unit tests results in a war without src and resources

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Duplicate
  • Affects Version/s: 1.1-beta-3
  • Fix Version/s: None
  • Component/s: core
  • Labels:
    None
  • Number of attachments :
    0

Description

(Probably) due to Jelly issues, plugin pregoals are sometimes evaluated wrongly. In our case this causes a war goal to NOT call the necessary pregoal (java:jar-resources and even java:compile) when you skip running the tests (maven.test.skip=true). The problem does not occur with maven 1.02, and it does not occur when NOT skipping unit tests.

The issues can be verified by running:

maven -Dmaven.test,skip=true war on a web project

Issue Links

Activity

Hide
Marnix J. van Wendel de Joode added a comment -

This goes for the ejb plugin as well. When running ejb:install with maven.test.skip=true no XML files are included in the META-INF directory of the resulting jar.

Show
Marnix J. van Wendel de Joode added a comment - This goes for the ejb plugin as well. When running ejb:install with maven.test.skip=true no XML files are included in the META-INF directory of the resulting jar.
Hide
Lukas Theussl added a comment -

Both the test and ejb plugins are scheduled to be re-released for Maven 1.1rc1 [1], if you think that your issues are not covered by the respective roadmaps [2,3], please open new tickets at either MPTEST or MPEJB. Thanks.

[1] http://jira.codehaus.org/browse/MAVEN?report=com.atlassian.jira.plugin.system.project:roadmap-panel
[2] http://jira.codehaus.org/browse/MPTEST?report=com.atlassian.jira.plugin.system.project:roadmap-panel
[3] http://jira.codehaus.org/browse/MPEJB?report=com.atlassian.jira.plugin.system.project:roadmap-panel

Show
Lukas Theussl added a comment - Both the test and ejb plugins are scheduled to be re-released for Maven 1.1rc1 [1], if you think that your issues are not covered by the respective roadmaps [2,3], please open new tickets at either MPTEST or MPEJB. Thanks. [1] http://jira.codehaus.org/browse/MAVEN?report=com.atlassian.jira.plugin.system.project:roadmap-panel [2] http://jira.codehaus.org/browse/MPTEST?report=com.atlassian.jira.plugin.system.project:roadmap-panel [3] http://jira.codehaus.org/browse/MPEJB?report=com.atlassian.jira.plugin.system.project:roadmap-panel

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: