Hello, something like the following works for me everytime. The only drawback
is long compile times on slow machines. HTH, David
**
maven-assembly-plugin
test.Test
test
true
development
${pom.url}
src/main/java/test/MANIFEST.MF
jar-with-dependencies
test.Test
test
true
src/main/java/test/MANIFEST.MF
**
Run this at your POM.XML command-line directory:
mvn clean install assembly:assembly
cablepuff wrote ..
>
> Hi i have a runnable jar files that depends on hibernate and spring (latest
> version of their jar file respectively).
>
> I tried maven-jar-plugin.
>
>
> org.apache.maven.plugins
> maven-jar-plugin
>
>
>
> true
> company.main.execute
>
>
>
>
>
> but this doesn't allow me to distribute the file to other machine.
>
> I also tried maven assembly plugin.
>
>
> maven-assembly-plugin
>
>
>
> src/main/filters/build.properties
>
>
>
> src/main/assemble/descriptor.xml
>
> target/assembly/work
>
>
> company.main.execute
>
>
>
>
>
> my descriptor.xml
>
>
> jar-with-dependencies
>
> jar
>
> false
>
>
> lib
> true
> runtime
>
>
>
>
> target/classes
>
>
>
>
>
> however i get this error
> about namespace www.springframework.org/schema/tx cannot be found.
>
> Is their a better way to create deployable jar files that runs on different
> machine.
>
> --
> View this message in context:
> http://www.nabble.com/creating-runnable-jar-file-tp19289532p19289532.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
Yet some, not wise, go to the other side of the globe, to barbarous and
unhealthy regions, and devote ten or twenty years, in that they may live,-that
is, keep comfortably warm,- and die in New England at last.
Henry David Thoreau - Walden - 1845
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]