Hi, First, you should know that maven provides some "best practices" and philosophy. So, in the maven philosophy, if you have two artifacts to produce, then you would split your projects to locate the code according to this, then define a pom for each. Once done with, you would certainly have a parent pom that would simplify the multimodules build.
Having said that, what you ask for remembers me of the maven-ejb-plugin packaging type. You can specify rules to exclude/include some things for the client version (say interfaces and BO most of the time) and produce two artifacts: one for the client and one for the server. Isn't your project an ejb one? If so, then see http://maven.apache.org/plugins/maven-ejb-plugin/index.html. If not, I guess the assembly plugin could do similar things : http://maven.apache.org/plugins/maven-assembly-plugin/. Cheers. 2008/9/18 mscarpentier <[EMAIL PROTECTED]> > > Hello there! I'm having some problems to figure out how to manage the > following situation. > The project was being packaged with ant, and it uses to create 2 JARs (for > example zaraza.jar and zaraza-client.jar). > To begin with, I replace the classpath generation of the ant file with the > maven-ant-task, and now the dependencies are solved by Maven 2. > I wanted now to provide the zaraza.jar and the zaraza-client.jar for other > projects, but I'm being unable to understand how must a pom.xml be in order > to take care of two different JARs in the same project. > The zaraza-client.jar is a subset of many classes that are found in the > zaraza.jar as well, so I don't think that a "separation" would be possible. > Any idea? > -- > View this message in context: > http://www.nabble.com/Deploying-two-jars-in-the-same-project-tp19557996p19557996.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
