On 1/30/07, Maruf Aytekin <[EMAIL PROTECTED]> wrote:
in red

Jerome Lacoste wrote:
> On 1/30/07, Maruf Aytekin <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I am trying to build a jnlp project with maven 2. I am currently using
>> mojo's Maven Webstart Plugin.
>>
>> I have two questions:
>>
>> 1. Should I use this plug in or is there any plug in that can be
>> configured easily?
>
> Can't this plugin be configured easily ?
> It not, what are your problems with it ?
It seems easy to configure but I couldn't get it working. This is my
first jnlp building with maven 2 maybe I couldn't find the right docs. I
saw only
http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/howto.html.
Is there an example usage or more docs I can find?


example usage: look at the src/test/projects/

http://svn.mojo.codehaus.org/browse/mojo/trunk/mojo/webstart-maven-plugin/plugin/src/test/projects/

Hope that helps...


>> 2.  When I run "mvn install webstart:jnlp" I get following error:
>> [INFO] didn't find artifact with main class:
>> com.mycompany.baydonhill.traderapp.Main. Did you specify it?
>>
>> Any ideas would be appreciated.
>
>
>
> You restricted the dependencies the plugin should look into:
>
>>                  <includes>
>>                     <include>commons-logging:commons-logging</include>
>>                     <include>commons-cli:commons-cli</include>
>>                  </includes>
>
>
> That's wrong. Either remove this <includes> section or specify it
> correctly. You probably can just remove it, specifying is to be used
> as some form of optimization when the default list of dependencies
> needs to be limited.
>
I have removed the includes section but i still have the same error;
Here is the stack traces first few lines
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: didn't find
artifact wit
h main class: com.aspone.baydonhill.traderapp.Main. Did you specify it?
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>
>> Maruf

This means that the com.aspone.baydonhill.traderapp.Main class isn't
found in the list of dependencies. Do you have this class in your
com.holub:holub package ? Or do you miss a dependency ?

If you class is not in a dependency, e.g. you are trying to use a
class present in the current project, i.e. under src/main/java, you
cannot use the 1.0-alpha-1 released version of the plugin but have to
use the latest 1.0-alpha-2-SNAPSHOT. The doc for that version is still
under SVN and has not been published online.


> PS: please use the MOJO user mailing list, not the MAVEN one.

I have tried it but didn't get any response back.

I couldn't find any mail from you in the mojo archive. Sorry if I missed it.

Cheers,

J

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to