-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 5/2/10 19:02 , Marc Dugger wrote:
> Fabrizio,
>
> Can you share how you configured the Shade plugin in your pom.xml?
> Jersey relies on javax.* interfaces. Thanks in advance.
>
>
> On Sat, May 1, 2010 at 2:57 AM, Fabrizio Giudici
> <
fabrizio...@tidalwave.it
Yep, the project is open sourced. Clonable with Mercurial (or browsable
online) at
https://kenai.com/hg/bluebill-mobile~android-src - look at
the module modules/LookupForAndroid.
I'm including here the pom of that module. It's doing two things:
+ relocating all references to javax.swing.* to
it.tidalwave.javax.swing.* where I copy-pasted the single javax.swing
class that I need (at the moment).
+ excluding the class org.netbeans.modules.openide.util.ActiveQueue
from the original artifact (org-openide-util), relocating all the
references to it.tidalwave.netbeans.modules.openide.util.ActiveQueue
where I put a patched version.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="
http://maven.apache.org/POM/4.0.0"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>it.tidalwave.thesefoolishthings</groupId>
<artifactId>superpom</artifactId>
<version>1.0.7</version>
</parent>
<groupId>
it.tidalwave.bluebill.android</groupId>
<artifactId>it-tidalwave-android-org-openide-util</artifactId>
<version>RELEASE68</version>
<packaging>jar</packaging>
<name>Lookup for Android</name>
<dependencies>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-openide-util</artifactId>
<version>RELEASE68</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.3.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<artifact>org.netbeans.api:org-openide-util</artifact>
<excludes>
<exclude>org/netbeans/modules/openide/util/ActiveQueue.class</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>javax.swing</pattern>
<shadedPattern>it.tidalwave.javax.swing</shadedPattern>
</relocation>
<relocation>
<pattern>org.netbeans.modules.openide.util.ActiveQueue</pattern>
<shadedPattern>it.tidalwave.netbeans.modules.openide.util.ActiveQueue</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
iEYEARECAAYFAkvdv+kACgkQeDweFqgUGxewggCgq/XM8p650MIGykiupNAjTab7
L4cAoLOGlP8KEA5BSYJoIqdNTu6yBcmp
=P2+1
-----END PGP SIGNATURE-----