You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by bwarren <br...@usairways.com> on 2009/08/06 02:57:29 UTC

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:

    <dependency>
      <groupId>org.jboss.jbossas</groupId>
      <artifactId>jboss-as-client</artifactId>
      <version>5.0.1.GA</version>
      <scope>compile</scope>
      <type>pom</type>
    </dependency>

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:

    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo.webstart</groupId>
        <artifactId>webstart-maven-plugin</artifactId>
        <executions>
          <execution>
            <phase>process-resources</phase>
            <goals>
              <goal>jnlp-download-servlet</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <outputDirectoryName>application</outputDirectoryName>
          <outputFilename>launch.jnlp</outputFilename>
          <jnlpFiles>
            <jnlpFile>
              <templateFilename>jnlp-template.vm</templateFilename>
              <jarResources>
                <jarResource>
                  <groupId>com.usairways.cbro</groupId>
                  <artifactId>real-time-departure-swing</artifactId>
                  <version>1.0.0.a2</version>
                  <mainClass>com.usairways.cbro.rtd.swing.Main</mainClass>
                </jarResource>
              </jarResources>
            </jnlpFile>
          </jnlpFiles>
        </configuration>
      </plugin>
    </plugins>

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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin - unprocessed POM in WAR

Posted by bwarren <br...@usairways.com>.
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<br...@usairways.com> 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-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin - unprocessed POM in WAR

Posted by Jerome Lacoste <je...@gmail.com>.
On Mon, Aug 10, 2009 at 8:12 PM, bwarren<br...@usairways.com> 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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin - unprocessed POM in WAR

Posted by bwarren <br...@usairways.com>.
Yes I don't need the POM, just the dependencies.


Jerome Lacoste-2 wrote:
> 
> On Thu, Aug 6, 2009 at 2:57 AM, bwarren<br...@usairways.com> 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:
>>
>>    <dependency>
>>      <groupId>org.jboss.jbossas</groupId>
>>      <artifactId>jboss-as-client</artifactId>
>>      <version>5.0.1.GA</version>
>>      <scope>compile</scope>
>>      <type>pom</type>
>>    </dependency>
>>
>> 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:
>>
>>    <plugins>
>>      <plugin>
>>        <groupId>org.codehaus.mojo.webstart</groupId>
>>        <artifactId>webstart-maven-plugin</artifactId>
>>        <executions>
>>          <execution>
>>            <phase>process-resources</phase>
>>            <goals>
>>              <goal>jnlp-download-servlet</goal>
>>            </goals>
>>          </execution>
>>        </executions>
>>        <configuration>
>>          <outputDirectoryName>application</outputDirectoryName>
>>          <outputFilename>launch.jnlp</outputFilename>
>>          <jnlpFiles>
>>            <jnlpFile>
>>              <templateFilename>jnlp-template.vm</templateFilename>
>>              <jarResources>
>>                <jarResource>
>>                  <groupId>com.usairways.cbro</groupId>
>>                  <artifactId>real-time-departure-swing</artifactId>
>>                  <version>1.0.0.a2</version>
>>                  <mainClass>com.usairways.cbro.rtd.swing.Main</mainClass>
>>                </jarResource>
>>              </jarResources>
>>            </jnlpFile>
>>          </jnlpFiles>
>>        </configuration>
>>      </plugin>
>>    </plugins>
>>
>> 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-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Webstart Plugin - unprocessed POM in WAR

Posted by Jerome Lacoste <je...@gmail.com>.
On Thu, Aug 6, 2009 at 2:57 AM, bwarren<br...@usairways.com> 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:
>
>    <dependency>
>      <groupId>org.jboss.jbossas</groupId>
>      <artifactId>jboss-as-client</artifactId>
>      <version>5.0.1.GA</version>
>      <scope>compile</scope>
>      <type>pom</type>
>    </dependency>
>
> 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:
>
>    <plugins>
>      <plugin>
>        <groupId>org.codehaus.mojo.webstart</groupId>
>        <artifactId>webstart-maven-plugin</artifactId>
>        <executions>
>          <execution>
>            <phase>process-resources</phase>
>            <goals>
>              <goal>jnlp-download-servlet</goal>
>            </goals>
>          </execution>
>        </executions>
>        <configuration>
>          <outputDirectoryName>application</outputDirectoryName>
>          <outputFilename>launch.jnlp</outputFilename>
>          <jnlpFiles>
>            <jnlpFile>
>              <templateFilename>jnlp-template.vm</templateFilename>
>              <jarResources>
>                <jarResource>
>                  <groupId>com.usairways.cbro</groupId>
>                  <artifactId>real-time-departure-swing</artifactId>
>                  <version>1.0.0.a2</version>
>                  <mainClass>com.usairways.cbro.rtd.swing.Main</mainClass>
>                </jarResource>
>              </jarResources>
>            </jnlpFile>
>          </jnlpFiles>
>        </configuration>
>      </plugin>
>    </plugins>
>
> 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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org