This page is no longer maintained — Please continue to the home page at www.scala-lang.org

[ANN] Maven plug-in to 'liberate' your jar from scala-library, scala-swing

6 replies
Rob Dickens
Joined: 2008-12-20,
User offline. Last seen 42 years 45 weeks ago.
Of particular interest to those using Scala to write Java Web Start applications or applets:

http://lafros.com/maven/plugins/proguard

--
Rob, Lafros.com
Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: [ANN] Maven plug-in to 'liberate' your jar from scala-libr
Neat tool!  Can I also use this to minify/obfuscate my jar files, or is it mostly focused on just liberating from dependency (for...say... applets)


Thanks!
-Josh

On Mon, Mar 23, 2009 at 6:32 AM, Rob Dickens <arctic.bob@googlemail.com> wrote:
Of particular interest to those using Scala to write Java Web Start applications or applets:

http://lafros.com/maven/plugins/proguard

--
Rob, Lafros.com

Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: [ANN] Maven plug-in to 'liberate' your jar from scala-libr
I think that one of Eclipse's export as jar commands also repackages all of your files together with library classes into one jar (although that may not include system containers like the Scala jars). IIRC there's export as jar as well as export as executable jar.

On Mon, Mar 23, 2009 at 8:51 AM, Josh Suereth <joshua.suereth@gmail.com> wrote:
Neat tool!  Can I also use this to minify/obfuscate my jar files, or is it mostly focused on just liberating from dependency (for...say... applets)


Thanks!
-Josh

On Mon, Mar 23, 2009 at 6:32 AM, Rob Dickens <arctic.bob@googlemail.com> wrote:
Of particular interest to those using Scala to write Java Web Start applications or applets:

http://lafros.com/maven/plugins/proguard

--
Rob, Lafros.com


Rob Dickens
Joined: 2008-12-20,
User offline. Last seen 42 years 45 weeks ago.
Re: [ANN] Maven plug-in to 'liberate' your jar from scala-libr
Josh, I'm afraid not. Although ProGuard can do these things, the plug-in doesn't (so far) make them available; it's only goal is indeed focused on extracting only those classes which you actually require, so that you only need to depend on say the scala-library jar at compile-time, so that this doesn't need to be downloaded with say your applet or Java Web Start application.

As the home page points out, there's an existing Maven ProGuard plug-in[1], that doesn't do the above, but ought to do the other things.

Hopefully I will be able to add further goals as my own need arises.

Cheers,

Rob

[1] http://pyx4me.com/pyx4me-maven-plugins/proguard-maven-plugin

2009/3/23 Josh Suereth <joshua.suereth@gmail.com>
Neat tool!  Can I also use this to minify/obfuscate my jar files, or is it mostly focused on just liberating from dependency (for...say... applets)


Thanks!
-Josh

On Mon, Mar 23, 2009 at 6:32 AM, Rob Dickens <arctic.bob@googlemail.com> wrote:
Of particular interest to those using Scala to write Java Web Start applications or applets:

http://lafros.com/maven/plugins/proguard

--
Rob, Lafros.com


Rob Dickens
Joined: 2008-12-20,
User offline. Last seen 42 years 45 weeks ago.
Re: [ANN] Maven plug-in to 'liberate' your jar from scala-libr
A new version (1.1) is now available.

This removes the rather severe limitation (of 1.0) that, after creating the liberated jar (by doing a mvn package), you had to do a mvn clean before any subsequent mvn test or mvn package.

In return, you have to override one of jar:jar's parameters, which is all explained in the documentation:

http://lafros.com/maven/plugins/proguard

2009/3/23 Rob Dickens <arctic.bob@googlemail.com>
Josh, I'm afraid not. Although ProGuard can do these things, the plug-in doesn't (so far) make them available; it's only goal is indeed focused on extracting only those classes which you actually require, so that you only need to depend on say the scala-library jar at compile-time, so that this doesn't need to be downloaded with say your applet or Java Web Start application.

As the home page points out, there's an existing Maven ProGuard plug-in[1], that doesn't do the above, but ought to do the other things.

Hopefully I will be able to add further goals as my own need arises.

Cheers,

Rob

[1] http://pyx4me.com/pyx4me-maven-plugins/proguard-maven-plugin

2009/3/23 Josh Suereth <joshua.suereth@gmail.com>
Neat tool!  Can I also use this to minify/obfuscate my jar files, or is it mostly focused on just liberating from dependency (for...say... applets)


Thanks!
-Josh

On Mon, Mar 23, 2009 at 6:32 AM, Rob Dickens <arctic.bob@googlemail.com> wrote:
Of particular interest to those using Scala to write Java Web Start applications or applets:

http://lafros.com/maven/plugins/proguard

--
Rob, Lafros.com





--
Rob, Lafros.com
Rob Dickens
Joined: 2008-12-20,
User offline. Last seen 42 years 45 weeks ago.
Re: [ANN] Maven plug-in to 'liberate' your jar from scala-libr
Oops - had forgotten to mention that you need set <plugin><extensions> to true; instructions now updated.

Apologies for any frustration caused!

Rob

2009/3/24 Rob Dickens <arctic.bob@googlemail.com>
A new version (1.1) is now available.

This removes the rather severe limitation (of 1.0) that, after creating the liberated jar (by doing a mvn package), you had to do a mvn clean before any subsequent mvn test or mvn package.

In return, you have to override one of jar:jar's parameters, which is all explained in the documentation:

http://lafros.com/maven/plugins/proguard

2009/3/23 Rob Dickens <arctic.bob@googlemail.com>
Josh, I'm afraid not. Although ProGuard can do these things, the plug-in doesn't (so far) make them available; it's only goal is indeed focused on extracting only those classes which you actually require, so that you only need to depend on say the scala-library jar at compile-time, so that this doesn't need to be downloaded with say your applet or Java Web Start application.

As the home page points out, there's an existing Maven ProGuard plug-in[1], that doesn't do the above, but ought to do the other things.

Hopefully I will be able to add further goals as my own need arises.

Cheers,

Rob

[1] http://pyx4me.com/pyx4me-maven-plugins/proguard-maven-plugin

2009/3/23 Josh Suereth <joshua.suereth@gmail.com>
Neat tool!  Can I also use this to minify/obfuscate my jar files, or is it mostly focused on just liberating from dependency (for...say... applets)


Thanks!
-Josh

On Mon, Mar 23, 2009 at 6:32 AM, Rob Dickens <arctic.bob@googlemail.com> wrote:
Of particular interest to those using Scala to write Java Web Start applications or applets:

http://lafros.com/maven/plugins/proguard

--
Rob, Lafros.com





--
Rob, Lafros.com

Rob Dickens
Joined: 2008-12-20,
User offline. Last seen 42 years 45 weeks ago.
Re: [ANN] Maven plug-in to 'liberate' your jar from scala-libr
Yet another new version (1.1-m2.1) is now available.

This is (as you might imagine) for use with the just-released Maven 2.1, and takes advantage of its prepare-package phase.

Please check out the updated website, which now has separate instructions for users of Maven 2.0 and 2.1:

http://lafros.com/maven/plugins/proguard

Rob

2009/3/24 Rob Dickens <arctic.bob@googlemail.com>
A new version (1.1) is now available.

This removes the rather severe limitation (of 1.0) that, after creating the liberated jar (by doing a mvn package), you had to do a mvn clean before any subsequent mvn test or mvn package.

In return, you have to override one of jar:jar's parameters, which is all explained in the documentation:

http://lafros.com/maven/plugins/proguard

2009/3/23 Rob Dickens <arctic.bob@googlemail.com>
Josh, I'm afraid not. Although ProGuard can do these things, the plug-in doesn't (so far) make them available; it's only goal is indeed focused on extracting only those classes which you actually require, so that you only need to depend on say the scala-library jar at compile-time, so that this doesn't need to be downloaded with say your applet or Java Web Start application.

As the home page points out, there's an existing Maven ProGuard plug-in[1], that doesn't do the above, but ought to do the other things.

Hopefully I will be able to add further goals as my own need arises.

Cheers,

Rob

[1] http://pyx4me.com/pyx4me-maven-plugins/proguard-maven-plugin

2009/3/23 Josh Suereth <joshua.suereth@gmail.com>
Neat tool!  Can I also use this to minify/obfuscate my jar files, or is it mostly focused on just liberating from dependency (for...say... applets)


Thanks!
-Josh

On Mon, Mar 23, 2009 at 6:32 AM, Rob Dickens <arctic.bob@googlemail.com> wrote:
Of particular interest to those using Scala to write Java Web Start applications or applets:

http://lafros.com/maven/plugins/proguard

--
Rob, Lafros.com





--
Rob, Lafros.com

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland