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
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
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
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
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
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
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
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
> 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
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-
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
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
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
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?
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
> 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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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]
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
And my bin.xml looks like this:
>
> bin
>
> dir
>
> false
>
>
>
> aardrock.cheetah.cheetah-core
> aardrock.cheetah.launcherf
>
>
> plugins/${artifactId} outputDirectory>
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
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
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
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:
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
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
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
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
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
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
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
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
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
#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
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
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,
>
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
-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
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
-
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
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
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
68 matches
Mail list logo