Use the Maven Compiler Plugin.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/api/test/omi/*.java</exclude>
</excludes>
</configuration>
</plugin>
More Related Contents:
- Building a fat jar using maven
- Differences between dependencyManagement and dependencies in Maven
- How to force maven update?
- How are maven scopes mapped to ivy configurations by ivy
- Maven: Lifecycle vs. Phase vs. Plugin vs. Goal [closed]
- What is under in pom.xml for?
- Jersey fails when creating uber jar with maven-assembly-plugin
- Tomcat casting servlets to javax.servlet.Servlet instead of jakarta.servlet.http.HttpServlet
- How do I disable or enable Gradle / Maven auto-import for an IntelliJ IDEA project?
- Maven – exclude folder from build
- Add external library .jar to Spring boot .jar internal /lib
- How to override maven property in command line?
- mvn release:prepare not committing changes to pom.xml
- failsafe plugin won’t run on one project but will run on another — why?
- Maven compilation issue with Java 9
- How can I skip tests in maven install goal, while running them in maven test goal?
- Cannot use jacoco JVM args and surefire JVM args together in maven
- How to use BOM file with Maven?
- Getting “Skipping JaCoCo execution due to missing execution data file” upon executing JaCoCo
- How to resolve cyclic dependency in Maven?
- Cannot get maven project.version property in a Spring application with @Value
- What is the meaning of type “bundle” in a maven dependency?
- What is the difference in Maven between dependency and plugin tags in pom.xml?
- How to access maven.build.timestamp for resource filtering
- How to place the output jar into another folder with maven?
- Android Studio – Could not find intellij-core.jar
- Maven : error: generics are not supported in -source 1.3 , I am using 1.6
- Build executable JAR with JavaFX11 from maven
- Change source directory in profile maven
- Running Cucumber tests directly from executable jar