I have a project that builds multiple artifacts - a jar, a DLL and
others that are shared by the Jar and DLL. For various reasons, we have
decided to create a single POM that has plug-ins in right phases to
build the DLL.
So we decided to package this as a ZIP that gets unzipped at the right
I am very new to maven and trying to wrap my head around how best to
port an existing ant based project to maven.
The project is a webservice layer for application. The ant build
currently generates two artifacts:
- my-ws-client.jar. Consists of WS interfaces, a few concrete classes
used only b
?
Curious, what made you think that that binary gets overriden? Maybe your
classpath issue is a plugin specific problem ( i.e. a plugin only uses the
classpath maven made and not yours ).
Cheers,
Franz
Goel, Deepak wrote:
>
> I have a project that builds multiple artifacts - a jar, a DLL a
for compile but doesn't
work for Eclipse project generation.
How can I solve Eclipse project issue?
-Original Message-
From: franz see [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2007 8:07 PM
To: [EMAIL PROTECTED]
Subject: Re: Multiple artifacts
Good day,
AFAIU, you h
lve Eclipse project issue?
>
> -Original Message-
> From: franz see [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 10, 2007 8:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Multiple artifacts
>
>
> Good day,
>
> AFAIU, you have a single maven project t
-Original Message-
>> From: franz see [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, April 10, 2007 8:07 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: Multiple artifacts
>>
>>
>> Good day,
>>
>> AFAIU, you have a single maven project that packa
007 10:35 PM
To: [EMAIL PROTECTED]
Subject: RE: Multiple artifacts
Pardon,
[1] is
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-eclipse-plugin
:)
franz see wrote:
>
> Good day,
>
> After a quick browse through the eclipse plugin's code ( see [1] ),
I'd
> sugge
gt; From: franz see [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 11, 2007 10:35 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Multiple artifacts
>
>
> Pardon,
>
> [1] is
> http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-eclipse-plugin
>
> :)
>
&
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi there,
> I have a project that builds multiple artifacts - a jar, a DLL and
> others that are shared by the Jar and DLL. For various reasons, we have
> decided to create a single POM that has plug-ins in right phases to
> b
We have a project that has a couple of variations of an ear for the for
web servers such as Webspear, Weblogic etc... To handle this, we use
Maven profiles which only include the web server's required files before
packaging. Is there a way to create these variations with at the same
time, produci
?
Thanks
--
View this message in context:
http://n2.nabble.com/generating-multiple-artifacts-tp4744752p4744752.html
Sent from the maven users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr
Easiest is always to break into multiple modules as you've already outlined.
Wayne
On 5/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I am very new to maven and trying to wrap my head around how best to
port an existing ant based project to maven.
The project is a webservice layer for ap
, May 23, 2006 11:45 AM
To: Maven Users List
Subject: Re: [M2] multiple-artifacts
Easiest is always to break into multiple modules as you've already
outlined.
Wayne
On 5/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
> I am very new to maven and trying to wrap my head around how
.4 or 5.0, very much like TestNG does).
Therefore I've got two different profiles, but the problem is that I can't
build both profiles at once, so how it is possible to build different
artifacts for different source levels?
regards,
Bernhard Huemer
--
View this message in context:
http:
I'm relatively new to Maven 2, and am seeking advice regarding the
following problem: I have written a data transfer object
(MailMergeRequest) that will be passed (serialized to XML using Xstream)
between web client, app server and database. The client and app server
are running JDK5, the databas
You can use classifiers to keep the artifact names separate, like you
suggested. I.e.
jboss
org.apache.maven.plugins
maven-ear-plugin
jboss
...
On Tue, 19 Jan 2010 11:29:54 -0500, David.A.Williams wrote
> We have a project that has a couple of variations of an ear for the for
> web servers such as Webspear, Weblogic etc... To handle this, we use
> Maven profiles which only include the web server's required files before
> packaging. Is th
Yeah, I've used both approaches, overlays and profiles. We generally use
profiles because they are faster, especially if you don't need to always
create all container variants; if you need them all, always, then overlays
might be just as good. (Right, overlays work with wars not sure about
ears.)
> Yeah, I've used both approaches, overlays and profiles. We generally use
> profiles because they are faster, especially if you don't need to always
I'd probably just create multiple ear artifact projects and include
the Java EE target name in the artifactId eg my-app-weblogic. Then
include your
e for all varieties.
Thanks,
David
-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com]
Sent: Tuesday, January 19, 2010 11:13 AM
To: Maven Users List
Subject: Re: Multiple Artifacts Question
> Yeah, I've used both approaches, overlays and profiles. We generally u
.@gmail.com]
> Sent: Tuesday, January 19, 2010 11:13 AM
> To: Maven Users List
> Subject: Re: Multiple Artifacts Question
>
> > Yeah, I've used both approaches, overlays and profiles. We generally use
> > profiles because they are faster, especially if you don'
d number the same for all
> > varieties.
> >
> > Thanks,
> >
> > David
> >
> > -Original Message-
> > From: Wayne Fay [mailto:wayne...@gmail.com]
> > Sent: Tuesday, January 19, 2010 11:13 AM
> > To: Maven Users List
> > Subj
n for the ejb plugin.
Thanks,
David
-Original Message-
From: Manfred Moser [mailto:manf...@mosabuam.com]
Sent: Tuesday, January 19, 2010 12:43 PM
To: Maven Users List
Subject: Re: Multiple Artifacts Question
I have done the two approaches on bamboo.. and yes, i believe the cleanest
approa
Is this possible, I didn't see an overlay option for the
> ejb plugin.
>
> Thanks,
>
> David
>
> -Original Message-
> From: Manfred Moser [mailto:manf...@mosabuam.com]
> Sent: Tuesday, January 19, 2010 12:43 PM
> To: Maven Users List
> Subject: Re:
: Maven Users List
Subject: Re: Multiple Artifacts Question
I think you have stumbled onto why we use profiles. I was going to say that
what you have will work but you can endup with an explosion in the number of
artifacts. If you have lots of wars/ears/ejbs and they all run in lots of
containers
> the web servers. I would prefer not to have different EJB projects just for
> the web server. Is this possible, I didn't see an overlay option for the
> ejb plugin.
We're done this before (still using modules) by having one ejb project
with the common stuff and then one module each for the var
Regarding profiles/classifiers, we went down this path mostly because the
overlay approach took too long to build. Your building 1 + the number of
containers for everything...just took too long. Plus our devs really only
cared about a single container, i.e. one group uses jboss another uses
weblo
> overlay approach took too long to build. Your building 1 + the number of
> containers for everything...just took too long. Plus our devs really only
> cared about a single container, i.e. one group uses jboss another uses
> weblogic, etc. So profiles meant they could but just what they want fa
> way I rather not do that.
>
> Thanks again for your feedback. I do appreciate it!!
>
> Are there other examples of how to tackle this problem?
>
> Thanks,
>
> David
>
> -Original Message-
> From: David Hoffer [mailto:dhoff...@gmail.com]
> Sent: T
>I have to admit that I'm kinda curious what servers/versions you are
>targeting and what kinds of server-specific files you need to include.
>At this point, I'm finding that we very rarely need to go down this
>road.
Wayne, we have EBJ and JMS modules with specific config files for Jboss and
Web
Are you talking about vendor specific deployment descriptors? If so, there
shouldn't be a problem having them all bundled, as JBoss AS will ignore the
WLS specific DD for example. However, if you need different configurations
(the same file but in a different flavor) that's a different story.
/And
>Are you talking about vendor specific deployment descriptors? If so,
there
>shouldn't be a problem having them all bundled, as JBoss AS will ignore
the
>WLS specific DD for example. However, if you need different
configurations
>(the same file but in a different flavor) that's a different story.
Not combine. Put both files in the jar. The files not applicable should be
ignored by the appserver. I've seen this with JBoss and Websphere DDs is
some product.
/Anders
On Wed, Jan 20, 2010 at 16:04, wrote:
> >Are you talking about vendor specific deployment descriptors? If so,
> there
> >shou
> Yes, that is part of it. I was not aware that you can combine them.
> For example. Here is an example of one of our EJBs. Are you saying this
> can be combined? I apologize if this is a newbie question. I'm SCM
> person not a Java one. Thanks for your help!!! David
Yes, that's what he's sa
Yes you can combine different container config files, since they are named
distinctly that's no problem. But this doesn't solve the larger problem.
We often times do need to include/exclude different dependencies based on
the container. So since we are forced to detail with these container
differ
> I have an ejb project for which I need to generate an EJB jar (bean and
> interfaces) and a client jar (containing only the interfaces). I looked
> into using assemblies but that seems better suited for
I know its a huge hassle and very expensive to use Google, but try the
phrase "maven plugin
uggested.
Thanks for your help!
Regards,
Eric Adamson
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of nicolas de loof
Sent: Friday, January 18, 2008 1:22 PM
To: Maven Users List
Subject: Re: Multiple Artifacts, Same Source
Please correct me : what yo
Please correct me : what you need is a java 1.4 version of your java
1.5classes used on client / app server ?
Option 1 : compile with target = 1.4, so that same jar can be used on all
runtimes
Option 2 : use retrotranslator to backport your j5 classes to 1.4. This can
be auto-configured in maven t
> Since all JARs must contain this data
transfer object, I'm trying to decide the best way (or at least a very
good one) of keeping the three projects in sync.
Maybe I misunderstand your question but this sounds like an ordinary
maven multi module build. Are your sure that "all JARs must contain
On 18/01/2008, Adamson, Eric (DIT) <[EMAIL PROTECTED]> wrote:
> I'm relatively new to Maven 2, and am seeking advice regarding the
> following problem: I have written a data transfer object
> (MailMergeRequest) that will be passed (serialized to XML using Xstream)
> between web client, app server
artifact that zips the source, then
depend on this and dezip it for the other multiple artifacts.
Nicole
On 21/01/2008, Guillaume Lederrey <[EMAIL PROTECTED]> wrote:
>
> On 18/01/2008, Adamson, Eric (DIT) <[EMAIL PROTECTED]> wrote:
> > I'm relatively new to M
ct for release when
the project is on a CVS branch.
But with your remark, I will double and triple check !
Thanks for the hint !
> Another option would be to have an artifact that zips the source, then
> depend on this and dezip it for the other multiple artifacts.
>
> Nicole
>
Obviously Maven is designed with the one project = one artifact rule.
How would one deal with javadoc archives for instance? I have a bunch
of source that I want to pack into a jar but I also want to generate the
javadoc into a versioned zip file for separate distribution from the
code but I want
I am looking for a way to centrally manage and administer a single project dependency
that consists of multiple artifacts.
The problem is that in custom applications the dependency set quickly grows out of
control when multiple projects are created. For instance, when you want to add a
struts
If you check how the source plugin is working now, that's it. When the
javadoc plugin is able to generate a JAR, that will do it to and it
will be on by default for releases.
Basically, we call the goal in the "package" phase, and it registers
itself with the project, so that when install/deploy a
Mark van Holsteijn wrote on Wednesday, September 29, 2004 4:21 PM:
> I am looking for a way to centrally manage and administer a
> single project dependency that consists of multiple artifacts.
>
> The problem is that in custom applications the dependency set
> quickly grows out
I have three artifacts (war files) that need deployed to two servers.
I currently have a profile for each (to apply filters) and I am able to
build them individually using the -P profile option.
I have one antrun task in the build section that deploys one artifact
based on the profile that is run
Hi,
I've got a single pom.xml from which I want to create multiple artifacts. I
want to package the source as a JAR (so other projects can mark it is as a
dependency) as well as a WAR for deploying directly.
I'm able to create 2 packages currently, but when I try to include the JAR
in
I'll throw this out with the disclaimer that this is not best
practices.
The toughest part of a migration to m2 IMO is the reordering of the
source tree in order to deal with the single artifact per project.
I've found that in my particular case, there are certain instances of
this where t
I'm a past user of Maven 1 on some simple projects and am trying to
come up to speed on Maven 2 on a project that has multiple artifacts
and I'm not sure how to proceed.
I read somewhere that the model of Maven is one artifact per project,
which indicates that I should break it
Hi Vladimir
I think in Maven 2 you would be expected to write a multi module project.
Documentation for this can be found in:
1) The "Better Builds with Maven" Book (which is free of charge):
http://www.mergere.com/m2book_download.jsp
1) Multiple Module Projects at
http://maven.apache.org/plug
I admit it, I'm now completely confused about lifecycle phases and goals and
packages.
The first thing is that I need to create a JAR archive of my code. Ok, this
works fine using the standard stuff.
In a second step, I need to create a source code archive of my code. Ok, this I
can get workin
a single pom.xml from which I want to create multiple artifacts. I
> want to package the source as a JAR (so other projects can mark it is as a
> dependency) as well as a WAR for deploying directly.
>
> I'm able to create 2 packages currently, but when I try to include the JAR
&
See <http://maven.apache.org/plugins/maven-assembly-plugin/>
>
> On Tue, Jul 21, 2009 at 1:09 PM, Chetan Sarva wrote:
> > Hi,
> >
> > I've got a single pom.xml from which I want to create multiple artifacts.
> I
> > want to package the source as a JAR
Chetan Sarva wrote:
> While it feels like unnecessary overhead, having the second project makes
> things a bit more flexible in the end.
>
You'll find that having your code split apart will also lead you down
the path to better interfaces. So, that extra overhead will pay big
dividends in the f
Hi,
i have the following question:
I have to deliver a package with different configurations for different
environments, to make things simple let us talk about a database
connection for test, development and production.
So the result of the build will be:
package-1.0-dev.tar.gz
package-1.0
d dll-project'dll to appropriate space in
the plugin. Not sure how to build the plugin thru maven thou.
-D
On 3/22/06, Dale King <[EMAIL PROTECTED]> wrote:
>
> I'm a past user of Maven 1 on some simple projects and am trying to
> come up to speed on Maven 2 on a proje
I am currently using the maven ant tasks (and loving it) to build a multiple
module CORBA based application but I have one issue:
When I build I need to generate multiple artifacts:
MyModule-lib.zip (stores ccp libs,corba idls, and includes)
MyModule.jar (java client)
MyModuleHelp.jar (help
Guys,
I was looking for a faq or doc that spelled out the options for those of
us who have single source trees but need to produce multiple artifacts
but can't find one.
I realize that my #1 option is to split the tree (this is in fact that
path I will pursue), but I also want to be ab
t; and state something like,
>
> "I split the source tree due to the fact that there are no workarounds
> in maven2 for producing multiple artifacts from a single source tree."
>> That's not entirely true. We frown up producing multiple primary
>> artifacts f
Sent: Tuesday, November 08, 2005 9:36 AM
To: 'Maven Users List'
Subject: RE: [M2] single source tree - multiple artifacts - summary
ofoptions
>What are the artifacts that you want to produce?
The first use case is as follows.
I have a single source tree from which 5 jars are pro
to check it out as well.
>
> In a multi-proj setup how do I get a class from a "common" tree into the
> jar of another sub proj?
>
>
> > I realize that my #1 option is to split the tree (this is in fact that
> > path I will pursue), but I also want to be able to de
You can use the assembly plugin to do the distribution archive.
However, it can't be attached to the lifecycle in its current release
(a version that does is in SVN now and is being tested and
documented).
A workaround is to run:
mvn assembly:assembly install
which will still attach the assembly a
But there is no way for me to insert a new lifecycle phase?
Chris
Brett Porter <[EMAIL PROTECTED]> wrote: You can use the assembly plugin to do
the distribution archive.
However, it can't be attached to the lifecycle in its current release
(a version that does is in SVN now and is being tested
bind assembly:attach as the last execution in package phase, of course you
need to configure your assembly descriptor.
-D
On 1/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> But there is no way for me to insert a new lifecycle phase?
>
> Chris
>
> Brett Porter <[EMAIL PROTECTED]> wrote:
That sounds promising. I'll check on that very shortly.
I still have a couple other major issues for which I probably will need a
custom lifecycle phase. For example, I need to to execute javadoc:javadoc and
javadoc:jar whenever "mvn package" is run. The complexity here is that both
need differ
http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/using-components.html
Regards,
Stevo.
On Tue, Oct 20, 2009 at 8:39 PM, Karl Heinz Marbaise wrote:
> Hi,
>
> i have the following question:
>
> I have to deliver a package with different configurations for different
> environme
are you talking about maven-ant-plugin?
-D
On 4/28/06, jmaxwell <[EMAIL PROTECTED]> wrote:
I am currently using the maven ant tasks (and loving it) to build a
multiple
module CORBA based application but I have one issue:
When I build I need to generate multiple artifacts:
MyModule-l
Dan,
I am using the "Maven 2.0.4 Tasks for Ant".
Cheers,
Jeff
--
View this message in context:
http://www.nabble.com/Maven-Ant-Tasks-and-Multiple-artifacts-in-one-POM-t1525854.html#a4147709
Sent from the Maven - Users forum at
the alternative ( my be not desirable by you ) is to create one maven
project to call your ant's build which
creates multiple artifacts?
-Dan
On 4/28/06, jmaxwell <[EMAIL PROTECTED]> wrote:
Dan,
I am using the "Maven 2.0.4 Tasks for Ant".
Cheers,
Jeff
--
View th
n you could have a pom similar to this:
4.0.0
${mymodule.groupId}
${mymodule.name}
${mymodule.version}
${mymodule.version}-lib
zip
dan tran wrote:
>
> the alternative ( my be not desirable by you ) is to create one maven
> project to call your ant's build which
> crea
from it as ant properties like this:
The version is ${maven.project.version}
dan tran wrote:
the alternative ( my be not desirable by you ) is to create one maven
project to call your ant's build which
creates multiple artifacts?
-Dan
On 4/28/06, jmaxwell <[EMAIL PROTECTED]> wro
e other way around. If you define your pom as a
> reference in your ant script like this:
>
>
> Then you can reference the values from it as ant properties like this:
>The version is ${maven.project.version}
>
>> dan tran wrote:
>>> the alternative ( my b
I have three artifacts (war files) that need deployed to two servers.
I currently have a profile for each (to apply filters) and I am able to
build them individually using the -P profile option.
I have one antrun task in the build section that deploys one artifact
based on the profile that is run
On Tue, 2005-11-08 at 09:02 -0600, Ruel Loehr wrote:
> Guys,
>
> I was looking for a faq or doc that spelled out the options for those of
> us who have single source trees but need to produce multiple artifacts
> but can't find one.
What are the artifacts that you want to pro
d, and I can see them in the target/classes
directory, but they don't appear in the `jar`.
2. When the `jar` is deployed to my local repository, it gets renamed from
a `jar` to an `so` because of the project packaging.
Thoughts?
--
View this message in context:
http://maven.40175.n5.nabble
Hi Vladimir
I have tried to answer your question on your other email...
Patrick
On 15/02/07, VLADIMIR TERZIC <[EMAIL PROTECTED]> wrote:
I have three artifacts (war files) that need deployed to two servers.
I currently have a profile for each (to apply filters) and I am able to
build them indiv
Hi vladimir,
On 2/15/07, VLADIMIR TERZIC <[EMAIL PROTECTED]> wrote:
I would like to be able to build and deploy all of them at the same
time.
you could do a third profile, configuring the maven-deploy-plugin to perform
the deploy with 2 (or more) different execution configurations.
this is
>
>
>
>
> ...
>
>
> However, this doesn't quite give me the behavior I want. There are two
> problems:
>
> 1. The `jar` that is created doesn't contain any of the Ja
Hello.
I'm not sure profiles are exactly what I need. I'd like to build with a
single set of pom.xml (for several modules), and in a single run, all the
artifacts of a project. A typical project is a JEE application set, with
several EARs, each of them holding one or more WARs and EJB-JARs, and
Hello list,
I have a project containing multiple artifacts which need to be unpacked.
These unpacked artifacts need to be filtered and afterwards packaged
together in a zip archive.
I tried to use the assembly plugin to perform this task.
In my assembly descriptor xml I put the following
81 matches
Mail list logo