I am using maven to build a project which requires java 1.6. But the building process uses maven-install-pluging version 3.0.0-M1 which is not compatible with java 1.6. I have not configured maven-install-plugin version anywhere in the project. How do I say to use maven-install-pluging version 2.4. I use maven 3.2.2 version
Asked
Active
Viewed 263 times
0
-
Of course it requires JDK 7 cause it's stated in the release notes https://www.mail-archive.com/announce@maven.apache.org/msg00873.html – khmarbaise Nov 28 '18 at 07:27
1 Answers
1
You can set the plugin version by defining it in pluginManagement
section :
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</pluginManagement>
...
</build>

norbjd
- 10,166
- 4
- 45
- 80