You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Johannes Carl?n (JIRA)" <ji...@codehaus.org> on 2006/01/10 16:39:02 UTC

[jira] Created: (ARCHETYPE-23) Possibility to create real multiple modules with Java sources

Possibility to create real multiple modules with Java sources
-------------------------------------------------------------

         Key: ARCHETYPE-23
         URL: http://jira.codehaus.org/browse/ARCHETYPE-23
     Project: Maven Archetype
        Type: Improvement

  Components: maven-archetype-plugin  
    Reporter: Johannes Carlén
 Assigned to: Jason van Zyl 


I'm lacking the possibility to be able to generate a real multimodule application i.e. an ear containing both a web module and an ejb module with java sources.

I know it is possible to list all classes as a <resource>, however when doing so I can't get the packageName to automatically be prepended to the java files path (src/main/java/<package>/.../App.java).

What it means is that I'd like to be able to mark the java files as source files also when doing multiple modules generations.



-- 
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] Commented: (ARCHETYPE-23) Possibility to create real multiple modules with Java sources

Posted by "Johannes Carl?n (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/ARCHETYPE-23?page=comments#action_55402 ] 

Johannes Carlén commented on ARCHETYPE-23:
------------------------------------------

Also somewhat related to this...

How about creating Java sources in different subpackages such as ${package}\model or ${package}\web ?

> Possibility to create real multiple modules with Java sources
> -------------------------------------------------------------
>
>          Key: ARCHETYPE-23
>          URL: http://jira.codehaus.org/browse/ARCHETYPE-23
>      Project: Maven Archetype
>         Type: Improvement

>   Components: maven-archetype-plugin
>     Reporter: Johannes Carlén
>     Assignee: Jason van Zyl

>
>
> I'm lacking the possibility to be able to generate a real multimodule application i.e. an ear containing both a web module and an ejb module with java sources.
> I know it is possible to list all classes as a <resource>, however when doing so I can't get the packageName to automatically be prepended to the java files path (src/main/java/<package>/.../App.java).
> What it means is that I'd like to be able to mark the java files as source files also when doing multiple modules generations.

-- 
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] Updated: (ARCHETYPE-23) Possibility to create real multiple modules with Java sources

Posted by "John Didion (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/ARCHETYPE-23?page=all ]

John Didion updated ARCHETYPE-23:
---------------------------------

    Attachment: MavenArchetypeMojo.java
                archetype.mdo
                DefaultArchetype.java

> Possibility to create real multiple modules with Java sources
> -------------------------------------------------------------
>
>          Key: ARCHETYPE-23
>          URL: http://jira.codehaus.org/browse/ARCHETYPE-23
>      Project: Maven Archetype
>         Type: Improvement

>   Components: maven-archetype-plugin
>     Reporter: Johannes Carlén
>     Assignee: Jason van Zyl
>  Attachments: DefaultArchetype.java, MavenArchetypeMojo.java, archetype.mdo
>
>
> I'm lacking the possibility to be able to generate a real multimodule application i.e. an ear containing both a web module and an ejb module with java sources.
> I know it is possible to list all classes as a <resource>, however when doing so I can't get the packageName to automatically be prepended to the java files path (src/main/java/<package>/.../App.java).
> What it means is that I'd like to be able to mark the java files as source files also when doing multiple modules generations.

-- 
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] Commented: (ARCHETYPE-23) Possibility to create real multiple modules with Java sources

Posted by "John Didion (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/ARCHETYPE-23?page=comments#action_57555 ] 

John Didion commented on ARCHETYPE-23:
--------------------------------------

I've modified archetype-core and archetype-plugin to provide this functionality for our projects. I'll attache the code I modified to get this to work. Here's an example of a multi-module archetype.xml:

{noformat}
<?xml version="1.0"?>
<archetype xmlns="http://maven.apache.org/Archetype/1.0.0">
  <id>archetype-webservice</id>
  <modules>
    <module>
      <dir>api</dir>
      <sources>
        <source>src/main/java/readme.txt</source>
      </sources>
    </module>
    <module>
      <dir>impl</dir>
      <sources>
        <source>src/main/java/readme.txt</source>
      </sources>
      <resources>
        <resource>src/main/resources/readme.txt</resource>
        <resource>src/main/resources/META-INF/PropertyMetadata.xml</resource>
        <resource>src/main/sql/readme.txt</resource>
      </resources>
      <testSources>
        <testSource>src/test/java/readme.txt</testSource>
      </testSources>
      <testResources>
        <testResource>src/test/resources/readme.txt</testResource>
        <testResource>src/test/sql/readme.txt</testResource>
      </testResources>
      <siteResources>
        <siteResource>src/site/site.xml</siteResource>
        <siteResource>src/site/apt/index.apt</siteResource>
      </siteResources>
    </module>
    <module>
      <dir>client</dir>
    </module>
    <module>
      <dir>webapp</dir>
      <resources>
        <resource>src/main/resources/log4j.xml</resource>
        <resource>src/main/webapp/WEB-INF/web.xml</resource>
      </resources>
      <testSources>
        <testSource>src/test/java/readme.txt</testSource>
      </testSources>
    </module>
  </modules>
</archetype>
{noformat}

> Possibility to create real multiple modules with Java sources
> -------------------------------------------------------------
>
>          Key: ARCHETYPE-23
>          URL: http://jira.codehaus.org/browse/ARCHETYPE-23
>      Project: Maven Archetype
>         Type: Improvement

>   Components: maven-archetype-plugin
>     Reporter: Johannes Carlén
>     Assignee: Jason van Zyl

>
>
> I'm lacking the possibility to be able to generate a real multimodule application i.e. an ear containing both a web module and an ejb module with java sources.
> I know it is possible to list all classes as a <resource>, however when doing so I can't get the packageName to automatically be prepended to the java files path (src/main/java/<package>/.../App.java).
> What it means is that I'd like to be able to mark the java files as source files also when doing multiple modules generations.

-- 
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