jhsuwm / onejar-maven-plugin

Automatically exported from code.google.com/p/onejar-maven-plugin
0 stars 0 forks source link

Make OneJarMojo.mainJarFilename writeable #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try running the plugin against a project with WAR packaging.

What is the expected output? What do you see instead?
The plugin will work fine is this mainJarFilename property can be configured. 
Now it throws a java.io.FileNotFoundException because it only searches for a 
JAR file or a configuration error if you try to provide the name it should look 
for.

What version of onejar-maven-plugin are you using?
1.4.1

What is the output of "mvn -version" on your machine?
Apache Maven 2.2.1 (r801777; 2009-08-06 22:16:01+0300)

Please provide any additional information below.
Thanks in advance!

Original issue reported on code.google.com by rostisla...@gmail.com on 5 Aug 2010 at 4:22

GoogleCodeExporter commented 9 years ago
I just realized that in the case with the WAR file the produced jar becomes 
twice bigger because the dependency jars are duplicated.

Do you have any plans to handle this case better or I should create a custom 
version of the plugin for my needs?

Original comment by rostisla...@gmail.com on 5 Aug 2010 at 4:31

GoogleCodeExporter commented 9 years ago
Hi,

I'm a little confused.. Is it a webapp project (war) or an executable Java 
application you are building?

If it's a webapp, do you include a web server in your code? Or would you like 
to make the webapp executable anyway?

If it's really a Java application (not a webapp), why do you use 
<packaging>war</packaging>?

Please enlighten me! :)

Thanks,
Hugo

Original comment by hugo.josefson.old@gmail.com on 6 Oct 2010 at 7:30