Re: How to build multiple .jars from a single /src/ tree?

2020-10-16 Thread Anders Hammar
You can have a look at the source code for Maven itself. /Anders (mobile) Den fre 16 okt. 2020 16:45/dev /local/ca skrev: > Thank you Anders: > > Do you have an example, or can point me to one on github? > > On Fri, Oct 16, 2020 at 2:44 AM Anders Hammar wrote: > > > This is not the right way t

Re: How to build multiple .jars from a single /src/ tree?

2020-10-16 Thread /dev /local/ca
Thank you Anders: Do you have an example, or can point me to one on github? On Fri, Oct 16, 2020 at 2:44 AM Anders Hammar wrote: > This is not the right way to create two jars with Maven. It is possible to > do it, but you will likely run into other issues later on. > What you should do is crea

Re: How to build multiple .jars from a single /src/ tree?

2020-10-16 Thread Bernd Eckenfels
it’s a good idea to restructure your projects and source directories for clean separation. Gruss Bernd -- http://bernd.eckenfels.net Von: /dev /local/ca Gesendet: Friday, October 16, 2020 10:12:50 AM An: users@maven.apache.org Betreff: How to build multiple .jars

Re: How to build multiple .jars from a single /src/ tree?

2020-10-16 Thread Anders Hammar
This is not the right way to create two jars with Maven. It is possible to do it, but you will likely run into other issues later on. What you should do is create a multi-module project where you have one module for each jar artifact you want to create. There are numerous examples of multi-module

How to build multiple .jars from a single /src/ tree?

2020-10-16 Thread /dev /local/ca
Using Apache Maven, I want to know the simplest way to build mutliple jar files based on the package path from a single src/ directory hierarchy I have src/com/pkg-path-one/.../ and src/com/pkg-path-two/.../ I am required to build one jar from src/pkg-path-one, and another jar from src/com/pkg-pa

Package multiple jars with different main-classes per jar

2018-07-23 Thread e...@coderhacks.com
Hello! I am using maven-assembly-plugin to create a executable jar with all dependencies included. Now I added a new class into my project that does also has a main. I now like to create 2 jars in the package stage. Each one should have the appropriate main-class in the manifest. Is that pos

Re: How to Add multiple Jars

2013-02-28 Thread lrkwz
Take a look at https://github.com/lrkwz/konakart-mavenized -- View this message in context: http://maven.40175.n5.nabble.com/How-to-Add-multiple-Jars-tp5579644p5748729.html Sent from the Maven - Users mailing list archive at Nabble.com

Re: How to Add multiple Jars

2012-03-30 Thread lrkwz
bble.com/How-to-Add-multiple-Jars-tp5579644p5607803.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: How to Add multiple Jars

2012-03-20 Thread Wayne Fay
> Now, I have lib directory on my machine Which has around 20 the jars > related to Java Konakart API and some other API which i need to keep in > maven repository. Effectively this is like you are trying to convert from an Ant project with a lib folder to a Maven one. Read the first two bulletpo

Re: How to Add multiple Jars

2012-03-20 Thread Ron Wheeler
Thank You -- View this message in context: http://maven.40175.n5.nabble.com/How-to-Add-multiple-Jars-tp5579644p5579644.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-

How to Add multiple Jars

2012-03-20 Thread Ketan B
and some other API which i need to keep in maven repository. I'm new to maven . Please guide me How can I install it to repository. How can i cofigure pom.xml for this? Thank You -- View this message in context: http://maven.40175.n5.nabble.com/How-to-Add-multiple-Jars-tp5579644p5579644

Re: Create multiple JARs from different src directories

2009-12-04 Thread Gajo Csaba
Hello, I don't know specifically for the JAR plugin, but according to its website at http://maven.apache.org/plugins/maven-jar-plugin/usage.html you can configure which files to include/exclude. So you could create separate elements for each jar file you want to generate, and set their confi

Create multiple JARs from different src directories

2009-12-04 Thread florian . grunow
Hi there! I'm quite new to maven and have the following question: Maven generates test JARs from the test directories that can be specified via the build-helper-maven-plugin. Is it possible to generate seperate JARs (for integration tests in my case) from different test folders? I don't want e

Re: Installing Multiple JARs to Maven repository

2009-07-20 Thread Nayan Hajratwala
On Jul 20, 2009, at 2:55 PM, andrewkyng wrote: Hi... I have a question about installing multiple jars into a maven repository. For example, if I want to install Spring 2.5.6 and all its related jars, like spring-webmvc.jar, spring-jdbc.jar etc. What is the best way to organize the repository?

Installing Multiple JARs to Maven repository

2009-07-20 Thread andrewkyng
Hi... I have a question about installing multiple jars into a maven repository. For example, if I want to install Spring 2.5.6 and all its related jars, like spring-webmvc.jar, spring-jdbc.jar etc. What is the best way to organize the repository? The -DgroupId specifies the directory and the

Re: One Project, multiple jars

2008-10-31 Thread Wayne Fay
> I have a question - which plugin is best-seated for my problem. > Actually, there is one maven project. From this project I have to > pack: > > - An jar including some packages > - An other jar including some and other packages Generally you should split this into 2 (or more) Maven projects.

One Project, multiple jars

2008-10-31 Thread Halm Reusser
Hi all, I have a question - which plugin is best-seated for my problem. Actually, there is one maven project. From this project I have to pack: - An jar including some packages - An other jar including some and other packages Do anybody know, which plugin I should use for and may be know an ex

Re: Multiple Jars

2008-03-23 Thread Trenton Adams
Hi Stefano, Yes, that is the way I am doing it now. I have two projects, inside of one project. It works. :D And, I am convinced that maven is the way to go. But, like you say, there is a learning curve to wrap your mind around it. When you've been on crack (err um, ant) for so long, it

Re: Multiple Jars

2008-03-23 Thread Stefano Fornari
Hi Trenton, I have the same reaction at the beginning. Maven has definitely a steeper learning curve than ant. But if your projects grow, you'll start to love it and you will realize you cannot do without. Your doubts come from one of the biggest cultural changes (sorry to be so pontificating here

Re: Multiple Jars

2008-03-23 Thread Stephen Connolly
You don't have to install it in your local repository On Sun, Mar 23, 2008 at 12:26 AM, Trenton Adams <[EMAIL PROTECTED]> wrote: > Hi Wendy, > > Thanks for the suggestion. > > Yes, I am aware of that, but that is precisely what I am trying to > avoid. I don't want to make things more complex, by

Re: Multiple Jars

2008-03-22 Thread Trenton Adams
Okay, with the help of Wendy and someone named Brian, I'm a convert. :P Trenton Adams wrote: Jason van Zyl wrote: On 22-Mar-08, at 5:02 PM, Trenton Adams wrote: Jason van Zyl wrote: On 22-Mar-08, at 4:47 PM, Trenton Adams wrote: Jason van Zyl wrote: On 22-Mar-08, at 4:24 PM, Trenton Adam

Re: Multiple Jars

2008-03-22 Thread Trenton Adams
Jason van Zyl wrote: On 22-Mar-08, at 5:02 PM, Trenton Adams wrote: Jason van Zyl wrote: On 22-Mar-08, at 4:47 PM, Trenton Adams wrote: Jason van Zyl wrote: On 22-Mar-08, at 4:24 PM, Trenton Adams wrote: I agree that it's not more complex in every way. But, it seems like it is in some wa

Re: Multiple Jars

2008-03-22 Thread Trenton Adams
Hi Wendy, Thanks for the suggestion. Yes, I am aware of that, but that is precisely what I am trying to avoid. I don't want to make things more complex, by having a multiple step deployment process. I want "simple". I want simple, primarily because maven has been simple up until this point

Re: Multiple Jars

2008-03-22 Thread Jason van Zyl
Getting Started Guide: http://maven.apache.org/guides/getting-started/index.html On 22-Mar-08, at 5:02 PM, Trenton Adams wrote: Jason van Zyl wrote: On 22-Mar-08, at 4:47 PM, Trenton Adams wrote: Jason van Zyl wrote: On 22-Mar-08, at 4:24 PM, Trenton Adams wrote: I agree that it's not more

Re: Multiple Jars

2008-03-22 Thread Jason van Zyl
On 22-Mar-08, at 5:02 PM, Trenton Adams wrote: Jason van Zyl wrote: On 22-Mar-08, at 4:47 PM, Trenton Adams wrote: Jason van Zyl wrote: On 22-Mar-08, at 4:24 PM, Trenton Adams wrote: I agree that it's not more complex in every way. But, it seems like it is in some ways. For instance, it

Re: Multiple Jars

2008-03-22 Thread Wendy Smoak
On Sat, Mar 22, 2008 at 5:02 PM, Trenton Adams <[EMAIL PROTECTED]> wrote: > Dependencies pull from a remote repository. I don't want to pull from a > remote repository, I want to pull from modules themselves (locally), > into a combined WAR. Maven is repository based, true, but it first looks

Re: Multiple Jars

2008-03-22 Thread Trenton Adams
Jason van Zyl wrote: On 22-Mar-08, at 4:47 PM, Trenton Adams wrote: Jason van Zyl wrote: On 22-Mar-08, at 4:24 PM, Trenton Adams wrote: I agree that it's not more complex in every way. But, it seems like it is in some ways. For instance, it's looking to me that in order to actually get it

Re: Multiple Jars

2008-03-22 Thread Jason van Zyl
On 22-Mar-08, at 4:47 PM, Trenton Adams wrote: Jason van Zyl wrote: On 22-Mar-08, at 4:24 PM, Trenton Adams wrote: I agree that it's not more complex in every way. But, it seems like it is in some ways. For instance, it's looking to me that in order to actually get it to package my WAR w

Re: Multiple Jars

2008-03-22 Thread Trenton Adams
Jason van Zyl wrote: On 22-Mar-08, at 4:24 PM, Trenton Adams wrote: I agree that it's not more complex in every way. But, it seems like it is in some ways. For instance, it's looking to me that in order to actually get it to package my WAR with the JAR, I will have to deploy my code JAR to

Re: Multiple Jars

2008-03-22 Thread Jason van Zyl
On 22-Mar-08, at 4:24 PM, Trenton Adams wrote: I agree that it's not more complex in every way. But, it seems like it is in some ways. For instance, it's looking to me that in order to actually get it to package my WAR with the JAR, I will have to deploy my code JAR to a repository first,

Re: Multiple Jars

2008-03-22 Thread Trenton Adams
I agree that it's not more complex in every way. But, it seems like it is in some ways. For instance, it's looking to me that in order to actually get it to package my WAR with the JAR, I will have to deploy my code JAR to a repository first, then make it a dependency in my webapp, the packag

Re: Multiple Jars

2008-03-22 Thread Jason van Zyl
On 22-Mar-08, at 3:23 PM, Trenton Adams wrote: Yes, it definitely is simpler in some ways, but ends up being more complex, and less intuitive in many other ways. Kind of like a Mac in comparison to Windows. Mac is so dumbed down it becomes difficult to use to get the job done, in many othe

Re: Multiple Jars

2008-03-22 Thread Trenton Adams
Yes, it definitely is simpler in some ways, but ends up being more complex, and less intuitive in many other ways. Kind of like a Mac in comparison to Windows. Mac is so dumbed down it becomes difficult to use to get the job done, in many other ways. I found ant a lot easier in many ways. Th

Re: Multiple Jars

2008-03-22 Thread Jochen Wiedmann
On Sat, Mar 22, 2008 at 10:40 PM, Trenton Adams <[EMAIL PROTECTED]> wrote: > That's what I was about to do, but that really is a hack. No, it isn't. That's the suggested way to do it. > to be a better way than that. Isn't there? I thought maven would at > least have the functionality of an

Re: Multiple Jars

2008-03-22 Thread Trenton Adams
Thanks for the reply Wendy. That's what I was about to do, but that really is a hack. There's got to be a better way than that. Isn't there? I thought maven would at least have the functionality of ant. At the very least, is there a way of having two project files without having two full

Re: Multiple Jars

2008-03-22 Thread Wendy Smoak
On Sat, Mar 22, 2008 at 12:40 PM, Trenton Adams <[EMAIL PROTECTED]> wrote: > I have a webapp, and I want there to be a webapp WAR, and a developer > JAR, which only includes the class files. The JAR is needed for > compilations of other apps depending on the webapp. Split your project into mu

Multiple Jars

2008-03-22 Thread Trenton Adams
Hi Everyone, I'm new to maven. I've been reading documentation for the last two days, and I cannot, for the life of me, figure out how to create multiple jars in maven. I have tried profiles, which don't appear to support it, assembly, which appears to work, but I'm

Re: Installing Multiple Jars

2007-10-17 Thread Michael McCallum
why not a separate maven project? On Thursday 18 October 2007 08:13, Mark_E wrote: > Hello, > In one of my projects, I not only build the default project jar, but I > also invoke a simple Ant Task to jar some optional classes into another > jar. These classes cannot live in the default jar but I

Re: Installing Multiple Jars

2007-10-17 Thread Dennis Lundberg
Mark_E wrote: Hello, In one of my projects, I not only build the default project jar, but I also invoke a simple Ant Task to jar some optional classes into another jar. These classes cannot live in the default jar but I need to put them into the maven repository so that another project, that de

Installing Multiple Jars

2007-10-17 Thread Mark_E
install:install-file command on the command line. Thanks, Mark -- View this message in context: http://www.nabble.com/Installing-Multiple-Jars-tf4642654s177.html#a13260876 Sent from the Maven - Users mailing list archive at Nabble.com

multiple jars from the same source how [NC]

2007-03-28 Thread richard . leotard
Hi I try to make 2 jars from the same sources I do not succeed to add xml file and class file in the same jars. I suceed to put the xml,properties files etc... but not the specific classes How can I do ? Thank you very much for your help my pom.xml is

Re: pack multiple jars into one

2006-07-21 Thread Valerio Schiavoni
o that when i distribute it, my client has to deal with one jar file). How to do that? thanks in advance. -- View this message in context: http://www.nabble.com/pack-multiple-jars-into-one-tf1976655.html#a5422397 Sent from the Maven - Users forum at Nabb

Re: pack multiple jars into one

2006-07-21 Thread dcabasson
one jar file (so that when i distribute it, my client has to deal > with one jar file). How to do that? > -- View this message in context: http://www.nabble.com/pack-multiple-jars-into-one-tf1976655.html#a5430095 Sent from the Maven - Us

pack multiple jars into one

2006-07-20 Thread Eric Zhao
in context: http://www.nabble.com/pack-multiple-jars-into-one-tf1976655.html#a5422397 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Producing multiple jars and some directories: custom target?

2006-06-21 Thread Barrie Treloar
This error is because your assembly is not including any files to create. I'm having trouble getting the include tag in the assembly descriptor to work. I think I would have preferred the moduleSet includes to be instead of this custom : separated format. It probably would be nice to see s

Re: Producing multiple jars and some directories: custom target?

2006-06-21 Thread Barrie Treloar
And my bin.xml looks like this: > > bin > > dir > > false > > > > aardrock.cheetah.cheetah-core > aardrock.cheetah.launcherf > > > plugins/${artifactId} outputDirectory>

Re: Producing multiple jars and some directories: custom target?

2006-05-31 Thread Chris Eidhof
On 31 May, 2006, at 15:55 , Chris Eidhof wrote: But this doesn't work, when I do a: "mvn clean package assembly:directory" I get an error that I don't understand: OK, that was lame, I misspelled my module-names. But the next problem: I want to exclude a dependency in my moduleSet. Now, my m

Re: Producing multiple jars and some directories: custom target?

2006-05-31 Thread Chris Eidhof
On 31 May, 2006, at 13:34 , Wim Deblauwe wrote: Have you looked at the assembly plugin? That is exactly what I need :) I now got this in my pom.xml (in project/build/plugins): maven-assembly-plugin src/main/asse

Re: Producing multiple jars and some directories: custom target?

2006-05-31 Thread Wim Deblauwe
Have you looked at the assembly plugin? 2006/5/31, Chris Eidhof <[EMAIL PROTECTED]>: Hi everyone, I've been using Maven for about a month now, and there are a lot of things I like about it. A big hurray for convention over configuration! Also, I think the users-list is very helpful, I'm now a

Producing multiple jars and some directories: custom target?

2006-05-31 Thread Chris Eidhof
Hi everyone, I've been using Maven for about a month now, and there are a lot of things I like about it. A big hurray for convention over configuration! Also, I think the users-list is very helpful, I'm now at the point where I want to do custom things. I'm having the following structure:

Re: [m2] How to create multiple jars

2006-01-29 Thread Edwin Punzalan
Hi, This is what I have in mind about that... But first you should know how to configure the compiler plugin to use enable debug. I think the parameter debug is already deprecated. More info on compiler plugin configurations can be found here: http://maven.apache.org/plugins/maven-compiler

RE: [m2] How to create multiple jars

2006-01-27 Thread Ruel Loehr
0 ext 2011 Yahoo: ruelloehr Skype: ruelloehr AOL: dokoruel -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Thursday, January 26, 2006 9:49 PM To: Maven Users List Subject: RE: [m2] How to create multiple jars Sounds to me like he's setting the compiler debug flag

Re: [m2] How to create multiple jars

2006-01-27 Thread Paolo Perrucci
Hi Edwin, this is an extract of my build.xml that create the "debug" jar: classpathref="classpath"/> As you can see I use the javac ant task option to include/exclude the debug infos. Paolo Edwin Punzalan ha scritto: Thanks, I get what you want to do. But how do you produce the tw

Re: [m2] How to create multiple jars

2006-01-26 Thread dan tran
create 2 projects using same source tree ( change project.build.sourceRoot of both project point to the same tree) then tinker with the compiler plugin configuration. but you must have 2 diffrent artifact ids thou -Dan On 1/26/06, Edwin Punzalan <[EMAIL PROTECTED]> wrote: > > Thanks, I get wha

RE: [m2] How to create multiple jars

2006-01-26 Thread Brian E. Fox
Sounds to me like he's setting the compiler debug flag depending on the build. -Original Message- From: Edwin Punzalan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 26, 2006 8:43 PM To: Maven Users List Subject: Re: [m2] How to create multiple jars Thanks, I get what you want

Re: [m2] How to create multiple jars

2006-01-26 Thread Edwin Punzalan
Thanks, I get what you want to do. But how do you produce the two different jars? How do you set the "different options" that you said with ant? is there a config file or a command-line argument that "build_release" and "build_debug" uses? Paolo Perrucci wrote: Hi Edwin, in my existing a

Re: [m2] How to create multiple jars

2006-01-26 Thread Paolo Perrucci
Hi Edwin, in my existing ant build I have two tasks that compile the same sources (with different options) and create the jar files. I have a task named "build" that call sequentially the tasks "build_release" and "build_debug". After calling the "build" task I have two jars: .jar and .jar. Th

Re: [m2] How to create multiple jars

2006-01-26 Thread Edwin Punzalan
Hi, In your ant build, how do you setup your two jars? Is there a config file that should be changed for the debug infos? Or do you need to compile once for two jars? or do you recompile for the second jar? Or both? Please provide more info and maybe we can help. ^_^ Paolo Perrucci

[m2] How to create multiple jars

2006-01-24 Thread Paolo Perrucci
Hi all, to experiment with m2 I'm trying to define the pom for a "legacy" project build with ant. The existing ant build process create two jar: with and without debug infos. How can I use m2 to create the same jars without using the old ant build? Thanks Paolo

RE : Deploying Multiple jars in one go

2005-12-14 Thread Olivier Lamy
#x27;Maven Users List' Objet : Deploying Multiple jars in one go Hi, My project generates multiple jars (one global, one for interfaces only and one for the implementation classes only). How do I get the deploy and install goals to work on those 3 jars? Thanx in advan

Deploying Multiple jars in one go

2005-12-14 Thread Jean Safar
Hi, My project generates multiple jars (one global, one for interfaces only and one for the implementation classes only). How do I get the deploy and install goals to work on those 3 jars? Thanx in advance jean safar

Re: Building multiple jars with Maven

2004-03-03 Thread Jason van Zyl
one allowable entry for the source directory. If you have multiple jars being output where each JAR addresses a different concern then what Maven encourages is that you put these in separate projects. > > Will I have to resort to multiple project files (project-crypto.xml, >

Re: Building multiple jars with Maven

2004-03-03 Thread Eric Giguere
Hi there I would say if you like what Maven does and is, do the migration. I did it at my company. Basically, Maven is kind of a Super-Ant ( and much much more). There are multiple ways to make Maven do what you need. By design, it produces one artifact per project, so you could for instance ma

Building multiple jars with Maven

2004-03-02 Thread Brian Enigma
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I searched through the maven-users archive for my question and found something close to what I am looking for (http://nagoya.apache.org/eyebrowse/ReadMsg? [EMAIL PROTECTED]&msgId=808818), but either it does not quite fit my scenario or I do n

Generating Multiple JARs

2003-06-17 Thread Chris . Rauschuber
Hello, I've currently got maven building two projects, A and B, where B has a dependency on A. The compile goal works fine, but test does not build because B's tests reference A's Mock objects. Is there a way to generate two jars in A: one from source and one from test? Thanks, Chris -

Re: Building multiple jars in a project

2003-04-03 Thread Kasper Nielsen
Graham Leggett wrote: Hi all, From reading the docs, it seems to describe a goal to build a single jar. In my project I need to build two or three separate jar files - how do I get maven to do this? Regards, Graham you create 3 different projects, try searching the mailing list this has been

RE: Building multiple jars in a project

2003-04-03 Thread Stragand, George
rks for me. -Original Message- From: Graham Leggett [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 10:36 AM To: Maven Users List Subject: Building multiple jars in a project Hi all, From reading the docs, it seems to describe a goal to build a single jar. In my project I need to bu

Building multiple jars in a project

2003-04-03 Thread Graham Leggett
Hi all, From reading the docs, it seems to describe a goal to build a single jar. In my project I need to build two or three separate jar files - how do I get maven to do this? Regards, Graham -- - [EMAIL PROTECTED] "There's a moon