Hello I'm finally getting back to looking at my light weight dhis version. I'm taking the hard road and struggling with maven, which is proving fruitful, if a little slow. Quick question to the experts. How do I tell maven in my pom.xml file to pack the dependencies (jars) into the target jar. Currently my pom.xml looks like the below. Any suggestions appreciated.
Thanks Bob <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <groupId>org.hisp.dhis</groupId> <artifactId>dhis2-lite</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>dhis2-lite</name> <url>http://maven.apache.org</url> <build> <defaultGoal>install</defaultGoal> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.0</version> <extensions>false</extensions> <inherited>true</inherited> <configuration> <classifier></classifier> <archive> <manifest> <addClasspath>true</addClasspath> <mainClass>org.hisp.dhis.TrayApp</mainClass> </manifest> </archive> </configuration> <executions></executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>jetty</groupId> <artifactId>jetty</artifactId> <version>6.0.2</version> </dependency> <dependency> <groupId>jetty</groupId> <artifactId>jetty-util</artifactId> <version>6.0.2</version> </dependency> <dependency> <groupId>jetty</groupId> <artifactId>servlet-api</artifactId> <version>2.5-6.0.2</version> </dependency> </dependencies> </project> _______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

