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. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> <mainClass>company.main.execute</mainClass> </manifest> </archive> </configuration> </plugin> but this doesn't allow me to distribute the file to other machine. I also tried maven assembly plugin. <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <filters> <filter>src/main/filters/build.properties</filter> </filters> <descriptors> <descriptor>src/main/assemble/descriptor.xml</descriptor> </descriptors> <workDirectory>target/assembly/work</workDirectory> <archive> <manifest> <mainClass>company.main.execute</mainClass> </manifest> </archive> </configuration> </plugin> my descriptor.xml <?xml version="1.0" encoding="UTF-8"?> <assembly> <id>jar-with-dependencies</id> <formats> <format>jar</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <dependencySets> <dependencySet> <outputDirectory>lib</outputDirectory> <unpack>true</unpack> <scope>runtime</scope> </dependencySet> </dependencySets> <fileSets> <fileSet> <directory>target/classes</directory> <outputDirectory></outputDirectory> </fileSet> </fileSets> </assembly> 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]