maven jgoodies intellij NullPointerException

Jgoodies is a good and quick tool for build Swing application.

I have no problem using it and running it inside Intellij.

Also if I use Intellij’s build in way to build the Jar, no problem.

However when I was trying to use maven to build this executable jar, problem comes.

it looks like the application isnt aware of the *.form files containing information about the gui. All I get is a NullPointerException at the beginning of the GUI component line.

Search across the web, not many threads are talking about this.

Finally find this plugin and solve the problem: http://mojo.codehaus.org/ideauidesigner-maven-plugin/

add this to the pom:

         <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>ideauidesigner-maven-plugin</artifactId>
            <executions>
               <execution>
                  <goals>
                     <goal>javac2</goal>
                  </goals>
               </execution>
            </executions>
            <configuration>
               <fork>true</fork>
               <debug>true</debug>
               <failOnError>true</failOnError>
            </configuration>
         </plugin>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s