Hi,

I when running the plugin I get the following NPE:

-------------------
[INFO] Building serverlog-client-signed
[INFO]    task-segment: [package]
[INFO] 
----------------------------------------------------------------------------
[INFO] Skipping missing optional mojo: org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[INFO] [webstart:jnlp {execution: default}]
[WARNING] Something failed while checking if the main class contains the main() method. This is probably due to the limited classpath we have pro vided to the class loader. The specified main class (serverlog.client.Boot) found in the jar is *assumed* to contain a main method... org/jdeskto
p/swingx/auth/LoginService
[debug] jarsigner 
executable=[C:\Programme\Java\jdk1.5.0_06\jre\..\bin\jarsigner.exe]
[INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
----------------------------------------------------------------------------
[INFO] Failure to run the plugin:

[INFO] 
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failure to run the 
plugin:
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failure to run the 
plugin:
        at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:479)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
        ... 16 more
Caused by: java.lang.NullPointerException
        at org.apache.maven.plugin.jar.JarSignMojo.signJar(JarSignMojo.java:217)
        at org.apache.maven.plugin.jar.JarSignMojo.execute(JarSignMojo.java:175)
        at org.codehaus.mojo.webstart.JnlpMojo.signJars(JnlpMojo.java:865)
        at org.codehaus.mojo.webstart.JnlpMojo.execute(JnlpMojo.java:441)
        ... 18 more
-------------------



This is the corresponging pom:

-------------------
<project>
        <modelVersion>4.0.0</modelVersion>

        <parent>
                <groupId>de.kettler.serverlog</groupId>
                <artifactId>serverlog</artifactId>
                <version>1.0-SNAPSHOT</version>
        </parent>
        
        <groupId>de.kettler.serverlog</groupId>
        <artifactId>serverlog-client-signed</artifactId>
        <version>1.0-SNAPSHOT</version>
        
        <packaging>pom</packaging>
        
        <name>serverlog-client-signed</name>

        <dependencies>
                <dependency>
                        <groupId>de.kettler.serverlog</groupId>
                        <artifactId>serverlog-ui</artifactId>
                        <version>1.0-SNAPSHOT</version>
                </dependency>
        </dependencies>
        
        <build>
                <plugins>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>webstart-maven-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>jnlp</goal>
                                                </goals>
                                        </execution>
                                </executions>
                                <configuration>
                                        <dependencies>
                                                <includes>
                                                        
<include>de.kettler.serverlog:serverlog-ui</include>
                                                </includes>
                                                <excludes></excludes>
                                        </dependencies>

                                        <jnlp>
                                                
<mainClass>serverlog.client.Boot</mainClass>
                                        </jnlp>

                                        <sign>
                                                
<keystore>${basedir}/src/main/keystore/keystore</keystore>
                                                <keypass>asdfghjk</keypass>
                                                <storepass>qwertzui</storepass>
                                                <alias>test</alias>
                                                <validity>360</validity>

                                                <verify>true</verify>
                                        </sign>

                                        <keystore>
                                                <gen>false</gen>
                                        </keystore>

                                        <verbose>true</verbose>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
</project>
-------------------


Is there something wrong with my pom or is this a bug?

Thanks
-Tim

Reply via email to