Closed chenshun00 closed 5 years ago
due to other reason , i can't use jdk1.8 . so i have to choose 4.0.0.
how so? even the latest release (6.0.1) should be working w/ jdk 1.8.
my source code is gone . :(
probably caused by conflict between maven plugins.. how can i re-produce the issue?
@yue9944882 just a simple spring web app. compile by jdk1.7 . spring : 4.3.20.RELEASE
i have upload file to https://gitlab.com/chenshun00/war . Maybe it can help you。
@chenshun00 thanks, i fetched the source but didnt re-produce the issue in my local environment, the compiled classes always present regardless of whether commenting out the kubernetes sdk dependency or not.. am i missing anything?
@yue9944882 Maybe the problem with the jdk minor version . what your jdk minor version?
➜ test java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
➜ test
➜ test
➜ test git clone git@gitlab.com:chenshun00/war.git
正克隆到 'war'...
remote: Enumerating objects: 36, done.
remote: Counting objects: 100% (36/36), done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 36 (delta 3), reused 0 (delta 0)
接收对象中: 100% (36/36), 11.64 KiB | 2.91 MiB/s, 完成.
处理 delta 中: 100% (3/3), 完成.
➜ test cd war
➜ war git:(master) ls
pom.xml src war.iml
➜ war git:(master) mvn clean compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building war 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ war ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ war ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ war ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 4 source files to /Users/admin/test/war/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.219 s
[INFO] Finished at: 2019-09-16T17:57:00+08:00
[INFO] Final Memory: 25M/222M
[INFO] ------------------------------------------------------------------------
➜ war git:(master) ✗ ll target/classes
total 40
-rw-r--r-- 1 admin staff 809B 9 16 17:56 dubbo.xml
-rw-r--r-- 1 admin staff 706B 9 16 17:56 spring-bean.xml
-rw-r--r-- 1 admin staff 945B 9 16 17:56 spring-web-base.xml
-rw-r--r-- 1 admin staff 5.7K 9 16 17:56 spring-web-mvc.xml
➜ war git:(master) ✗
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
can you try if adding these properties will help?
thanks
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project war: Fatal error compiling: 无效的目标发行版: 1.8 -> [Help 1]
let me test other jdk minor version. :(
Upgrade to jdk1.8 to fix it. :)
due to other reason , i can't use jdk1.8 . so i have to choose 4.0.0.
when i run
mvn clean compile -Dmaven.test.skip=true
, my source code is gone . :(again, remove it from pom, my source code is back .