Looks like this would work, except for the nested directory issue in the
zip file (unless I'm missing something). I don't think the dependency
plugin has the option of scoping down into a sub-dependency.
Again, I want to combine a zip file dependency with the project like so:
Before:
Project:
/src/main/webapp/js/file1.js
zip file 1:
/lib/zfile1.zip:/directory1/directory2/arbitraryFile1.js
zip file 2:
/lib/zfile2.zip:/directoryA/directoryB/directoryC/arbitraryFile2.js
Maven target:
/target/output/js/file1.js
/target/output/js/arbitraryFile1.js
/target/output/js/arbitraryFile2.js
and resulting war:
/js/file1.js
/js/arbitraryFile1.js
/js/arbitraryFile2.js
Does that make sense? Is there a way to do this with the dependency plugin?
You and mentioned a similar post a couple weeks ago... could you relay a
link?
Ultimately, I may be just being lazy with my desire to be able to
upgrade my javascript dependencies with zip files unmodified from the
source (in this case from the TinyMCE website).
Thanks.
Siegfried Goeschl wrote:
John Ericksen wrote:
Hello,
I have what might be a basic question, but I haven't been able to find
a way to accomplish it using Maven. The project I am working on
(Braintrain: http://code.google.com/p/braintrain/) uses Maven as the
build framework. What I want to do is basically unzip 2 zip files and
move the contents of a subdirectory in each to the js/ directory of
the war. Specifically:
braintrain/braintrain-war/lib/tinymce_3_2_7.zip, sub-zip directory:
/tinymce/jscripts/tiny_mce/
braintrain/braintrain-war/lib/tinymce_compressor_jsp_2_0_2.zip,
sub-zip directory: /tinymce_compressor_jsp/
Ive tried using a war overlay, but I couldn't get the sub-directories
moved to the /js dir... they ended up looking like this:
/js/tinymce/jscripts/tiny_mce/... and
/js/tinymce_compressor_jsp/
which wouldn't work... the compressor jsp needs to be in the same
directory as the tiny_mce.js javascript file
Also, Ive tried using the maven-javascript-plugin, but it didnt seem
to have the facilities for this.
I encourage you to check out braintrain and build it.. here's the svn:
http://braintrain.googlecode.com/svn/trunk/
to build it from the root, make sure to run mvn clean install... there
are a lot of sub-projects that need to be installed.
Thank you in advance for your attention feedback and suggestions. Let
me know if you have any questions or need any clarification.
John
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
Hi John,
you might have a look at the dependency plugin (and there was a similar
question on the mailing list maybe two or three weeks ago)
Cheers,
Siegfried Goeschl
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]