Is there an Maven plugin that just combines js and css resources but doesn\'t do any minification, obsucation, compressing etc? Just simple resources concatenation.
Make the following changes to your project:
In your pom.xml,
tag, place:
ro.isdc.wro4j
wro4j-core
In your pom.xml,
tag, place:
ro.isdc.wro4j
wro4j-maven-plugin
1.4.3
process-resources
run
allDev
${basedir}/src/main/webapp/
${basedir}/src/main/webapp/
In your pom.xml (or the parent pom.xml)
tag, place:
ro.isdc.wro4j
wro4j-core
1.8.0
Create a wro.xml under /project/src/main/webapp/WEB-INF
and place something like the following:
/my1stJsFolder/*.js
/my2ndJsFolder/*.js
/someFileDirectlyUnderWEBINF.js
In web.xml insert:
WebResourceOptimizer
ro.isdc.wro.http.WroFilter
WebResourceOptimizer
/wro/*
allDev.js will be generated under /project/src/main/webapp
.
I am not sure yet how I could tell wro4j to only generate one in target (now you have two - one in the project source files and one in target).
When compressing with yui plugin I only get one in target. But this should not be that big of a problem for you.
For more:
ADDITIONALLY:
If you have any problems with the resource processing try adding to
tag:
src/main/resources
true
And also to
add
org.apache.maven.plugins
maven-resources-plugin
pdf
swf
jpg
jpeg
class
jks
exe
wmv
jar
zip
gz