Re: Maven Webstart Plugin - unprocessed POM in WAR
Just put some skeleton stuff around the 2 POM snippets in the original email and you should have it. I'm not sitting around and waiting or anything, it's more of an FYI. If I get a chance I'll try to cook one up. I decided I didn't want the whole world that comes with the JBoss client POM included in my webstart download anyway. I was able to distill everything in that POM down to 3 dependencies that I actually needed so I just reference those directly. My download size shrank significantly. Jerome Lacoste-2 wrote: > > On Mon, Aug 10, 2009 at 8:12 PM, bwarren wrote: >> >> Yes I don't need the POM, just the dependencies. > > Mmmm the code is supposed to only copy the artifacts of type jar or > ejb-client > > String type = artifact.getType(); > if ( "jar".equals( type ) || "ejb-client".equals( type ) ) > { > > cf > webstart/webstart-maven-plugin/src/main/java/org/codehaus/mojo/webstart/AbstractJnlpMojo.java > > I need more time to test this properly and I am extremely busy this > week. Are you able to provide an small test case ? > > If you could write one along those found under > > webstart/webstart-maven-plugin/src/it/itxxx/ > > jerome > > PS: the webstart mojo is usualy supported on the mojo user list (cf. > mojo.codehaus.org) > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Maven-Webstart-Plugin---unprocessed-POM-in-WAR-tp24838690p24909428.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Webstart Plugin - unprocessed POM in WAR
On Mon, Aug 10, 2009 at 8:12 PM, bwarren wrote: > > Yes I don't need the POM, just the dependencies. Mmmm the code is supposed to only copy the artifacts of type jar or ejb-client String type = artifact.getType(); if ( "jar".equals( type ) || "ejb-client".equals( type ) ) { cf webstart/webstart-maven-plugin/src/main/java/org/codehaus/mojo/webstart/AbstractJnlpMojo.java I need more time to test this properly and I am extremely busy this week. Are you able to provide an small test case ? If you could write one along those found under webstart/webstart-maven-plugin/src/it/itxxx/ jerome PS: the webstart mojo is usualy supported on the mojo user list (cf. mojo.codehaus.org) - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Webstart Plugin - unprocessed POM in WAR
Yes I don't need the POM, just the dependencies. Jerome Lacoste-2 wrote: > > On Thu, Aug 6, 2009 at 2:57 AM, bwarren wrote: >> >> I have a Webstart application that I'm generating a WAR file to deploy on >> JBoss using the Maven Webstart plugin. >> >> I have included the JBoss client POM in my application POM to grab the >> JBoss >> client dependencies for JNDI and EJB. When the plugin creates the WAR >> file, >> it is including the POM with unprocessed_ prepended to the file name. >> The >> plugin is also putting the POM in as a jar dependency in the JNLP file. >> >> So when the JNLP download servlet goes to pull the JAR dependencies for >> my >> webstart application, it tries to grab the POM, which has been renamed, >> and >> fails. Does anyone know why that file is getting renamed? I saw some >> emails about JARs getting "unprocessed" stuck in the name when signing is >> turned off. It appears that the plugin isn't designed for POM >> dependencies. >> >> Here's the JBoss client dependency in my webstart application's POM: >> >> >> org.jboss.jbossas >> jboss-as-client >> 5.0.1.GA >> compile >> pom >> >> >> I included that POM because it has dependencies to the client JARs I need >> to >> call over to JBoss. Reference - >> https://jira.jboss.org/jira/browse/JBAS-6320 >> >> Here's the webstart plugin config from my WAR POM: >> >> >> >> org.codehaus.mojo.webstart >> webstart-maven-plugin >> >> >> process-resources >> >> jnlp-download-servlet >> >> >> >> >> application >> launch.jnlp >> >> >> jnlp-template.vm >> >> >> com.usairways.cbro >> real-time-departure-swing >> 1.0.0.a2 >> com.usairways.cbro.rtd.swing.Main >> >> >> >> >> >> >> >> >> How can I get it to not rename the jboss-as-client POM to >> unprocessed_jboss-as-client? Or alternatively, how do I keep it from >> adding >> the jboss-as-client POM as a JAR dependency in the JNLP, but keep the >> transitive dependencies of the jboss-as-client POM in there? > > If the POM file isn't added to the target directory but the transitive > dependencies added, that should fix it for you, right ? > > Jerome > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Maven-Webstart-Plugin---unprocessed-POM-in-WAR-tp24838690p24904634.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Webstart Plugin - unprocessed POM in WAR
On Thu, Aug 6, 2009 at 2:57 AM, bwarren wrote: > > I have a Webstart application that I'm generating a WAR file to deploy on > JBoss using the Maven Webstart plugin. > > I have included the JBoss client POM in my application POM to grab the JBoss > client dependencies for JNDI and EJB. When the plugin creates the WAR file, > it is including the POM with unprocessed_ prepended to the file name. The > plugin is also putting the POM in as a jar dependency in the JNLP file. > > So when the JNLP download servlet goes to pull the JAR dependencies for my > webstart application, it tries to grab the POM, which has been renamed, and > fails. Does anyone know why that file is getting renamed? I saw some > emails about JARs getting "unprocessed" stuck in the name when signing is > turned off. It appears that the plugin isn't designed for POM dependencies. > > Here's the JBoss client dependency in my webstart application's POM: > > > org.jboss.jbossas > jboss-as-client > 5.0.1.GA > compile > pom > > > I included that POM because it has dependencies to the client JARs I need to > call over to JBoss. Reference - > https://jira.jboss.org/jira/browse/JBAS-6320 > > Here's the webstart plugin config from my WAR POM: > > > > org.codehaus.mojo.webstart > webstart-maven-plugin > > > process-resources > > jnlp-download-servlet > > > > > application > launch.jnlp > > > jnlp-template.vm > > > com.usairways.cbro > real-time-departure-swing > 1.0.0.a2 > com.usairways.cbro.rtd.swing.Main > > > > > > > > > How can I get it to not rename the jboss-as-client POM to > unprocessed_jboss-as-client? Or alternatively, how do I keep it from adding > the jboss-as-client POM as a JAR dependency in the JNLP, but keep the > transitive dependencies of the jboss-as-client POM in there? If the POM file isn't added to the target directory but the transitive dependencies added, that should fix it for you, right ? Jerome - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven Webstart Plugin - unprocessed POM in WAR
I have a Webstart application that I'm generating a WAR file to deploy on JBoss using the Maven Webstart plugin. I have included the JBoss client POM in my application POM to grab the JBoss client dependencies for JNDI and EJB. When the plugin creates the WAR file, it is including the POM with unprocessed_ prepended to the file name. The plugin is also putting the POM in as a jar dependency in the JNLP file. So when the JNLP download servlet goes to pull the JAR dependencies for my webstart application, it tries to grab the POM, which has been renamed, and fails. Does anyone know why that file is getting renamed? I saw some emails about JARs getting "unprocessed" stuck in the name when signing is turned off. It appears that the plugin isn't designed for POM dependencies. Here's the JBoss client dependency in my webstart application's POM: org.jboss.jbossas jboss-as-client 5.0.1.GA compile pom I included that POM because it has dependencies to the client JARs I need to call over to JBoss. Reference - https://jira.jboss.org/jira/browse/JBAS-6320 Here's the webstart plugin config from my WAR POM: org.codehaus.mojo.webstart webstart-maven-plugin process-resources jnlp-download-servlet application launch.jnlp jnlp-template.vm com.usairways.cbro real-time-departure-swing 1.0.0.a2 com.usairways.cbro.rtd.swing.Main How can I get it to not rename the jboss-as-client POM to unprocessed_jboss-as-client? Or alternatively, how do I keep it from adding the jboss-as-client POM as a JAR dependency in the JNLP, but keep the transitive dependencies of the jboss-as-client POM in there? -- View this message in context: http://www.nabble.com/Maven-Webstart-Plugin---unprocessed-POM-in-WAR-tp24838690p24838690.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org