You are looking for help on a "multi-module build." This is all
explained in great detail in a variety of Maven documentation sources
available free on the Internet.

In particular, I'd suggest:
Maven Getting Started Guide (see bottom of page)
http://maven.apache.org/guides/getting-started/index.html

Better Builds with Maven (free pdf e-book)
http://library.mergere.com/

Maven: Building Complex Systems (Dr. Dobb's article)
http://www.ddj.com/showArticle.jhtml?articleID=186100398

Wayne

On 4/20/07, Ramesh Babu Pokala - TLS, Chennai <[EMAIL PROTECTED]> wrote:
Thank you very much Wayne....
Now the problem is resolved....
I was able to package the simple application.

Now I have one question here....
How to build an application with multiple modules and each having
different packages.

For eg,

I have 2 modules say X  and Y

X
|____ Src
       |___a
               |____b
                    |____c
                           |   ___ abc
                           | ___ def
                           | ___ ghi

Inside abc, def and ghi packages I have java source files.

Similarly...

X
|____ Src
       |___p
               |____q
                    |____r
                           |   ___ aaa
                           | ___ bbb
                           | ___ ccc

Inside aaa, bbb and ccc packages I have java source files.

How to build such type of applications..



Thanks & Regards
Ramesh Babu.P


-----Original Message-----
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 19, 2007 9:36 PM
To: Maven Users List
Subject: Re: Getting error while trying to build sample RCP Application

Your previous email had exactly zero content, just a subject and your
company's disclaimer. So I imagine you included an attachment which was
stripped by the Apache mail server before sending the email to the list.

So your email appeared to be completely empty except for a subject.
That was the problem with the email. Now you've included the content as
text in the email and we see the complete log.

This entire discussion is a waste of time until you address the
settings.xml issue. All of your problems stem from the fact that you do
not have your web proxy set up properly. Until you configure it
properly, you will not get ANYWHERE with Maven. (This is like
complaining to Microsoft that you can't send email from Outlook but you
never configured the SMTP server in settings.)

So, go configure settings.xml with your proxy settings -- this is
documented on the Maven website and in countless emails on this list
-- search the archives on Nabble.com for proxy and you're bound to find
many examples. Until you do this, your emails to this list will
generally be ignored.

Also, delete the directory ~/.m2/repository to eliminate invalid
metadata.

Wayne

On 4/19/07, Ramesh Babu Pokala - TLS, Chennai <[EMAIL PROTECTED]>
wrote:
>
>
> Hi Wayne,
>
> Can you please tell me the problem with the mail I have sent
previously?
>
> I want to give you a clear idea about the problem by giving the
> complete log...
>
> Do you feel this as a problem for the group... I did not get your
> point here.
> Anyway Sorry for the inconvenience.
>
> Please find the log below if you did not receive the same previously.
>
>
>
> ----------------------------------------------------------------------
> --
> ----------------------------------
>
> I am getting the following error while trying to package the eclipse
> RCP application
>
>
>
>
> C:\Documents and Settings\Administrator\.m2\SampleProject1>mvn -e
> package
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------
> --
> -
> ---
> [INFO] Building Simple Demo
> [INFO]    task-segment: [package]
> [INFO]
> ----------------------------------------------------------------------
> --
> -
> ---
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/apache/mave
> n/plugins/maven-surefire-plugin/2.2/maven-surefire-plugin-2.2.pom
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/eclipse/cor
> e.contenttype/3.2.0.v20060603/core.contenttype-3.2.0.v20060603.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/eclipse/swt
> /3.2.0.v3232o/swt-3.2.0.v3232o.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/eclipse/swt
> .win32.win32/x86_3.2.0.v3232m/swt.win32.win32-x86_3.2.0.v3232m.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/eclipse/ui/
> 3.2.0.I20060605-1400/ui-3.2.0.I20060605-1400.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/eclipse/cor
> e.runtime/3.2.0.v20060603/core.runtime-3.2.0.v20060603.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/eclipse/equ
> inox.common/3.2.0.v20060603/equinox.common-3.2.0.v20060603.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/eclipse/jfa
> ce/3.2.0.I20060605-1400/jface-3.2.0.I20060605-1400.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/eclipse/cor
> e.commands/3.2.0.I20060605-1400/core.commands-3.2.0.I20060605-1400.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/eclipse/cor
> e.jobs/3.2.0.v20060603/core.jobs-3.2.0.v20060603.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/eclipse/equ
> inox.preferences/3.2.0.v20060601/equinox.preferences-3.2.0.v20060601.p
> om
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/eclipse/ui.
> workbench/3.2.0.I20060605-1400/ui.workbench-3.2.0.I20060605-1400.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/eclipse/osg
> i/3.2.0.v20060601/osgi-3.2.0.v20060601.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/eclipse/equ
> inox.registry/3.2.0.v20060601/equinox.registry-3.2.0.v20060601.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/codehaus/pl
> exus/plexus-compiler-manager/1.5.3/plexus-compiler-manager-1.5.3.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/codehaus/pl
> exus/plexus-compiler-manager/1.5.3/plexus-compiler-manager-1.5.3.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/codehaus/pl
> exus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/codehaus/pl
> exus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/codehaus/pl
> exus/plexus-compiler-javac/1.5.3/plexus-compiler-javac-1.5.3.pom
> Downloading:
> http://tntnextgen02:8080/proximity-VBL10/repository/org/codehaus/pl
> exus/plexus-compiler-javac/1.5.3/plexus-compiler-javac-1.5.3.pom
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date [INFO]
> [resources:testResources] [INFO] Using default encoding to copy
> filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> -----------------------------------------------------
> this realm =
> app0.child-container[org.apache.maven.plugins:maven-surefire-plugin
> ]
> urls[0] = file:/C:/Documents and
> Settings/Administrator/.m2/VBL10/org/apache/mav
> en/plugins/maven-surefire-plugin/2.2/maven-surefire-plugin-2.2.jar
> urls[1] = file:/C:/Documents and
> Settings/Administrator/.m2/VBL10/org/codehaus/p
> lexus/plexus-utils/1.1/plexus-utils-1.1.jar
> Number of imports: 4
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
>
>
> this realm = plexus.core
> urls[0] =
> file:/C:/maven-2.0.6/maven-2.0.6/bin/../lib/maven-core-2.0.6-uber.jar
> Number of imports: 4
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> -----------------------------------------------------
> [INFO]
> ----------------------------------------------------------------------
> --
> [ERROR] BUILD ERROR
> [INFO]
> ----------------------------------------------------------------------
> -- [INFO] Internal error in the plugin manager executing goal
> 'org.apache.maven.plu
> gins:maven-surefire-plugin:2.2:test': Unable to find the mojo
> 'org.apache.maven.
> plugins:maven-surefire-plugin:2.2:test' in the plugin
> 'org.apache.maven.plugins:
> maven-surefire-plugin'
> org/apache/maven/surefire/booter/SurefireExecutionException
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error

> in the pl ugin manager executing goal
> 'org.apache.maven.plugins:maven-surefire-plugin:2.2:
> test': Unable to find the mojo
> 'org.apache.maven.plugins:maven-surefire-plugin:2
> .2:test' in the plugin
'org.apache.maven.plugins:maven-surefire-plugin'
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:543)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:480)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:459)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:311)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:278)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:143)
>         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         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
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.PluginManagerException: Unable to
> find the mo jo
> 'org.apache.maven.plugins:maven-surefire-plugin:2.2:test' in the
> plugin 'org.
> apache.maven.plugins:maven-surefire-plugin'
>         at
> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
> tPluginManager.java:571)
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:421)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:539)
>         ... 16 more
> Caused by:
> org.codehaus.plexus.component.repository.exception.ComponentLookupExc
> eption: Unable to lookup component
> 'org.apache.maven.plugin.Mojoorg.apache.maven
> .plugins:maven-surefire-plugin:2.2:test', it could not be created
>         at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
> ner.java:335)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
> ner.java:440)
>         at
> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
> tPluginManager.java:562)
>         ... 18 more
> Caused by:
> org.codehaus.plexus.component.factory.ComponentInstantiationException
> : Could not instanciate component: role: 'null', implementation:
> 'org.apache.mav
> en.plugin.surefire.SurefirePlugin'
>         at
> org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeE
> xception(JavaComponentFactory.java:77)
>         at
> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn
> stance(JavaComponentFactory.java:62)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(De
> faultPlexusContainer.java:1464)
>         at
> org.codehaus.plexus.component.manager.AbstractComponentManager.create
> ComponentInstance(AbstractComponentManager.java:93)
>         at
> org.codehaus.plexus.component.manager.PerLookupComponentManager.getCo
> mponent(PerLookupComponentManager.java:48)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
> ner.java:331)
>         ... 20 more
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/maven/surefire/booter/Sure
> fireExecutionException
>         at java.lang.Class.getDeclaredConstructors0(Native Method)
>         at
> java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
>         at java.lang.Class.getConstructor0(Class.java:1930)
>         at java.lang.Class.newInstance0(Class.java:278)
>         at java.lang.Class.newInstance(Class.java:261)
>         at
> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn
> stance(JavaComponentFactory.java:44)
>         ... 24 more
> [INFO]
> ----------------------------------------------------------------------
> -- [INFO] Total time: 7 minutes 48 seconds [INFO] Finished at: Thu Apr

> 19 17:50:41 IST 2007 [INFO] Final Memory: 3M/6M [INFO]
> ----------------------------------------------------------------------
> --
>
>
>
> Can anyone tell me the solution...?
>
>
>
> Thanks,
>
> Ramesh
>
>
>
> DISCLAIMER:
> ----------------------------------------------------------------------
> -------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and

> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its
> affiliates. Any views or opinions presented in this email are solely
> those of the author and may not necessarily reflect the opinions of
> HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure,
> modification, distribution and / or publication of this message
> without the prior written consent of the author of this e-mail is
> strictly prohibited. If you have received this email in error please
> delete it and notify the sender immediately. Before opening any mail
> and attachments please check them for viruses and defect.
>
> ----------------------------------------------------------------------
> -------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



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

Reply via email to