jQuery in Action, 3rd edition
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven Jar Settings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven Jar Settings" Watch "Maven Jar Settings" New topic

Maven Jar Settings

pamir sonmez
Ranch Hand

Joined: May 31, 2010
Posts: 47

In my web project, I am using struts2;


I also want to use new jars of spring, but struts brings 2.5.6 version of spring jar, in the pom.xml of struts2 it is defined as

so it has a property named struts2.springPlatformVersion, if I can change this parameter. I can use the version that I wanted.
I defined the property in my pom.xml file like;


But it did not work, still struts plugin is adding 2.5.6 version.

Is there a way can I change it?

Martijn Verburg

Joined: Jun 24, 2003
Posts: 3275

It's possibly not picking up the property early enough, have you tried passing the property on the command line with the -D option?

Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
I agree. Here's the link: http://aspose.com/file-tools
subject: Maven Jar Settings
It's not a secret anymore!