Package phase includes old package artifact for javascript-type projects
------------------------------------------------------------------------
Key: MOJO-1053
URL: http://jira.codehaus.org/browse/MOJO-1053
Project: Mojo
Issue Type: Bug
Components: javascript-tools
Environment: Maven 2.0.7 on Windows XP
Reporter: Joshua Suereth
I've created a new maven project with the type "javascript". This project has
a src/main/javascript folder and a src/test/javascript folder containing
javascript source code. When building, if a clean is not performed, the
package phase attempts to include the already existing javascript jar file.
(i.e. run mvn package && mvn package)
Here's my pom.xml
------------------------------
<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>test</groupId>
<artifactId>test</artifactId>
<packaging>javascript</packaging>
<version>1.0</version>
<name>Testing JS Package</name>
<description>
Making sure things work correctly.
</description>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javascript-maven-plugin</artifactId>
<version>1.0-alpha-1-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
<sourceDirectoy>src/main/javascript</sourceDirectoy>
<testSourceDirectory>src/test/javascript</testSourceDirectory>
<outputDirectory>target/scripts</outputDirectory>
<testOutputDirectory>target/test-scripts</testOutputDirectory>
</configuration>
</plugin>
</plugins>
</build>
<!-- Internal Repository Settings -->
<repositories>
<repository>
<id>Codehaus Snapshots</id>
<url>http://snapshots.repository.codehaus.org/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<!-- Javascript plugin is not released yet... -->
<pluginRepository>
<id>Codehaus Snapshots</id>
<url>http://snapshots.repository.codehaus.org/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
<pluginRepository>
<id>Codehaus Snapshots</id>
<url>http://repository.codehaus.org/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</project>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email