maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Veit Guna <veit.g...@gmx.de>
Subject Re: Maven copy-dependencies and excluding transitively
Date Fri, 18 Jan 2013 20:50:32 GMT
Exactly. I'll try "provided" on monday.
Thanks for your help!

Am 18.01.2013 21:46, schrieb Ron Wheeler:
> On 18/01/2013 2:58 PM, Veit Guna wrote:
>> I have a server and plugin project. The server artifacts are deployed to
>> a jboss server. The plugin depends on some server plugin-api artifacts
>> and is optional.
>> Now I want the user to be able to deploy only the plugin with its
>> defined deps without the server plugin-api artifacts - since they are
>> already deployed.
>>
>> So the plan is to take ALL plugin deps minus the server artifacts
>> (transitively!). Hm, as I'm writing this, maybe the right way is to mark
>> the server artifacts
>> as provided :)...
>
> Sounds like what "provided" is supposed to do.
> Means that you need them to compile and build but you don't want Maven
> to put them in the artifact(plug-in) since they are already going to
> be there when the artifact is ready to run.
>
>>
>>
>> Am 18.01.2013 20:38, schrieb Ron Wheeler:
>>> What are you trying to accomplish? Why?
>>>
>>> That might get you a solution that is a bit different from what you
>>> expect.
>>>
>>> Ron
>>>
>>> On 18/01/2013 10:07 AM, Veit Guna wrote:
>>>> Not really, no :).
>>>>
>>>> If I read the article correctly, it describes how to merge n jar's
>>>> into one. I just need to copy them to a specific location.
>>>>
>>>> -------- Original-Nachricht --------
>>>>> Datum: Fri, 18 Jan 2013 08:50:36 -0500
>>>>> Von: Ron Wheeler <rwheeler@artifact-software.com>
>>>>> An: users@maven.apache.org
>>>>> Betreff: Re: Maven copy-dependencies and excluding transitively
>>>>> http://blog.artifact-software.com/tech/?p=121
>>>>> Is that what you  are trying to do?
>>>>>
>>>>> Ron
>>>>>
>>>>> On 18/01/2013 8:15 AM, Veit Guna wrote:
>>>>>> Hi.
>>>>>>
>>>>>> I'm using the Maven Dependency Plugin with the goal
>>>>>> copy-dependencies. I
>>>>> would like to do the following:
>>>>>> - Copy all transitive dependencies with the scope "runtime" to the
>>>>> target dir
>>>>>> - exclude specific group ids *including their* transitive
>>>>>> dependencies
>>>>> from that list
>>>>>> I tried:
>>>>>>
>>>>>> <plugin>
>>>>>>      <groupId>org.apache.maven.plugins</groupId>
>>>>>>      <artifactId>maven-dependency-plugin</artifactId>
>>>>>>      <version>2.6</version>
>>>>>>      <executions>
>>>>>>          <execution>
>>>>>>              <id>copy-dependencies</id>
>>>>>>              <phase>package</phase>
>>>>>>              <goals>
>>>>>>                  <goal>copy-dependencies</goal>
>>>>>>              </goals>
>>>>>>              <configuration>
>>>>>>                  <includeScope>runtime</includeScope>
>>>>>>                  <excludeGroupIds>A,B</excludeGroupIds>
>>>>>>              </configuration>
>>>>>>          </execution>
>>>>>>      </executions>
>>>>>> </plugin>
>>>>>>
>>>>>> But that leaves all transient dependecies of A and B in the target
>>>>>> dir.
>>>>> I also tried
>>>>>> <excludeTransitive>true</excludeTransitive>
>>>>>>
>>>>>> But that excludes *all* transitive deps - not only for A and B. That
>>>>> leaves only "direct" deps in the target dir.
>>>>>> Is there any way to achieve what I want *without* specifying each
>>>>> transitive dependency (and theirs) manually via <excludeGroupIds>?
>>>>>> Thanks.
>>>>>>
>>>>>>
>>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>


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


Mime
View raw message