[EMAIL PROTECTED] a écrit :
Can you please give me more details on your comment

"You must add a build definition. With shell project, we can't add a default build definition"

Open the project view in Continuum interface
Click on "Add" button in build definition part
set parameters


Is there any example(step-step) somewhere it shows how to add M2project as 
shell project??

Not yet.






Thanks,
Raghurajan G




Emmanuel Venisse <[EMAIL PROTECTED]>
02/03/2006 11:19 AM
Please respond to continuum-users

To: continuum-users@maven.apache.org cc: Subject: Re: How to make multi module work in continuum




[EMAIL PROTECTED] a écrit :

Again Thanks for your reply,


If i remove the -N option i think i read somewhere its gonna do build

all
modules 2 times? is that right


yes, but only on modules that have changes.



in case of shell project where do i give my pom url ? coz all its

asking
for project name,versin,scm url

so i gave it like this

       Project Name : MyMavenPrj
       Version             : snapshot
                Scm Url            : scm:clearcase|Myview|Myconfig_spec

then when i hit the build now

i'm getting the following error?? What am i doing wront,


You must add a build definition. With shell project, we can't add a default build definition.



ognl.MethodFailedException: Method "buildProject" failed for object [EMAIL PROTECTED] [org.apache.maven.continuum.ContinuumException: Project (id=81 doens't have a default build definition.] at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796) at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)
                at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
                at ognl.ASTMethod.getValueBody(ASTMethod.java:75)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
                at ognl.SimpleNode.getValue(SimpleNode.java:210)
                at ognl.Ognl.getValue(Ognl.java:333)
                at ognl.Ognl.getValue(Ognl.java:378)
                at ognl.Ognl.getValue(Ognl.java:357)
at

org.apache.maven.continuum.web.action.CallApplicationModel.execute(CallApplicationModel.java:72)

at

org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68)

at

org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70)

at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54) at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at

org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at

org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) at

org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
/-- Encapsulated exception ------------\
org.apache.maven.continuum.ContinuumException: Project (id=81 doens't

have
a default build definition.
at

org.apache.maven.continuum.DefaultContinuum.buildProject(DefaultContinuum.java:396)

at

org.apache.maven.continuum.DefaultContinuum.buildProject(DefaultContinuum.java:381)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:324)
                at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:785) at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)
                at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
                at ognl.ASTMethod.getValueBody(ASTMethod.java:75)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
                at ognl.SimpleNode.getValue(SimpleNode.java:210)
                at ognl.Ognl.getValue(Ognl.java:333)
                at ognl.Ognl.getValue(Ognl.java:378)
                at ognl.Ognl.getValue(Ognl.java:357)
at

org.apache.maven.continuum.web.action.CallApplicationModel.execute(CallApplicationModel.java:72)

at

org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68)

at

org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70)

at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54) at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at

org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at

org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) at

org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
\--------------------------------------/














Thanks,
Raghurajan G




Emmanuel Venisse <[EMAIL PROTECTED]>
02/02/2006 06:31 PM
Please respond to continuum-users


       To:     continuum-users@maven.apache.org
cc: Subject: Re: How to make multi module work in continuum




[EMAIL PROTECTED] a écrit :


yeah

i'm using m2 with continuum

when i added the parent pom it loaded all the child pom but when hit "build now" at parent it just did a build for parent but not for child


Yes, if you want to build other projects, just hit "build now" on them.



if i need to make to work it on using command project how do i do that,


If you want all modules independant in Continuum and want to build all when you hit "build now" on parent, go to build definitions of parent and remove "-N" parameter

If you want only one project in continuum and build all everytime, you need to add a "Shell Project"



can anyone please give me example , coz confused what enter where,






Thanks,
Raghurajan G




Emmanuel Venisse <[EMAIL PROTECTED]>
02/02/2006 05:02 PM
Please respond to continuum-users


      To:     continuum-users@maven.apache.org
cc: Subject: Re: How to make multi module work in continuum




John Tolentino a écrit :



What are you trying to build? Maven 1, Maven 2 or Ant?

If you're using Maven 2, by default it should build all of the sub projects if you build the parent. Just make sure all of the sub

projects

are declared in the parent POM's modules section.


Not exactly.
Continuum create separate projects for parent and modules. Each project have its own build if a change is make on it. By default, the parent build is done with -N (non recursive) options, Continuum don't build sub-modules on parent project.




With Maven 1, make the default goal of your parent project call your multi-project goal.

Can't answer regarding Ant though. Haven't tried building

multi-projects

through Continuum with Ant yet.

[EMAIL PROTECTED] wrote:




How do i make continuum to build parent and childern ?

is there any documentation or example any where?






Thanks,
Raghurajan G















Reply via email to