java - Packaging war file with maven -


i thought that, if project named my-web-application, when call mvn clean install maven first compiles target\my-web-application-1.0 folder , "zips" folder my-web-application-1.0.war...

but found it's not how (maybe default settings) works.

i'm using 3rd party components , i'd modify styles (.css) , behavior (.js) components, replace content in dependency jar modification using

<plugin>     <groupid>org.codehaus.mojo</groupid>     <artifactid>exec-maven-plugin</artifactid>     <version>1.2.1</version> <plugin> 

execution example follows (it zips org folder componenttomodify.jar)

<execution>     <id>fix</id>     <phase>package</phase>     <configuration>         <executable>jar</executable>         <workingdirectory>${basedir}</workingdirectory>         <arguments>             <argument>-uvf</argument>             <argument>target/${project.artifactid}-${project.version}/web-inf/lib/componenttomodify.jar</argument>             <argument>org</argument>         </arguments>     </configuration>     <goals>         <goal>exec</goal>     </goals> </execution> 

what correctly modifies componenttomodify.jar in target\my-web-application-1.0, final war doesn't contain modifications. seems libs zipped war local repository.

is there reason such behavior , can change somehow?

not sure using overlay here?

http://maven.apache.org/plugins/maven-war-plugin/overlays.html

if else fails, may want modify 3rd party application , produce own jar changes.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -