[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-18) MavenImporter on war files should support a configuration that supports "skipping the build" in the IDE (and preferably use it by default)

Karel Piwko (JIRA) jira-events at lists.jboss.org
Sun Jan 13 11:17:21 EST 2013


     [ https://issues.jboss.org/browse/SHRINKRES-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karel Piwko resolved SHRINKRES-18.
----------------------------------

    Fix Version/s: 2.0.0-alpha-7
       Resolution: Done

    
> MavenImporter on war files should support a configuration that supports "skipping the build" in the IDE (and preferably use it by default)
> ------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SHRINKRES-18
>                 URL: https://issues.jboss.org/browse/SHRINKRES-18
>             Project: ShrinkWrap Resolvers
>          Issue Type: Enhancement
>    Affects Versions: 2.0.0-alpha-1
>            Reporter: Geoffrey De Smet
>            Assignee: Karel Piwko
>             Fix For: 2.0.0-alpha-7
>
>
> Currently the MavenImporter on war files requires "mvn package" to be run every time (not only the first time), to update the exploded directory at "target/{finalName}".
> This means if you change something in your code and want to (re)run a test,
> and forget to run "mvn package" first, you're running the old code (and the results are not representative of the changed code).
> Karel and Geoffrey discussed this at JUDCon London.
> The following things can be probably presumed:
> - The IDE compiles all classes from src/main/java to target/classes.
> - The IDE copies all non-filtered resources from src/main/resources to target/classes.
> - That target/classes is copied into the war at WEB-INF/classes.
> - Most src/main/webapp dirs are copied unaltered into the root of the war. (*)
> - "mvn compile" is run once after any "mvn clean": in other words, all src/main/filtered-resources are in target/classes
> So MavenImporter doesn't have to require "mvn package" to build the exploded dir first (which it then zips, enriches and sends to arquillian).
> Instead, it can construct the war zip directly from target/classes and src/main/webapp.
> That is at least one less copy and more importantly, to run the test from the IDE without having to build first.
> Note: all examples above used the explicit directory locations, but in reality the pom.xml's <build> section should be used to determinate the directory locations for a certain project.

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


More information about the shrinkwrap-issues mailing list