Thanks for the pointer to the snapshot repository J

 

A difference that I may have is that my project consists of multiple maven jar 
projects, where more than one of them depends on some of the others.

For example, a client and a connector that both depends upon a core, but not on 
each other. The webstart project names client and connector as dependencies and 
transitive deps ensures core gets added as well. Here is where my current 
problem is, and I am unsure how bundling in a war fixes this:

When I specify a classifier on the dependencies for client and connector, the 
transitive deps pulls in the non-obfuscated non-classifier version of core.

I have managed to resolve this by specifying all the dependencies by hand, 
including classifiers, with explicit exclusions on the transitive dependencies, 
but this seems to be totally not what should be done….

 

Okay, I will hack away at my pom now to get it up and running using 
1.0-alpha-2. 

 

Regards,

Henrik

 

From: Kevin Stembridge [mailto:[EMAIL PROTECTED] 
Sent: 18. oktober 2007 14:38

Hi Henrik, 
I'm pretty sure the snapshot is available in the codehaus snapshot repository. 
If so, you don't need to compile it yourself. Just add the following to your 
pom.xml. 

        <repository> 
            <id>Codehaus Snapshots</id> 
            <url>http://snapshots.repository.codehaus.org</url> 
            <snapshots> 
                <enabled>true</enabled> 
            </snapshots> 
            <releases> 
                <enabled>false</enabled> 
            </releases> 
        </repository> 

Since you have the source code though, it would be a good idea to generate the 
site because it contains instructions for the JnlpDownloadServletMojo that are 
not yet available on the internet site. 


So, for a bit more info on how I'm using webstart and proguard: 
I have the following projects: 
* client - A normal maven jar project. 
* webstart - A normal maven war project. 

There are also more projects that are transitive dependencies of the client 
project. 

The client project uses the proguard-maven-plugin to create a second, 
obfuscated jar with a classifier, and the build-helper-maven-plugin to attach 
the extra jar to the project and install it in my local repository. It sounds 
like this is what you're already doing. 

The war project uses the webstart plugin to add a jnlp bundle. I can switch 
from using an obfuscated jars to a non-obfuscated jar just by commenting a 
single line in the pom.xml, the <classifier>obf</classifier>. Or I could have 
done it using profiles. 



Hope this helps. Let me know if you need more info. 

Cheers, 
Kevin 

Reply via email to