wood burning stoves 2.0*
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven Jar Settings" Watch "Maven Jar Settings" New topic
Author

Maven Jar Settings

pamir sonmez
Ranch Hand

Joined: May 31, 2010
Posts: 47
Hi,

In my web project, I am using struts2;

<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.2.1</version>

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
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${struts2.springPlatformVersion}</version>
</dependency>

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;

<properties>
<struts2.springPlatformVersion>3.0.4.RELEASE</struts2.springPlatformVersion>
</properties>

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

Is there a way can I change it?


Thanks
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

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.
 
 
subject: Maven Jar Settings