webstart-maven-plugin including test scoped dependencies

167 Views Asked by At

In a multi module project I have a dependency on ProjectB (main and test) in ProjectA's pom configured as

    <dependency>
        <groupId>com.company</groupId>
        <artifactId>ProjectB</artifactId>
        <version>0.0.1-SNAPSHOT</version>
    </dependency>
    <dependency>
        <groupId>com.company</groupId>
        <artifactId>ProjectB</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <type>test-jar</type>
    </dependency>

When i attempt to package the project using the webstart-maven-plugin the test-jar is excluded from the lib directory. Is there a way to include it?

The plugin logs contain this line which indicates the test-jar dependency is being skipped.

[DEBUG] artifact axis:axis-wsdl4j:jar:1.5.1:compile doesn't contain the main class: com.company.ui.ApplicationWindow
[INFO] Skipping artifact of type test-jar for lib
[DEBUG] artifact com.jgoodies:jgoodies-looks:jar:2.5.3:compile doesnt contain the main class: com.company.ui.ApplicationWindow

Thanks.

1

There are 1 best solutions below

0
On BEST ANSWER

After digging through the source code I have found that including the test-jar can't be included. The plugin will only include dependencies of type "jar" and "ejb-client".

In any case I have decided to fix my problem by including the test classes as a source folder in the main jar.