When creating jnlp with the maven-webstart plugin, I found that runtime dependencies are not included in jnlp.
I use a template like this:
<?xml version="1.0" encoding="utf-8"?> <jnlp spec="$jnlpspec" codebase="${url}/${appName}" href="${outputFile}"> <information> <title>${appName}</title> <vendor>$project.Organization.Name</vendor> <homepage href="${url}/${appName}"/> <offline-allowed/> </information> <security> <all-permissions/> </security> <resources> <j2se version="$j2seVersion"/> $dependencies </resources> <application-desc main-class="${main}" /> </jnlp>
How to enable runtime dependencies? Well, I can include them all individually:
<plugin> <groupId>org.codehaus.mojo.webstart</groupId> <artifactId>webstart-maven-plugin</artifactId> <configuration> <dependencies> <includes> <include>groupId:artifactId</include> ... </includes> </dependencies> ... </configuration> </plugin>
... but ideally, I do not want to forget to change this every time I add runtime dependency to my project.
Is there a way to instruct the plugin to include all dependencies at runtime?
source share