Env:
Eclipse (mars)
JDK 8
Wildfly 8.2.0 Final
Issue: Everytime i create a maven project
- it uses JDK 5 (war and jar)
- complains that web.xml is missing (in case of war).
So, everytime i have to
- Open the pom.xml and include the plugin configuration in pom.xml
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
- Change eclipse project compiler settings to use 1.8
- Change JRE to use 1.8
- Manually update maven project settings
This is a real frustrating thing to do. Tried to
- find a solution in stackoverflow and google. Somewhat closer solution is here. It works but is not enough for me.
- find any settings in eclipse but to no avail
- find any xml file settings in eclipse m2e plugins but got nowhere
Would be very greatful if someone
- point me if i am missing some settings
- can offer any solution to this pestering issue.
Please note that i am able to resolve the issues (eclipse errors and m2e errors) but looking for a smarter solution to avoid menial work every time!
Thanks in advance, Rakesh