[Maven-js-plugin-users] jar-files are not excluded from war-file-build after execution of maven-js-
Brought to you by:
mvaaltemus
From: icke <mo...@la...> - 2009-12-17 22:14:00
|
hi , i have a problem with the maven-js-plugin. the war-file is build twice. the both war-files are not this one i expect... but let me explain in detail :-) this is the current situation: pom.xml: /<build> <plugin> <groupId>com.mobilvox.ossi.mojo</groupId> <artifactId>maven-js-plugin</artifactId> <version>1.3.1</version> <configuration> <mergeWarFiles>true</mergeWarFiles> <replaceJavaScript>false</replaceJavaScript> <includes> <include>**/**.js</include> </includes> <jsDirectory>target/scripts</jsDirectory> <outputDirectory>target/scripts</outputDirectory> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>compress</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1-beta-1</version> <configuration> <packagingExcludes>WEB-INF/lib/servlet*.jar, WEB-INF/lib/jta*.jar, WEB-INF/lib/jaxb-xjc*.jar, WEB-INF/lib/activation-*.jar, WEB-INF/lib/xpp3-*.jar, WEB-INF/lib/axiom-*.jar, WEB-INF/lib/jt400-full-4.9.0.jar, WEB-INF/lib/junit*.jar, WEB-INF/lib/xml-apis-*.jar, WEB-INF/lib/icu4j-*.jar, WEB-INF/lib/xalan-*.jar, WEB-INF/lib/jdom*.jar, WEB-INF/lib/xmlParserAPIs-*.jar</packagingExcludes> <warSourceExcludes>**/*.css</warSourceExcludes> </configuration> </plugin> </build>/ as i see in console the war-file is built twice. first build with my uncompressed js-files and WITHOUT the excluded jars (see tag packagingExcludes) before the 2nd build the ossi-maven-js-plugin does its work. it compresses the js-files so far but in the next upcoming war-file the excluded jars are available anyway. any idea why? i want a war-file with compressed js-files and withou(!) the excluded jars. thank you for your help! greetz, mooeeh |