You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Kanakambaran (JIRA)" <ji...@codehaus.org> on 2005/06/09 08:49:09 UTC

[jira] Created: (MAVEN-1617) Maven - Copying classes from different projects into same jar

Maven - Copying classes from different projects into same jar
-------------------------------------------------------------

         Key: MAVEN-1617
         URL: http://jira.codehaus.org/browse/MAVEN-1617
     Project: maven
        Type: Task
  Components: core  
    Versions: 1.0.2    
    Reporter: Kanakambaran
    Priority: Blocker


My project structure is as below

Project
   |-Project.xml and maven.xml
   |-Client
       |-Project.xml
   |-Server
       |-Project.xml 
   |-ValueObjects
       |-Project.xml 

where the ValueObjects (VO) are a dependency for both the client and server projects.

Also I require the VO classes to be present in both the client and server jars since the VOs would be referenced from both client and server. I require separate jars for client and server.

Maven does not allow to specify multiple source directories for a project. Since VO is given as a dependency for both client and server, the VO project is being built first. I want the classes generated here to be present in both the client and server jars.

How can this be achieved ?

Thanks in advance.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MAVEN-1617) Maven - Copying classes from different projects into same jar

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MAVEN-1617?page=all ]
     
Brett Porter closed MAVEN-1617:
-------------------------------

    Resolution: Won't Fix

please use the Maven Users List for asking questions - JIRA is for bugs.

the recommended practice would be to keep VO.jar separate, and add it to the classpath of your client and server alongside the other jars.

IF you want to merge them, you should use some custom ant script with a zipfileset. The javaapp plugin at sourceforce does something similar.

> Maven - Copying classes from different projects into same jar
> -------------------------------------------------------------
>
>          Key: MAVEN-1617
>          URL: http://jira.codehaus.org/browse/MAVEN-1617
>      Project: maven
>         Type: Task
>   Components: core
>     Versions: 1.0.2
>     Reporter: Kanakambaran
>     Priority: Blocker

>
>
> My project structure is as below
> Project
>    |-Project.xml and maven.xml
>    |-Client
>        |-Project.xml
>    |-Server
>        |-Project.xml 
>    |-ValueObjects
>        |-Project.xml 
> where the ValueObjects (VO) are a dependency for both the client and server projects.
> Also I require the VO classes to be present in both the client and server jars since the VOs would be referenced from both client and server. I require separate jars for client and server.
> Maven does not allow to specify multiple source directories for a project. Since VO is given as a dependency for both client and server, the VO project is being built first. I want the classes generated here to be present in both the client and server jars.
> How can this be achieved ?
> Thanks in advance.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org