xxxxxxxxxx
While making a build for your project in any cloud environment. Try to change image from linux/unix to window or window to other. Operating system and image should be the same to successfully build.
xxxxxxxxxx
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
</plugin>
</plugins>
xxxxxxxxxx
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
xxxxxxxxxx
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.4</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
xxxxxxxxxx
Error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile ..
Use the surefire plugin, compiler plugin:
As of today the latest version is:
(put it inside <build><plugins>)
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M6</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
</plugin>
xxxxxxxxxx
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
xxxxxxxxxx
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>fully qualified Main Class name</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
xxxxxxxxxx
set JAVA_HOME=<ABSOLUTE_PATH_TO_JDK>
xxxxxxxxxx
function errorLogging(queries) {
Object.keys(queries).forEach(function (key) {
if (!queries[key].length > 0) {
console.error('The selector \"' + key + '\" is not functioning as intended, ' +
'is loading too early, ' +
'or the markup has been adjusted to render the query useless');
}
});
};