maven-compiler-plugin

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

佐手、 提交于 2019-12-09 09:11:58
问题 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

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

一曲冷凌霜 提交于 2019-12-09 02:10: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

Configure maven-compiler-plugin so it works both with JDK-8 and JDK-12 (in Spring Boot project)

天大地大妈咪最大 提交于 2019-12-08 10:44:41
问题 Is it possible to configure maven-compiler-plugin so it works both with JDK 8 and JDK 12? I am not sure if it is relevant, but it is a Spring Boot project. 1. The configuration <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <source>1.8</source> <target>1.8</target> <release>8</release> </configuration> </plugin> is compilable under JDK-12, but under JDK-8 fails: [ERROR] Failed to execute goal org

Why maven compilation doesn't work with “pom” packaging type

主宰稳场 提交于 2019-12-07 07:41:48
问题 I don't know why my maven build doesn't generate target/classes in current pom setting, the packaging type must be "pom" in my case, please advise what is wrong... Thanks! <?xml version="1.0" encoding="UTF-8" standalone="no"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.abc.sm.doctor<

Eclipse 4.3.2 with Java 8 patches doesn't recognize source level 1.8

女生的网名这么多〃 提交于 2019-12-07 03:30:40
问题 I'm using Eclipse 4.3.2 with the patches for Java 8 from, along with m2e and Subclipse, completely updated to the latest versions of everything. I went into the Maven POMs for our project and changed the maven-compiler-plugin to: <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <source>1.8</source> <target>1.8</target> I updated all my Maven projects tried to do a complete clean and build. Errors all over the

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

家住魔仙堡 提交于 2019-12-07 01:03:11
问题 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>

Incremental java compile with maven (like Eclipse does)

孤者浪人 提交于 2019-12-06 14:59:00
问题 I want to use maven to build projects in which there are unresolved compilation problems. The main purpose is package and deploy or run aplications using some kind of stubs for classes that contains compilation errors , like I understand that Eclipse does (thanks to JDT Core). I configurate maven java compiler plugin following Apache Maven documentation at Using Non-Javac compiler to use Eclipse compiler. Thinking that maybe should set some arguments to modify the compiler/builder behaivor I

Use Maven Compiler Plugin with Eclipse Compiler and Lombok

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 04:27:02
问题 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<

Maven Pom.xml issue

♀尐吖头ヾ 提交于 2019-12-05 22:51:32
问题 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

compile tests using maven-compiler and jdk9-ea+148

若如初见. 提交于 2019-12-05 17:59:04
I have problem with building my application using maven-compile-plugin:3.6.0 at jdk9-ea+148. I am trying to make jdk9 module. Module-info and other classes are getting compiled without problem, but when it comes to default-testCompile it just crashes. When my module-info.java is removed, the it is compiled without problems. Basically this is the exception I am getting: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:testCompile (default-testCompile) on project bar: Execution default-testCompile of goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:testCompile