Skip to main content

Tag: Maven

Jigsaw and Maven: Take 2, a Maven plugin

Last updated: 2012-11-01

This post will create a Maven plugin for Jigsaw. This plugin is based on HK2 Maven plugin.
The post includes all the code needed to build the plugin.
(the resulting source code, except for changes in Jigsaw’s source, is available at: https://svn.kenai.com/svn/lh-playground~svn/jigsaw )

Setting up the environment:

  1. Build Jigsaw

  2. Get Subversion

sudo apt-get install subversion

  1. Get Maven

sudo apt-get install maven2

  1. Set JAVA_HOME

export JAVA_HOME=’/usr/lib/jvm/java-7-openjdk-i386'

Custom Plexus Javac Component:

Jigsaw: Worldclock with the Maven plugin

Last updated: 2012-02-02

In the previous post I created a Maven plugin for Jigsaw, now I’ll adapt Worldclock to use it.

The transformed source code is also available at:

https://svn.java.net/svn/worldclock-application~svn/tags/application6-jigsaw-maven 

  1. Create the directory

mkdir -p ~/dev/worldclock

2. Get the source

cd ~/dev/worldclock
svn checkout https://svn.java.net/svn/worldclock-application~svn/tags/application6-jigsaw ~/dev/worldclock/application

  1. Cleanup

Remove the files that are not needed.

rm -rf ~/dev/worldclock/application/*.*
rm -rf ~/dev/worldclock/application/src/META-INF

  1. Code adjustment

The current combinaison of Jigsaw/JDK8/Ubuntu does not support the sytem tray properly, so adjust the Worldclock.java to bypass it