I'm starting the process of automating the builds of our application, and in the project have some classes with compilation error.
Despite some compilation errors, the application is working fine. I will have to do a task force, to remove the compilation errors but the project is very large and I would like to do this only in the future.
At the moment I would like Maven to create the JAR even if there are compilation errors.
I made a change in my pom.xml
so that the build does not crash, even if there are compilation errors:
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<failOnError>false</failOnError>
</configuration>
</plugin>
</plugins>
</build>
...
However, when I run maven package
an empty JAR is created, with no class.
How to make maven create JAR with classes that could be compiled even though there are other classes with compilation errors?