In our project we use Eclipse launch configurations which are under version control to be shared with all developers. Now it is necessary to include an external archive to a
You could load that value from maven properties.
Maven stores repository path in maven.repo.local property.
Place ${maven.repo.local} into your configuration file.
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
...
<listEntry value="<?xml version="1.0" encoding="UTF-8"?><runtimeClasspathEntry externalArchive="${${maven.repo.local}}/com/google/gwt/gwt-dev/2.0.3/gwt-dev-2.0.3.jar" path="3" type="2"/>"/>
...
</listAttribute>
Then setup filtering in pom.xml for your configuration file so ${maven.repo.local} will be replaced with property value.
Edit your launch configuration. Go to the "classpath" tab. Focus on "User Entries". Click the "Advanced" button.
M2_REPO and click the "Extend" button. Select your JAR file.${env_var:your-environment-variable-name}/path-to-jar. For example, if your system environment variable is MYVAR and the JAR file is under subdir/myfile.jar, you should type ${env_var:MYVAR}/subdir/myfile.jar.