I use maven profiles to switch between the two โsettingsโ in Intelli J. How can I switch the target bytecode level? That is: I want to change the following parameter in compiler.xml
<bytecodeTargetLevel> <module name="finmath-lib" target="1.6" /> </bytecodeTargetLevel>
Note. I tried to accomplish this through the next part in the corresponding Maven 3 profile.
<profile> <id>java-8</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build> </profile>
but it will not work!
Note: pom.xml etc. belong to the finmath lib project, and if you are interested, you can find it at www.finmath.net
source share