You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jsona laio <fr...@yahoo.co.uk> on 2004/11/17 16:06:22 UTC

j2ee sample multiproject problem

Hi, mavens:
I follow up the sample on the wiki
(http://wiki.codehaus.org/maven/CreatingJ2eeApplications)
to learn to create multiproject (with ejb). However,
due to not very familiar with maven. I can't  process
further after building root project. [source code I
use is j2ee-project.zip;
http://wiki.codehaus.org/maven/CreatingJ2eeApplications?action=AttachFile&do=get&target=j2ee-project.zip]
for instance, I switch to common dir. and try to issue
command like "maven". it has message "BUILD
SUCCESSFUL", but I can't see the source "Common.java"
compiled. 
or I try to compile from the top-level folder - root,
with command issued errors as A.).

env: maven 1.0-rc2, ant 1.6.1.

Where did I do it wrong? I appreciate any suggestion.
Or anyone would like to tell me the correct steps to
get mutliporject worked (outline steps)? [I can get
the web sample project worked, it only need to issues
a single command. doesn't it mean that it's the same
as multiproject; i.e., to get to each project to
compile or would it proecess recursively as make linux
kernel ? ]
sincerely.

A.)=========multiproject command issued
error==========BEG
com.werken.werkz.NoSuchGoalException: No goal
[multiproject:artifact]
        at
com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:190)
        at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
531)
        at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)
        at
org.apache.maven.cli.App.doMain(App.java:466)
        at
org.apache.maven.cli.App.main(App.java:1117)
        at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at
java.lang.reflect.Method.invoke(Method.java:324)
        at
com.werken.forehead.Forehead.run(Forehead.java:551)
        at
com.werken.forehead.Forehead.main(Forehead.java:581)
Total time: 2 seconds
Finished at: Wed Nov 17 22:59:48 GMT+08:00 2004

 =========multiproject command issued error==========BEG


		
___________________________________________________________ 
Moving house? Beach bar in Thailand? New Wardrobe? Win £10k with Yahoo! Mail to make your dream a reality. 
Get Yahoo! Mail www.yahoo.co.uk/10k

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: j2ee sample multiproject problem

Posted by jsona laio <fr...@yahoo.co.uk>.
Thanks your help Brett. After switching to maven
1.0.1. The problem can be solved.


 --- Brett Porter <br...@gmail.com> wrote: 
> I'm not certain if multiproject:artifact existed in
> Maven 1.0 RC2. You
> should upgrade to the latest Maven release: releases
> prior to 1.0 are
> no longer supported.
> 
> - Brett
> 
> 
> On Wed, 17 Nov 2004 15:06:22 +0000 (GMT), jsona laio
> <fr...@yahoo.co.uk> wrote:
> > Hi, mavens:
> > I follow up the sample on the wiki
> >
>
(http://wiki.codehaus.org/maven/CreatingJ2eeApplications)
> > to learn to create multiproject (with ejb).
> However,
> > due to not very familiar with maven. I can't 
> process
> > further after building root project. [source code
> I
> > use is j2ee-project.zip;
> >
>
http://wiki.codehaus.org/maven/CreatingJ2eeApplications?action=AttachFile&do=get&target=j2ee-project.zip]
> > for instance, I switch to common dir. and try to
> issue
> > command like "maven". it has message "BUILD
> > SUCCESSFUL", but I can't see the source
> "Common.java"
> > compiled.
> > or I try to compile from the top-level folder -
> root,
> > with command issued errors as A.).
> > 
> > env: maven 1.0-rc2, ant 1.6.1.
> > 
> > Where did I do it wrong? I appreciate any
> suggestion.
> > Or anyone would like to tell me the correct steps
> to
> > get mutliporject worked (outline steps)? [I can
> get
> > the web sample project worked, it only need to
> issues
> > a single command. doesn't it mean that it's the
> same
> > as multiproject; i.e., to get to each project to
> > compile or would it proecess recursively as make
> linux
> > kernel ? ]
> > sincerely.
> > 
> > A.)=========multiproject command issued
> > error==========BEG
> > com.werken.werkz.NoSuchGoalException: No goal
> > [multiproject:artifact]
> >         at
> >
>
com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:190)
> >         at
> >
>
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> > 531)
> >         at
> >
>
org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)
> >         at
> > org.apache.maven.cli.App.doMain(App.java:466)
> >         at
> > org.apache.maven.cli.App.main(App.java:1117)
> >         at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> >         at
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > java:39)
> >         at
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > sorImpl.java:25)
> >         at
> > java.lang.reflect.Method.invoke(Method.java:324)
> >         at
> >
> com.werken.forehead.Forehead.run(Forehead.java:551)
> >         at
> >
> com.werken.forehead.Forehead.main(Forehead.java:581)
> > Total time: 2 seconds
> > Finished at: Wed Nov 17 22:59:48 GMT+08:00 2004
> > 
> >  =========multiproject command issued
> error==========BEG
> > 
> > 
> >
>
___________________________________________________________
> > Moving house? Beach bar in Thailand? New Wardrobe?
> Win £10k with Yahoo! Mail to make your dream a
> reality.
> > Get Yahoo! Mail www.yahoo.co.uk/10k
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> > For additional commands, e-mail:
> users-help@maven.apache.org
> > 
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
> 
>  


		
___________________________________________________________ 
Win a castle for NYE with your mates and Yahoo! Messenger 
http://uk.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: j2ee sample multiproject problem

Posted by Brett Porter <br...@gmail.com>.
I'm not certain if multiproject:artifact existed in Maven 1.0 RC2. You
should upgrade to the latest Maven release: releases prior to 1.0 are
no longer supported.

- Brett


On Wed, 17 Nov 2004 15:06:22 +0000 (GMT), jsona laio
<fr...@yahoo.co.uk> wrote:
> Hi, mavens:
> I follow up the sample on the wiki
> (http://wiki.codehaus.org/maven/CreatingJ2eeApplications)
> to learn to create multiproject (with ejb). However,
> due to not very familiar with maven. I can't  process
> further after building root project. [source code I
> use is j2ee-project.zip;
> http://wiki.codehaus.org/maven/CreatingJ2eeApplications?action=AttachFile&do=get&target=j2ee-project.zip]
> for instance, I switch to common dir. and try to issue
> command like "maven". it has message "BUILD
> SUCCESSFUL", but I can't see the source "Common.java"
> compiled.
> or I try to compile from the top-level folder - root,
> with command issued errors as A.).
> 
> env: maven 1.0-rc2, ant 1.6.1.
> 
> Where did I do it wrong? I appreciate any suggestion.
> Or anyone would like to tell me the correct steps to
> get mutliporject worked (outline steps)? [I can get
> the web sample project worked, it only need to issues
> a single command. doesn't it mean that it's the same
> as multiproject; i.e., to get to each project to
> compile or would it proecess recursively as make linux
> kernel ? ]
> sincerely.
> 
> A.)=========multiproject command issued
> error==========BEG
> com.werken.werkz.NoSuchGoalException: No goal
> [multiproject:artifact]
>         at
> com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:190)
>         at
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 531)
>         at
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)
>         at
> org.apache.maven.cli.App.doMain(App.java:466)
>         at
> org.apache.maven.cli.App.main(App.java:1117)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at
> java.lang.reflect.Method.invoke(Method.java:324)
>         at
> com.werken.forehead.Forehead.run(Forehead.java:551)
>         at
> com.werken.forehead.Forehead.main(Forehead.java:581)
> Total time: 2 seconds
> Finished at: Wed Nov 17 22:59:48 GMT+08:00 2004
> 
>  =========multiproject command issued error==========BEG
> 
> 
> ___________________________________________________________
> Moving house? Beach bar in Thailand? New Wardrobe? Win £10k with Yahoo! Mail to make your dream a reality.
> Get Yahoo! Mail www.yahoo.co.uk/10k
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org