question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incremental compilation always recompiles all

See original GitHub issue

I always get this:

Pruning sources from previous analysis, due to incompatible CompileSetup.

and a full recompile.

My pom.xml is:

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-compiler-plugin</artifactId>
	<version>3.8.0</version>
	<configuration>
		<source>${build.jdk.version}</source>
		<target>${build.jdk.version}</target>
		<encoding>UTF-8</encoding>
		<compilerArgs>
			<arg>--add-modules</arg><arg>ALL-SYSTEM</arg>
		</compilerArgs>
	</configuration>
</plugin>

<plugin>
	<groupId>net.alchim31.maven</groupId>
	<artifactId>scala-maven-plugin</artifactId>
	<version>${version.scala-maven-plugin}</version>
	<configuration>
		<compilerPlugins>
			<compilerPlugin>
				<groupId>com.artima.supersafe</groupId>
				<artifactId>supersafe_${version.scalalibs}</artifactId>
				<version>${version.supersafe}</version>
			</compilerPlugin>
		</compilerPlugins>
		<jvmArgs>
			<jvmArg>-Xms64m</jvmArg>
			<jvmArg>-Xss4m</jvmArg>
			<jvmArg>-Xmx2g</jvmArg>
		</jvmArgs>
		<args>
			<arg>-release</arg>
			<arg>${build.jdk.version}</arg>
		</args>
		<scalaVersion>${version.scalalibs}</scalaVersion>
		<recompileMode>incremental</recompileMode>
	</configuration>
</plugin>

version.scalalibs=2.12.7 build.jdk.version=10 version.supersafe=1.1.7 version.scala-maven-plugin=3.4.4

Any hints?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:34 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
SethTisuecommented, Nov 23, 2018

I’m surprise by the usage of this plugin in an ecosystem where sbt is the defacto build tool.

if you participate in Scala OSS and watch conference talks, it’s easy to get the impression that sbt use is near-universal.

but if you talk to people who are just quietly using Scala at work, you get a different impression: Maven and Gradle use seems rather common, especially at big companies. (in a Java shop, it can be easier to get a new language in the door than it is to convince co-workers to switch build tools.)

2reactions
davidBcommented, Nov 22, 2018

@jvican

Would you guys be free to jump on a call to talk about the future of Scala support in Maven?

Yes, it depends of the time window (I’m in France, and Friday is often a better day for a call with me, less constraint). FYI Scala, is no longer my daily job or my favorite language.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MCUX 11.0.1 - Incremental build recompiles everything always
Solved: So this has started happening to me in just the past week, with one of my longstanding projects, and I have no...
Read more >
Understanding Incremental Recompilation - SBT
The incremental compiler extracts all Symbols given compilation unit depends on (refers to) and then tries to map them back to corresponding source/class...
Read more >
Maven compiler recompile all files instead modified
Keep in mind that with this setting it does the simple incremental compilation, but it is not very usefull since it doesn't recompile...
Read more >
Incremental compilation in Gradle 4 vs. 5 - Help/Discuss
Incremental compilation correctly realized that no other file needed to be compiled. However in 5.3, Gradle appears to recompile all classes ...
Read more >
A New Approach to Incremental Compilation in Kotlin
All of these advancements decrease the number of necessary full-module and file recompilations, making the overall compilation time faster.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found