mirror of https://github.com/apache/jclouds.git
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:
parent
6bd1663f3d
commit
3ba7c276a7
|
@ -24,26 +24,26 @@
|
||||||
====================================================================
|
====================================================================
|
||||||
-->
|
-->
|
||||||
<assembly>
|
<assembly>
|
||||||
<id>dependencies</id>
|
<id>dependencies</id>
|
||||||
<formats>
|
<formats>
|
||||||
<format>dir</format>
|
<format>dir</format>
|
||||||
</formats>
|
</formats>
|
||||||
<includeBaseDirectory>false</includeBaseDirectory>
|
<includeBaseDirectory>false</includeBaseDirectory>
|
||||||
<dependencySets>
|
<dependencySets>
|
||||||
<dependencySet>
|
<dependencySet>
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
<useProjectArtifact>false</useProjectArtifact>
|
<useProjectArtifact>false</useProjectArtifact>
|
||||||
<!-- exclude all the dependencies that are included in jar-with-dependencies and
|
<!-- exclude all the dependencies that are included in jar-with-dependencies and
|
||||||
JarJar-ed -->
|
JarJar-ed. See jar-with-dependencies-descriptor.xml. -->
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>javax.annotation:jsr250-api</exclude>
|
<exclude>javax.annotation:jsr250-api</exclude>
|
||||||
<exclude>javax.inject:inject</exclude>
|
<exclude>javax.inject:inject</exclude>
|
||||||
<exclude>org.jboss.resteasy:jaxrs-api</exclude>
|
<exclude>org.jboss.resteasy:jaxrs-api</exclude>
|
||||||
<exclude>com.google.code.findbugs:jsr305</exclude>
|
<exclude>com.google.code.findbugs:jsr305</exclude>
|
||||||
<exclude>com.google.common:google-guava</exclude>
|
<exclude>com.google.common:google-guava</exclude>
|
||||||
<exclude>com.google.collections:google-collections</exclude>
|
<exclude>com.google.collections:google-collections</exclude>
|
||||||
<exclude>com.google.code.guice:guice</exclude>
|
<exclude>com.google.code.guice:guice</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</dependencySet>
|
</dependencySet>
|
||||||
</dependencySets>
|
</dependencySets>
|
||||||
</assembly>
|
</assembly>
|
||||||
|
|
|
@ -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>
|
|
@ -113,10 +113,10 @@
|
||||||
<goal>single</goal>
|
<goal>single</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<descriptorRefs>
|
|
||||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
|
||||||
</descriptorRefs>
|
|
||||||
<descriptors>
|
<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>
|
<descriptor>dependencies-descriptor.xml</descriptor>
|
||||||
</descriptors>
|
</descriptors>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
Loading…
Reference in New Issue