Sorry for hijacking this thread, but there doesn't seem to be many people
using maven-javascript-plugin and I didn't find a dedicated forum to post a
question, so hopefully some of you who seem to have it working could give me
a hand.
I have managed to create a project that packages and installs a jar in the
local repository, but when I try to use it in a web application I'm getting
an error:
Embedded error: Failed to extract javascript artifact to
C:\proyectos\pgr\jept\jept-web\target\jept-web-1.0-SNAPSHOT\scripts\lib
The source must not be a directory.
The POM of my web app has the following dependency:
<dependency>
<groupId>org.jnf.ext</groupId>
<artifactId>ux</artifactId>
<version>0.0.1-SNAPSHOT</version>
<type>javascript</type>
</dependency>
and the following plugin inside the <build> section:
<plugin>
<groupId>org.codehaus.mojo.javascript</groupId>
<artifactId>javascript-maven-plugin</artifactId>
<extensions>true</extensions>
<version>1.0-alpha-1-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>war-package</goal>
<goal>prepare-tests</goal>
<goal>jsunit</goal>
<goal>compress</goal>
</goals>
</execution>
</executions>
</plugin>
as per the scarce documentation.
In the POM of my javascript library I have:
<outputDirectory>target/scripts</outputDirectory>
<testOutputDirectory>target/test-scripts</testOutputDirectory>
<plugins>
<plugin>
<groupId>org.codehaus.mojo.javascript</groupId>
<artifactId>javascript-maven-plugin</artifactId>
<extensions>true</extensions>
<version>1.0-alpha-1-SNAPSHOT</version>
</plugin>
</plugins>
And apparently it works ok when I do a mvn install, everything seems ok, a
jar file is generated and stored in the local repository.
I don't understand the mechanism of using javascript dependencies. How does
the javascript resources inside the jar get included in the web project?
Any ideas?
Thanks.
--
View this message in context:
http://old.nabble.com/javascript-maven-plugin-release-tp24909453p26803723.html
Sent from the mojo - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email