[jvm-packages] xgboost4j: publishing sources along with bins (#1797)

* xgboost4j: publishing sources along with bins

* description about building maven artifacts

* publishing scala source to local m2 as well
This commit is contained in:
Alexey Grigorev
2016-11-21 21:02:57 +01:00
committed by Nan Zhu
parent d80cec3384
commit 80e70c56b9
2 changed files with 41 additions and 0 deletions

View File

@@ -77,6 +77,20 @@
</excludePackageNames>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>maven-site-plugin</artifactId>
@@ -145,6 +159,14 @@
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>scala-compile-first</id>
<phase>process-resources</phase>
<goals>
<goal>compile</goal>
<goal>add-source</goal>
</goals>
</execution>
</executions>
</plugin>