Hi Ignite Developers,
Maven profile was modified to provide an opportunity to build a project locally using java11 (you can't use results of such local build for java 8). The profile is named 'java-9+'. If it is not enabled by default you will probably need to enable it manually. The ignite-tools problem under java-11 was fixed by providing two versions of this class for Java 8 & java 9+. These files are placed with different source roots. During switching between java versions you may need to re-import maven project. If you use IntelliJ than sometimes you will need to manually remove not needed source root from .iml file. See also "modules/tools/ignite-tools.iml" <sourceFolder url="file://$MODULE_DIR$/src/main/java11" isTestSource="false" /> Sincerely, Dmitriy Pavlov BTW, Teamcity bot is up and running using Ignite 2.7 & java 11 so limited number of functionality is working well: (Apache Ignite Teamcity Bot, V20190218, Powered by Apache Ignite V2.7.0, Java Version: 11.0.1) |
Hello!
That's awesome! Is this profile auto-detected when running under Java 9+? Is there a way to do that? Regards, -- Ilya Kasnacheev пн, 25 февр. 2019 г. в 18:43, Dmitriy Pavlov <[hidden email]>: > Hi Ignite Developers, > > Maven profile was modified to provide an opportunity to build a project > locally using java11 (you can't use results of such local build for java > 8). > > The profile is named 'java-9+'. If it is not enabled by default you will > probably need to enable it manually. > > The ignite-tools problem under java-11 was fixed by providing two versions > of this class for Java 8 & java 9+. These files are placed with different > source roots. During switching between java versions you may need to > re-import maven project. If you use IntelliJ than sometimes you will need > to manually remove not needed source root from .iml file. > > See also "modules/tools/ignite-tools.iml" > > <sourceFolder url="file://$MODULE_DIR$/src/main/java11" > isTestSource="false" /> > > Sincerely, > > Dmitriy Pavlov > > BTW, Teamcity bot is up and running using Ignite 2.7 & java 11 so > limited number of functionality is working well: (Apache Ignite > Teamcity Bot, V20190218, Powered by Apache Ignite V2.7.0, Java > Version: 11.0.1) > |
It should be automatically detected. Profile activation uses JVM version.
But during import into IDE it may have issues. I enabled it manually in intellij. вт, 26 февр. 2019 г., 12:17 Ilya Kasnacheev <[hidden email]>: > Hello! > > That's awesome! Is this profile auto-detected when running under Java 9+? > Is there a way to do that? > > Regards, > -- > Ilya Kasnacheev > > > пн, 25 февр. 2019 г. в 18:43, Dmitriy Pavlov <[hidden email]>: > > > Hi Ignite Developers, > > > > Maven profile was modified to provide an opportunity to build a project > > locally using java11 (you can't use results of such local build for java > > 8). > > > > The profile is named 'java-9+'. If it is not enabled by default you will > > probably need to enable it manually. > > > > The ignite-tools problem under java-11 was fixed by providing two > versions > > of this class for Java 8 & java 9+. These files are placed with different > > source roots. During switching between java versions you may need to > > re-import maven project. If you use IntelliJ than sometimes you will need > > to manually remove not needed source root from .iml file. > > > > See also "modules/tools/ignite-tools.iml" > > > > <sourceFolder url="file://$MODULE_DIR$/src/main/java11" > > isTestSource="false" /> > > > > Sincerely, > > > > Dmitriy Pavlov > > > > BTW, Teamcity bot is up and running using Ignite 2.7 & java 11 so > > limited number of functionality is working well: (Apache Ignite > > Teamcity Bot, V20190218, Powered by Apache Ignite V2.7.0, Java > > Version: 11.0.1) > > > |
Free forum by Nabble | Edit this page |