maven-compiler-plugin

Java 8: What is the equivalent of “UseSplitVerifier”?

…衆ロ難τιáo~ 提交于 2019-12-05 05:17:15
I'm using Maven 3.2.3 on Mac 10.9.5 and have this for my compiler plugin ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.8</source> <target>1.8</target> <compilerArgument>-proc:none</compilerArgument> <fork>true</fork> <!-- <compilerId>eclipse</compilerId>--> </configuration> <executions> <execution> <id>default-testCompile</id> <phase>test-compile</phase> <goals> <goal>testCompile</goal> </goals> </execution> </executions> </plugin> I have this for my surefire-plugin configuration ...

Use Maven Compiler Plugin with Eclipse Compiler and Lombok

五迷三道 提交于 2019-12-04 09:57:31
Is there a way to compile lomboked code in ECJ without setting lombok as javaaagent for the maven process? The snippet below only works if I run mvn with lombok as agent <profile> <id>ecj</id> <build> <pluginManagement> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compilerId>eclipse</compilerId> </configuration> <dependencies> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-compiler-eclipse</artifactId> <version>2.8-SNAPSHOT</version> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId>

Maven Pom.xml issue

ぐ巨炮叔叔 提交于 2019-12-04 03:21:44
I'm trying to make a spring mvc project using maven and getting following error in pom.xml: CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from http:// repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of

How can I handle split packages in automatic modules?

ぐ巨炮叔叔 提交于 2019-12-04 03:21:20
I am currently testing to migrate an existing application to Jigsaw Modules. One of my modules uses ElasticSearch along with its Groovy Plugin. org.elasticsearch:elasticsearch org.elasticsearch.module:lang-groovy Unfortunately, they share a split package, so mvn install gives me: x reads package org.elasticsearch.script.groovy from both lang.groovy and elasticsearch once for each required module in the descriptor, where x is the name of each module. I assume that a newer elasticsearch version will have eliminated the split package by the time Java 9 is final, but is there generally a way to

How to configure Lombok with maven-compiler-plugin?

混江龙づ霸主 提交于 2019-12-03 13:06:54
I have a root module and submodule in maven in the project. I am trying to use Lombok. I have added <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.12</version> <scope>provided</scope> </dependency> to root pom.xml. In submodule I have a class with Lombok annotations. When I am trying to build the project I get a lot of cannot find symbol where I am trying to call getters and setters. I have tried to use lombok-maven-plugin with same version (1.16.12) in root pom and in the sub pom as well with delombok and moving my annotated class to src/main

Plugin org.apache.maven.plugins:maven-compiler-plugin or one of its dependencies could not be resolved

浪尽此生 提交于 2019-12-03 12:02:41
I'm having some issues to configure properly my eclipse to work with maven. I create a new project, this one is correctly build with maven in command line ( mvn install ), but in Eclipse I got this error: CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-compiler-plugin:jar:3.1 (): ArtifactDescriptorException: Failed to read artifact descriptor

How do I pass javac multiple command-line arguments, some of which include colon, without breaking Maven release plugin?

自闭症网瘾萝莉.ら 提交于 2019-12-01 06:36:32
I want to make my Maven build fail when I forget to declare serialVersionUIDs in a Serializable class. With javac , that's easy: $ javac -Xlint:serial -Werror Source.java Directly translating that to Maven doesn't work: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <compilerArgument>-Xlint:serial -Werror</compilerArgument> </configuration> </plugin> The compilerArgument is quoted, so javac receives only one argument, containing -Xlint:serial -Werror , instead of -Xlint:serial and -Werror as separate

Intellij maven project Fatal error compiling: invalid flag: --release

只愿长相守 提交于 2019-12-01 02:16:25
I am trying to start with Spring-boot, Maven in Intellij Please help me I am getting the error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project spring-rest: Fatal error compiling: invalid flag: --release -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki

How do I disable the maven-compiler-plugin?

╄→гoц情女王★ 提交于 2019-11-30 07:47:52
问题 I have a maven project that uses the aspectj-compiler-plugin. I use intertype declarations so there are references to Aspect code in my Java code. Because of this, the maven-compiler-plugin fails to compile since it does not compile the aspect code. My question is: how do I disable the maven-compiler-plugin from running because it is not doing anything useful? There are several ways that I can get this project compiling, but they are sub-optimal: Add exclusion filters to the maven-compiler

How do I disable the maven-compiler-plugin?

佐手、 提交于 2019-11-29 05:28:05
I have a maven project that uses the aspectj-compiler-plugin. I use intertype declarations so there are references to Aspect code in my Java code. Because of this, the maven-compiler-plugin fails to compile since it does not compile the aspect code. My question is: how do I disable the maven-compiler-plugin from running because it is not doing anything useful? There are several ways that I can get this project compiling, but they are sub-optimal: Add exclusion filters to the maven-compiler-plugin. The plugin will still run, but it will not try to compile anything. Problem is that this breaks