scala-maven-plugin

How to generate an aggregated scaladoc for a maven site?

微笑、不失礼 提交于 2019-12-20 12:09:13
问题 I have a multi-module Maven build and I would like to generate an aggregated Scaladoc in my root module, similar to what the aggregate goal for the maven-javadoc-plugin does. My first attempt was: <project ...> <build> <pluginManagement> <plugins> <plugin> <artifactId>maven-site-plugin</artifactId> <configuration> <reportPlugins> <plugin> <artifactId>maven-project-info-reports-plugin</artifactId> </plugin> <plugin> <groupId>net.alchim31.maven</groupId> <artifactId>scala-maven-plugin<

How to generate an aggregated scaladoc for a maven site?

不打扰是莪最后的温柔 提交于 2019-12-03 03:17:32
I have a multi-module Maven build and I would like to generate an aggregated Scaladoc in my root module, similar to what the aggregate goal for the maven-javadoc-plugin does. My first attempt was: <project ...> <build> <pluginManagement> <plugins> <plugin> <artifactId>maven-site-plugin</artifactId> <configuration> <reportPlugins> <plugin> <artifactId>maven-project-info-reports-plugin</artifactId> </plugin> <plugin> <groupId>net.alchim31.maven</groupId> <artifactId>scala-maven-plugin</artifactId> <reports> <report>doc</report> </reports> <configuration> <aggregateDirectOnly>false<

Travis CI ignoring MAVEN_OPTS?

依然范特西╮ 提交于 2019-11-30 19:29:34
My Scala project (Maven-managed) is failing to build on Travis, throwing a GC overhead limit exceeded error despite compiling fine locally with the same MAVEN_OPTS=-Xmx3g -XX:MaxPermSize=512m . I suspect that Travis is somehow ignoring my MAVEN_OPTS : When I try to test against Oracle JDK 8, Travis logs: $ Setting environment variables from .travis.yml $ export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx3g" which looks good. However, soon after it logs: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0 which is troubling since NOWHERE am I

Travis CI ignoring MAVEN_OPTS?

时光怂恿深爱的人放手 提交于 2019-11-30 03:45:14
问题 My Scala project (Maven-managed) is failing to build on Travis, throwing a GC overhead limit exceeded error despite compiling fine locally with the same MAVEN_OPTS=-Xmx3g -XX:MaxPermSize=512m . I suspect that Travis is somehow ignoring my MAVEN_OPTS : When I try to test against Oracle JDK 8, Travis logs: $ Setting environment variables from .travis.yml $ export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx3g" which looks good. However, soon after it logs: Java HotSpot(TM) 64-Bit Server VM warning:

Enabling the macro-paradise Scala compiler plugin in Maven projects

两盒软妹~` 提交于 2019-11-28 23:32:39
I have the ordinary scala-2.10 macros working in a maven project just by including the scala-reflect.jar library as a dependency in the pom, but what do I need to turn on macro-paradise? I am using scala-2.10 and scala-maven-plugin-3.1.5. Looks like I got it to work with the following additions to the pom.xml <repositories> ... <repository> <id>oss.sonatype.org</id> <name>sonatype sapshots</name> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </repository> ... </repositories> and <plugins> ... <plugin> ... scala-maven-plugin identification... <configuration> ...

Maven: mixing Java and Scala in one project

你。 提交于 2019-11-27 17:39:08
问题 Today I've been trying to find a proper solution to set up a maven project that contains both Java and Scala code (with two-way dependencies between them). The solutions I've found usually consist of invoking scala-maven-plugin or maven-scala-plugin in the process-resources phase so that it runs before the default maven compiler plugin (examples: http://www.hascode.com/2012/03/snippet-mixing-scala-java-in-a-maven-project/, https://itellity.wordpress.com/2014/08/21/mixing-scala-and-java-in-a

Enabling the macro-paradise Scala compiler plugin in Maven projects

大城市里の小女人 提交于 2019-11-27 15:07:43
问题 I have the ordinary scala-2.10 macros working in a maven project just by including the scala-reflect.jar library as a dependency in the pom, but what do I need to turn on macro-paradise? I am using scala-2.10 and scala-maven-plugin-3.1.5. 回答1: Looks like I got it to work with the following additions to the pom.xml <repositories> ... <repository> <id>oss.sonatype.org</id> <name>sonatype sapshots</name> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </repository> ... <