maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jigar Joshi <>
Subject dependency classifier based on profile
Date Tue, 19 Nov 2013 22:51:06 GMT
I have a project that has multiple dependencies for example a.*:*:* and

now in one build profile I am using assembly plugin to assemble a fat jar
for that profile I want to include all the dependencies with a.*:*:* with
classifier = foo and rest of them should be without classifier

one option is create a property in profile that holds the value of
classifier and change all the dependency tags (that is too much of dirty
work I have around 250 poms)

I tried configuring maven dependency plugin for that profile to add the
classifier=foo while resolving dependencies but it attempts to do it for
all the dependencies which is fail because b.*:*:* doesn't have that

Is there a way in maven dependency:resolve or maven:assembly plugin I can
optionally choose the dependency pattern and apply classifier to them


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message