Hi Wayne.
Thanks for the answer. I followed your tip adding a <plugin> node within
<plugins> according the instructions from
http://mojo.codehaus.org/javascript-maven-tools/guide-webapp-development.html:
<plugin>
<groupId>org.codehaus.mojo.javascript</groupId>
<artifactId>javascript-maven-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>war-package</goal>
<goal>prepare-tests</goal>
<goal>jsunit</goal>
<goal>compress</goal>
</goals>
</execution>
</executions>
</plugin>
Here's my complete pom.xml file:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>gbd</groupId>
<artifactId>SpatialDatamining</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>Test JEE5 Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo.javascript</groupId>
<artifactId>javascript-maven-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>war-package</goal>
<goal>prepare-tests</goal>
<goal>jsunit</goal>
<goal>compress</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<finalName>SpatialDatamining</finalName>
</build>
</project>
But the following error occurs:
Missing Extension or Plugin With Extensions
Cannot resolve pre-scanned plugin artifact (for use as an extension):
org.codehaus.mojo.javascript:javascript-maven-plugin: Failed to resolve
extension plugin:
org.codehaus.mojo.javascript:javascript-maven-plugin:maven-plugin:RELEASE
I'm using Maven 2 with NetBeans 6.8 plugin.
How should I configure the pom.xml?
Thanks,
José
Wayne Fay wrote:
>
>> Where can I find the .jar and poml.xml files for MOJO? Is there another
>> way
>> to do the installation?
>
> You generally should not be doing this. Instead, simply add the
> relevant <plugin> node to your pom file and Maven will download and
> install things automatically.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
--
View this message in context:
http://old.nabble.com/Install---newbie-question-tp28107790p28112190.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