Maven – exclude folder from build
Instead try: <exclude>scripts/**</exclude> The exclude is based on directory, so your construction would exclude src/main/resources/src/main/resources/scripts
Instead try: <exclude>scripts/**</exclude> The exclude is based on directory, so your construction would exclude src/main/resources/src/main/resources/scripts
What kind of ‘web’ module are you talking about? Is it a simple war and has packaging type war? If you are not using Google’s web toolkit (GWT) then you don’t need to provide any gwt.extraJvmArgs Forking the compile process might be not the best idea, because it starts a second process which ignores MAVEN_OPTS … Read more
In your pom.xml file, simply remove the tag <release>8</release> from your maven-compiler-plugin configuration: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.7.0</version> <configuration> <source>1.8</source> <target>1.8</target> <verbose>true</verbose> </configuration> </plugin>
The error occurred because the code is not for the default compiler used there. Paste this code in effective POM before the root element ends, after declaring dependencies, to change the compiler used. Adjust version as you need. <dependencies> … </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build>
Deleting full .m2/repository local repository solved my problem. Or else you need to know what plugins are you using exactly with their dependencies as one of the plugin suffered a problem while downloading.
How to specify the JDK version? Use any of three ways: (1) Spring Boot feature, or use Maven compiler plugin with either (2) source & target or (3) with release. Spring Boot <java.version> is not referenced in the Maven documentation. It is a Spring Boot specificity. It allows to set the source and the target … Read more