I have a similar question to: this previous question
I am converting a Java project using Netbeans to Maven. In order to launch the program, one of the command-line
Simply define a property for the eclipse link version and use the property in your and the exec plugin:
2.4.0 org.eclipse.persistence eclipselink ${eclipselink.version} ... org.codehaus.mojo exec-maven-plugin java -Xmx1000m -javaagent:lib/eclipselink-${eclipselink.version}.jar -classpath my.App