Added a tweaked "jar-with-dependencies" descriptor that includes only the dependencies that need to be JarJar-ed. See

http://code.google.com/p/jclouds/issues/detail?id=127

git-svn-id: http://jclouds.googlecode.com/svn/trunk@2466 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
sharedocs1@gmail.com 2009-12-18 08:49:41 +00:00
parent 6bd1663f3d
commit 3ba7c276a7
3 changed files with 80 additions and 25 deletions

View File

@ -34,7 +34,7 @@
<scope>runtime</scope>
<useProjectArtifact>false</useProjectArtifact>
<!-- exclude all the dependencies that are included in jar-with-dependencies and
JarJar-ed -->
JarJar-ed. See jar-with-dependencies-descriptor.xml. -->
<excludes>
<exclude>javax.annotation:jsr250-api</exclude>
<exclude>javax.inject:inject</exclude>

View File

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
$HeadURL$
$Revision$
$Date$
Copyright (C) 2009 Adrian Cole <adrian@jclouds.org>
====================================================================
Licensed to the Apache Software Foundation (ASF) under one or
more contributor license agreements. See the NOTICE file
distributed with this work for additional information regarding
copyright ownership. The ASF licenses this file to you under the
Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0.html Unless required
by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions
and limitations under the License.
====================================================================
-->
<assembly>
<id>jar-with-dependencies</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<unpack>true</unpack>
<scope>runtime</scope>
<!-- only those dependencies that need to be JarJar-ed. See
dependencies-descriptor.xml. -->
<includes>
<include>javax.annotation:jsr250-api</include>
<include>javax.inject:inject</include>
<include>org.jboss.resteasy:jaxrs-api</include>
<include>com.google.code.findbugs:jsr305</include>
<include>com.google.common:google-guava</include>
<include>com.google.collections:google-collections</include>
<include>com.google.code.guice:guice</include>
</includes>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>${project.build.outputDirectory}</directory>
<outputDirectory />
</fileSet>
</fileSets>
</assembly>

View File

@ -113,10 +113,10 @@
<goal>single</goal>
</goals>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<descriptors>
<!-- the first includes only those dependencies to be
JarJar-ed, the second the remainder -->
<descriptor>jar-with-dependencies-descriptor.xml</descriptor>
<descriptor>dependencies-descriptor.xml</descriptor>
</descriptors>
</configuration>