Jerome Lacoste wrote:
On Dec 19, 2007 1:00 AM, Farrukh Najmi <[EMAIL PROTECTED]> wrote:
Jerome Lacoste wrote:
On Dec 18, 2007 7:38 PM, Farrukh Najmi <[EMAIL PROTECTED]> wrote:

I am trying to generate a webstart distribution for my UI using
org.codehaus.mojo:webstart-maven-plugin:1.0-alpha-2-SNAPSHOT:jnlp

I created my plugin configuration based upon examples provided. I am
currently getting an error suggesting that the <jnlp> element is missing.
But its not missing. What could be wrong?

[DEBUG] webstart-jarsigner-api: resolved to version
1.0-alpha-2-20070823.204122-3 from repository Maven Snapshots
[DEBUG] pack200-jdk15: resolved to version 1.0-alpha-2-20070823.204122-7
from repository Maven Snapshots
[DEBUG] keytool-maven-plugin: resolved to version
1.0-beta-2-20071206.230813-2 from repository Maven Snapshots
[DEBUG] Configuring mojo
'org.codehaus.mojo:webstart-maven-plugin:1.0-alpha-2-SNAPSHOT:jnlp' -->
[DEBUG]   (f) basedir = /home/najmi/xxx/trunk/myapp-gui-swing
[DEBUG]   (f) executedProject =
[EMAIL PROTECTED]
[DEBUG]   (f) gzip = false
[DEBUG]   (f) localRepository = [local] -> file:///home/najmi/.m2/repository
[DEBUG]   (s) outputJarVersions = false
[DEBUG]   (f) pack200 = false
[DEBUG]   (f) remoteRepositories = ....
[DEBUG]   (f) settings = [EMAIL PROTECTED]
[DEBUG]   (f) templateDirectory =
/home/najmi/xxx/trunk/myapp-gui-swing/src/main/jnlp
[DEBUG]   (f) unsignAlreadySignedJars = false
[DEBUG]   (f) verbose = false
[DEBUG]   (f) verifyjar = true
[DEBUG]   (f) workDirectory =
/home/najmi/xxx/trunk/myapp-gui-swing/target/jnlp
[DEBUG] -- end configuration --
[INFO] [webstart:jnlp]
[DEBUG] a fact
[EMAIL PROTECTED]
[DEBUG] a resol
[EMAIL PROTECTED]
[DEBUG] basedir /home/najmi/xxx/trunk/myapp-gui-swing
[DEBUG] gzip false
[DEBUG] pack200 false
[DEBUG] project [EMAIL PROTECTED]
[DEBUG] zipArchiver [EMAIL PROTECTED]
[DEBUG] verifyjar true
[DEBUG] verbose false

If you look carefully in the log, you will see that several
configuration elements are not taken into account:
                           <pack200>true</pack200>
                           <gzip>true</gzip> <!-- default force when
pack200 false, true when pack200 selected ?? -->
[...]

                           <verbose>true</verbose>
->

[DEBUG] gzip false
[DEBUG] pack200 false
[DEBUG] verbose false

* how did you run the build ? mvn install webstart:jnlp ? mvn webstart:jnlp ?

I trie dthe following:

mvn  -e -X webstart:jnlp
mvn  -e -X webstart:jnlp-inline

and got same results.
you probably want to use the jnlp-inline mojo and attach it to a
particular phase

I modified pom and attached jnlp-inline to package phase and still get
the same result.
Note that whatever I have been doing is based on the examples in the
project.

What could be wrong?

Not sure...

I've tried with maven 2.0.6, 2.0.7 and 2.0.8 on a project that
represents your case. All worked.

Which maven version are you using ?

Add anything else that might help (full pom, full log, project
structure information, tools version) etc.. Don't hesitate to create
an issue in Jira and attach those there.
(http://jira.codehaus.org/browse/MWEBSTART)


<jerome>
* your plugin configuration is within a <profile> is it selected ? if you run it with: mvn -e -X install webstart:jnlp-inline, probably not.
</jerome>

I am embarrased to say that above was the problem as Jerome suggested offline. I did not notice that I had added the plugin configuration for webstart-maven-plugin
in a profile and it was not being run because the profile was not activated.

Thanks Jerome for your terrific help and my apologies for the cockpit error.

--
Regards,
Farrukh Najmi

Web: http://www.wellfleetsoftware.com



---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to