Questions tagged [maven-compiler-plugin]

The Maven Compiler Plugin is used to compile the sources of your project. The default compiler is javac and is used to compile Java sources.

The Maven Compiler Plugin is used to compile the sources of your project.

The plugin always has a binding to the compile phase to compile application sources and to the test-compile phase to compile test sources.

Check the official usage page for a first look at this plugin.

More Info

293 questions
0
votes
1 answer

Maven compile plugin package exclusion doesn't work

I have a project that is built against 3 versions of dependencies. The oldest version has many incompatible changes which prompts me to exclude the only package that use them: spark-1.3.1
tribbloid
  • 4,026
  • 14
  • 64
  • 103
0
votes
0 answers

Compile error when packaging maven project

I'm using datanucleus/mongodb. I recently converted my dynamic web project to maven in Eclipse because I wanted to use the maven buildnumber plugin. However I am just trying to get it to work now in maven. I do not have issues getting my simple…
0
votes
1 answer

Compiling Error in Maven

Seeing compilation error in maven. Checked and tried all the workarounds which i got from google and stack* sites. but still i couldnt resolve. Installed maven 3.3.3 and its supported version of java which is 1.7. Please note i haven't set…
divakar.scm
  • 1,256
  • 5
  • 21
  • 32
0
votes
1 answer

My maven module cannot find class in my other maven module though I am setting it as dependency

I have two maven modules. One named tests and one ws-ejb. In the tests pom.xml I have set the ws-ejb to be a dependency so I can use the EJB's in my tests. This is a shortened version of the pom.xml of my tests maven module:
number_43
  • 29
  • 1
  • 5
0
votes
1 answer

Maven current project compiled with java 1.6 which has 2 dependencies on java 1.7 and 1.6

My current Maven project is compiled with 1.6 maven-compiler-plugin 3.1 1.6 …
Mitra Rat
  • 1
  • 1
  • 2
0
votes
1 answer

How to include an excluded source file for tests?

I have a initial data class which should be excluded in the normal (default profile) build. If I specify for example the run profile this class should be included. Furthermore this class is needed by the tests. So it needs to be included all the…
CSchulz
  • 10,882
  • 11
  • 60
  • 114
0
votes
1 answer

maven - no sources to compile, no tests to run, unable to read execution data file

I want sonar to display the code quality for my project using the jacoco code coverage reports. I am able to generate code coverage reports using jacoco and also an executable file jacoco-ut.exec for my unit tests. When I use jenkins i get following…
0
votes
1 answer

Maven-compiler-plugin excluding fails in 3.3

I used this in maven-compiler-plugin 3.2 and it worked fine, but when I upgraded to 3.3 excludes doesn't longer work. What changed that broke my excluding? Situation: This is a list of my packages. I want to exclude all packages starting with…
Jonathan
  • 89
  • 10
0
votes
0 answers

Maven compiler plugin error

I have the following code in pom.xml for specifying the maven-compiler-plugin: 1.8 UTF-8
STiGMa
  • 906
  • 3
  • 11
  • 24
0
votes
1 answer

Installing and compiling Maven artifacts on Java 8

I have a project with a pom.xml that has the following declaration: org.apache.maven.plugins maven-compiler-plugin
smeeb
  • 27,777
  • 57
  • 250
  • 447
0
votes
0 answers

Can I configure maven-compiler-plugin to process .class files instead of .java files?

When I use javac on the command line to process annotations on a single class I can do the following: $ javac -proc:only -cp target/classes -sourcepath target/classes x.y.z.Bar I'd like to do the same thing in maven, except using all classes in the…
John Q Citizen
  • 3,138
  • 4
  • 26
  • 31
0
votes
1 answer

Add the debug symboles by using maven

I'm trying to add the debug symboles by using mave-compiler-plugin (so that I'll be able to access the method parameters names). Following the available configurations that can be found here, Here is my maven-compiler-plugin configuration …
Modi
  • 2,200
  • 4
  • 23
  • 37
0
votes
0 answers

How to remove sources in maven

I'm using https://jax-ws-commons.java.net/jaxws-maven-plugin/ to generate sources from wsdl files. I'm doing multiple executions(for different wsdls) with different sourceDestDir. This is working as expected and it is generating sources in different…
coderplus
  • 5,793
  • 5
  • 34
  • 54
0
votes
1 answer

How can I define a third Java source folder for Maven which gets compiled into a third JAR?

By default, Maven standard directory layout has two Java source folders: src/main/java src/test/java For my purposes, I need a third one src/junit/java which should be packaged into a JAR with the classifier junit. If possible, the new source…
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
0
votes
2 answers

Does maven-release-plugin also do what maven-compiler-plugin does?

In project pom.xml is it required to include both maven-release-plugin and maven-compiler-plugin? The reason I want the release plugin is because I want to release the project at the end of a sprint/release. I understand that the compiler plugin…
user1470220
  • 123
  • 2
  • 15
1 2 3
19
20