kamranzafar / JCL

Jar Class Loader, a configurable and dynamic custom classloader designed to create, manage and manipulate isolated Java classloaders in IoC frameworks and web applications.
http://kamranzafar.github.com/
579 stars 161 forks source link

Fix travis configuration and pom.xml #62

Open elbakramer opened 6 years ago

elbakramer commented 6 years ago

This addresses issue that oraclejdk7 is no longer available in travis CI.

$ mvn clean install -DskipTest=true
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE

Below is an issue related to the problem. https://github.com/travis-ci/travis-ci/issues/7964

In addition to that, removed following warnings during build process by modifying pom.xml files and some source codes.

[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.xeustechnologies:test-jcl:jar:2.9-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 83, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. @ org.xeustechnologies:test-jcl:[unknown-version], /home/travis/build/ElbaKramer/JCL/JCL2/test-jcl/pom.xml, line 22, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 91, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 99, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ org.xeustechnologies:test-jcl:[unknown-version], /home/travis/build/ElbaKramer/JCL/JCL2/test-jcl/pom.xml, line 13, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.xeustechnologies:jcl-core:jar:2.9-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 83, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 91, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 99, column 21
[WARNING] The expression ${pom.version} is deprecated. Please use ${project.version} instead.
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.xeustechnologies:jcl-spring:jar:2.9-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 83, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 91, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 99, column 21
[WARNING] The expression ${pom.version} is deprecated. Please use ${project.version} instead.
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.xeustechnologies:jcltest:war:2.9-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 83, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. @ org.xeustechnologies:jcltest:[unknown-version], /home/travis/build/ElbaKramer/JCL/JCL2/test-web/pom.xml, line 40, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 91, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 99, column 21
[WARNING] The expression ${pom.version} is deprecated. Please use ${project.version} instead.
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.xeustechnologies:jcl-web:jar:2.9-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 83, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 91, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ org.xeustechnologies:jcl:2.9-SNAPSHOT, /home/travis/build/ElbaKramer/JCL/JCL2/pom.xml, line 99, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.xeustechnologies:jcl:pom:2.9-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ line 83, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 91, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 99, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] Compiling 8 source files to /home/travis/build/ElbaKramer/JCL/JCL2/core/target/test-classes
[WARNING] /home/travis/build/ElbaKramer/JCL/JCL2/core/src/test/java/org/xeustechnologies/jcl/LoadTest.java: /home/travis/build/ElbaKramer/JCL/JCL2/core/src/test/java/org/xeustechnologies/jcl/LoadTest.java uses or overrides a deprecated API.
[WARNING] /home/travis/build/ElbaKramer/JCL/JCL2/core/src/test/java/org/xeustechnologies/jcl/LoadTest.java: Recompile with -Xlint:deprecation for details.
[WARNING] /home/travis/build/ElbaKramer/JCL/JCL2/core/src/test/java/org/xeustechnologies/jcl/SpiTest.java: /home/travis/build/ElbaKramer/JCL/JCL2/core/src/test/java/org/xeustechnologies/jcl/SpiTest.java uses unchecked or unsafe operations.
[WARNING] /home/travis/build/ElbaKramer/JCL/JCL2/core/src/test/java/org/xeustechnologies/jcl/SpiTest.java: Recompile with -Xlint:unchecked for details.