Hi,
yes you can use maven properties. This should do what you want:
<dependency>
<groupId>connector</groupId>
<artifactId>connector</artifactId>
<version>1_0</version>
<scope>system</scope>
<systemPath>${basedir}/../ma-jdm-tck/lib/connector_1_0.jar</systemPath>
</dependency>
But please don't do it! If you use a continuus integration tool like continuum or hudson they will try to build your modules individually. This will not work if you have this kind of dependencies
between your modules. So if where you I would really go for an inhouse repository (It's only a webserver like apache after all). You can then deploy your 3rd party jars once to this repository with
'mvn deploy:deploy-file'. In my opinion a much nicer solution :-)
Cheers, michael
Tawfik, Sameh E schrieb:
Hi,
I'm using the following code:
<dependency>
<groupId>connector</groupId>
<artifactId>connector</artifactId>
<version>1_0</version>
<scope>system</scope>
<systemPath>${Build_base}/ma-jdm-tck/lib/connector_1_0.jar</systemPath>
</dependency>
This code is working fine, but it requires everyone to define the
"Build_base" system variable, so is there is another way, where I can
reference the folder where this jar is located without using a system
variable?
For example, can I use something like ${project.build.directory}?
I've a parent folder "Project" where all the build modules are under it
as sub projects, so it would be nice to be able to reference the parent
folder, and then point to any needed third party jar file in any one of
the subfolders.
I know I can also use mvn install:install-file -DgroupId=connector
-DartifactId=connector -Dversion=1_0 -Dpackaging=jar
-Dfile=/path/to/file
But, it would be nice to just reference specific files by pointing at
them using their path, so does Maven support this feature?
Thanks,
Sameh
This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]