JS: example project to produce full artifacts set: production+test sources jar, production+test binary jar

This commit is contained in:
Sergey Mashkov
2015-05-17 14:29:15 +03:00
committed by Sergey Mashkov
parent d04ec74217
commit 42662d7349
2 changed files with 52 additions and 16 deletions
+46
View File
@@ -47,6 +47,52 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>main sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
<execution>
<id>test sources</id>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>main jar</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classesDirectory>${project.basedir}/target/js</classesDirectory>
</configuration>
</execution>
<execution>
<id>test jar</id>
<goals>
<goal>test-jar</goal>
</goals>
<configuration>
<testClassesDirectory>${project.basedir}/target/test-js</testClassesDirectory>
</configuration>
</execution>
</executions>
<configuration>
<forceCreation>true</forceCreation>
</configuration>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>