On Tue, Dec 23, 2008 at 8:36 AM, arun_rocky
wrote:
> 1) I have created a parent maven project and i called the pom.xml file in
> child maven project.
> by using the . its working fine. but i cant able to
> retrieve the user-created classes of parent maven project in child maven
> project. i got
is
there inside in the maven-parent project.
2) can we able to create two war/jar(child and parent project separately)
files by running the child maven project only.please help me out ..
--
View this message in context:
http://www.nabble.com/Project-Inheritance-in-Maven-tp21146454p21146454
-
From: Stephen Connolly [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 24, 2008 4:09 PM
To: Maven Users List
Subject: Re: assembly plugin and project inheritance
Copy requires that the artifact must be in the local repository or in a
remote repository.
The copy dependencies allows for the
If you do something like
org.apache.maven.plugins
maven-dependency-plugin
*assembly-descriptor***
...**
copy-dependencies
Copy requires that the artifact must be in the local repository or in a
remote repository.
The copy dependencies allows for the artifact to come from the reactor, so
you don't have to install the artifact into your local repository.
The copy dependencies can be set to only copy one dependency.
T
Thank you very much for your help, I can now have many projects generate
the right assembly with just one assembly descriptor and without
requiring to check out multiple projects (and having them at the right
position in the directory structure).
I don't understand your suggestion to use copy-
there are two sets of goals in the maven dependency plugin.
the first set are copy and unpack. you specify the artifacts inside
the plugin configuration. these are not the set you want. the set you
want are copy-dependencies (or something like that I am on my iPod so
you will have to check) with t
The version I posted doesn't work as the child-projects can't perform
the attach-artifact attached to the package phase.
I've now extracted the dist configuration and the attachment of it to a
separate project[1]. Having done this I also attached the copy and the
assembly goals to the compile
Thanks Stephen,
trying to follow the path you describe I added the following to the
parent-pom:
org.codehaus.mojo
build-helper-maven-plugin
attach-artifacts
package
You could attach the common descriptor as a build artifact one module, and
then use the dependency plugin to pull it down to each child module.
i.e.
Use buildhelper-maven-plugin in rwcf-apps to attach dist.xml with a
classifier of, e.g. assembly-descriptor.
Now when you run mvn install or mvn dep
Hello
I'm having many projects that share some dependencies and that should be
packaged the same way. So I wanted to have a parent project configuring
the maven-assembly-plugin.
I did this with the following in the parent pom:
maven-assembly-plugin
Hi,
thank you Jerome for your fast response!
I'll check out that plugin.
Take care, Kurt
Jerome Lacoste schrieb:
On 4/10/07, DI Kurt Edegger <[EMAIL PROTECTED]> wrote:
Hi,
I do have a question regarding referencing the parent pom of a multi
module project as described in chapter 3 of "Bette
On 4/10/07, DI Kurt Edegger <[EMAIL PROTECTED]> wrote:
Hi,
I do have a question regarding referencing the parent pom of a multi module project as
described in chapter 3 of "Better Builds With Maven".
If a project consists of multiple modules (e.g.: api, core, model, ..), these
modules reside
Hi,
I do have a question regarding referencing the parent pom of a multi module project as
described in chapter 3 of "Better Builds With Maven".
If a project consists of multiple modules (e.g.: api, core, model, ..), these modules reside in sub-directories of a top level directory. Each module
8:52:25 AM
Subject: Project inheritance
Hi,
I have a POM which is both a parent and a multi-module. When I build from
this POM I would like the plugins to be executed for the modules and not the
parent POM i.e. how can I supress the execution for the current POM but
still inherit the propert
Hi,
I have a POM which is both a parent and a multi-module. When I build from
this POM I would like the plugins to be executed for the modules and not the
parent POM i.e. how can I supress the execution for the current POM but
still inherit the properties?
Aidan
___
Hi,
A long time ago, this question was posted, but I can't find the answer
(if there was one?)
My primary goal is to create a WAR (don't need an EAR) that depends on
another WAR project...essentially extending that original project. I
want to include all the JSPs, etc from the parent WAR. U
Hello all - I'm having a bit of trouble with three layers of pom files.
If I have:
pom.xml -> pom.xml -> pom.xml
what _should_ the parent tags look like?
In the top most one, I have:
lty
app
1.0-SNAPSHOT
pom
In the middle one, I have:
lty
app
1.0-SNAPSHOT
lty
f
yes, that is the way it is currently set up
On 5/17/06, Taavi Sildeberg <[EMAIL PROTECTED]> wrote:
Hello David,
Do you have inside a module A and s module B parent defined?
Something like this:
your parent groupid
your parent artifact id
your parent version
Taavi
Davis F
Hello David,
Do you have inside a module A and s module B parent defined?
Something like this:
your parent groupid
your parent artifact id
your parent version
Taavi
Davis Ford wrote:
Hi, I have a parent pom.xml project in C:\someplace\pom.xml that has
moduleA
moduleB
Then I
Hi, I have a parent pom.xml project in C:\someplace\pom.xml that has
moduleA
moduleB
Then I have
C:\someplace\moduleA\pom.xml
C:\someplace\moduleB\pom.xml
If I execute:
C:\someplace\>mvn clean
C:\someplace\>mvn compile
C:\someplace\>mvn test
That works great for moduleA, moduleB
If I execut
21 matches
Mail list logo