This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

M2Eclipse force latest plugins/dependencies

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I created a a new simple project using the "maven-archetype-webapp" version = RELEASE (It didn't show the version number but just said "RELEASE").

What I noticed is that though I have only Java SE 8 JDK and JRE, still, the default source and target versions for this archetype was "1.5" as shown in the "JRE System Library".
I then also noticed that in the Effective POM, the version for maven-compiler-plugin was 2.5.1, while the latest release version of 3.2 is available on mvnrepository. Similarly, POM has the junit version of 3.8.1 while 4.12 release version is available.

I was able to edit the POM and upgraded versions for these plugins and then I was able to compile it for source/target of Java 8. Great!

However, every new project that I create using "maven-archetype-webapp" archetype still chooses older versions. Is there a way to tell M2E to always include the most up-to-date release versions for the plug-ins and the external jars?

I tried using the <updatePolicy>always</updatePolicy> for <releases> but it didn't upgrade the plugins to the latest versions?

I checked the M2E version in the Help/About/Installation Details. It is 1.5, which is the latest version on M2E website too.

Totally, blocked! Any suggestions please?

Thanks

 
author & internet detective
Posts: 41073
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Manish.
Can you choose a different archetype? The one described here uses Java EE 7. It certainly doesn't compile with Java 5!
 
I'm full of tinier men! And a tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic