Hi,

I'm quite new to Maven, so I'm happy with all suggestions.

So, I have an assembly project which creates an assembly of dependencies. It
works fine, but I still miss one piece. I need to get the version of one
particular dependency and use it while filtering some files. 

I mean, let's say that in the dependencies there's a module A with version
2. I want to filter some files so that parts of them get replaced with "2".
For instance, if the original file has the string "My version is
${version}", it should become "My version is 2".

How would I do this in Maven?

I thought of AntRun plugin. Can I access the version of some dependency from
Ant? Is there some other solution? Do I need to write a plugin?

Thanks,

Juha
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Accessing-the-version-of-a-dependency-tp3327490p3327490.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to