Pages
Mikael Ståldal
Software projects
Categories
Archives
- November 2022
- July 2019
- June 2016
- February 2016
- August 2015
- July 2015
- June 2015
- May 2015
- December 2014
- October 2014
- June 2014
- March 2014
- December 2013
- October 2013
- August 2013
- January 2013
- August 2012
- July 2012
- January 2012
- December 2011
- November 2011
- October 2011
- July 2011
- May 2011
- April 2011
- November 2010
- August 2010
- June 2010
- April 2010
- November 2009
- September 2009
- August 2009
- July 2009
- April 2009
- January 2009
- December 2008
- July 2008
- October 2007
- May 2007
- March 2007
- September 2006
- May 2006
Monthly Archives: October 2014
Create a self-contained .jar file with Maven
If you want to create a self-contained .jar file, with all library dependencies included, you can do it with Maven. Include this in your pom.xml: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.4</version> <configuration> <archive> <manifest> <mainClass>com.yourcompany.youapp.Main</mainClass> </manifest> </archive> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> … Continue reading
Posted in Java
Comments Off on Create a self-contained .jar file with Maven
Running Jetty as a service in Ubuntu Linix
Jetty is a popular open source Java application server. In order to run it as a service on a Linux server, they recommend using a horribly overcomplicated and quite fragile script. In Ubuntu server, there is a better way. Leverage … Continue reading