One project, two outputs, how to do it?

2009-11-24 Thread Gajo Csaba

Hello,

Usually when I build a project and install it to my local repository, I 
have one jar file there. In one specific case, I would like two jars to 
be created, and they should both be installed into the repository. Is 
there a way to do this?


Creating two jars is not so much a problem, the problem is how to tell 
the project to use both during installation.


Regards, Csaba


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: One project, two outputs, how to do it?

2009-11-24 Thread Alexander
Two identical jar?

2009/11/24 Gajo Csaba csaba.g...@cosylab.com

 Hello,

 Usually when I build a project and install it to my local repository, I
 have one jar file there. In one specific case, I would like two jars to be
 created, and they should both be installed into the repository. Is there a
 way to do this?

 Creating two jars is not so much a problem, the problem is how to tell the
 project to use both during installation.

 Regards, Csaba


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 
Regards,
Alexander


Re: One project, two outputs, how to do it?

2009-11-24 Thread Gajo Csaba
No, different, one containing one part of the compiled code, the other 
the rest.



Alexander wrote:

Two identical jar?

2009/11/24 Gajo Csaba csaba.g...@cosylab.com

  

Hello,

Usually when I build a project and install it to my local repository, I
have one jar file there. In one specific case, I would like two jars to be
created, and they should both be installed into the repository. Is there a
way to do this?

Creating two jars is not so much a problem, the problem is how to tell the
project to use both during installation.

Regards, Csaba


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org






  



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: One project, two outputs, how to do it?

2009-11-24 Thread Aleksey Didik
But what about maven-assembly-plugin?All assemblies will be installed 
and deployed, not only main jar.


http://maven.apache.org/plugins/maven-assembly-plugin/usage.html

Getting started with the Assembly Plugin is pretty simple. If you're 
using one of the prefabricated assembly descriptors, you just tell it 
which one; if you're using a custom assembly descriptor, you give it the 
path to the descriptor. Note that a single invocation of the Assembly 
Plugin can actually produce assemblies from multiple descriptors, 
allowing you maximum flexibility to customize the suite of binaries your 
project produces. When the assembly is created it will use the 
assemblyId as the artifact's classifier and will attach the created 
assembly to the project and will be uploaded into the repository on an 
install and deploy goal.


Aleksey.

Gajo Csaba ?:
No, different, one containing one part of the compiled code, the other 
the rest.



Alexander wrote:

Two identical jar?

2009/11/24 Gajo Csaba csaba.g...@cosylab.com

 

Hello,

Usually when I build a project and install it to my local repository, I
have one jar file there. In one specific case, I would like two jars 
to be
created, and they should both be installed into the repository. Is 
there a

way to do this?

Creating two jars is not so much a problem, the problem is how to 
tell the

project to use both during installation.

Regards, Csaba


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org






  



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: One project, two outputs, how to do it?

2009-11-24 Thread Anders Hammar
Look at the far bottom of this page:
http://maven.apache.org/plugins/maven-jar-plugin/usage.html

/Anders

2009/11/24 Gajo Csaba csaba.g...@cosylab.com

 Hello,

 Usually when I build a project and install it to my local repository, I
 have one jar file there. In one specific case, I would like two jars to be
 created, and they should both be installed into the repository. Is there a
 way to do this?

 Creating two jars is not so much a problem, the problem is how to tell the
 project to use both during installation.

 Regards, Csaba


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org