[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-3518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Grégory Joseph updated MAGNOLIA-3518:
-------------------------------------

    Description: 
With additions being made to the module descriptor, it's becoming obvious that 
we could generate module descriptors. Most of the current information is 
redundant with the pom (or deducible), and most new information (components, 
...) can be derived from analyzing the sources. (annotations, interfaces)

Such a Maven plugin should ideally "merge" with a possibly existing module 
descriptor, so that one could still manually set some information in a module 
descriptor (properties, perhaps). OTOH, the plugin configuration will probably 
allow setting such values, so maybe that's not needed at all.

Deriving module name: use artifactId, if prefixed by {{magnolia-module-}}, 
remove prefix.
Finding components: we could use APT (Annotation Processor Tool: 
http://download.oracle.com/javase/1.5.0/docs/guide/apt/GettingStarted.html - 
there's actually a Maven plugin: http://mojo.codehaus.org/apt-maven-plugin/) to 
find {{@Component}}. Marking some of our interfaces with it might even reduce 
the need for the annotation (i.e we could mark {{ObservedManager}} with such an 
annotation)

http://wiki.magnolia-cms.com/display/DEV/Module+Descriptor+Generator+%28maven+plugin%29

  was:
With additions being made to the module descriptor, it's becoming obvious that 
we could generate module descriptors. Most of the current information is 
redundant with the pom (or deducible), and most new information (components, 
...) can be derived from analyzing the sources. (annotations, interfaces)

Such a Maven plugin should ideally "merge" with a possibly existing module 
descriptor, so that one could still manually set some information in a module 
descriptor (properties, perhaps). OTOH, the plugin configuration will probably 
allow setting such values, so maybe that's not needed at all.

Deriving module name: use artifactId, if prefixed by {{magnolia-module-}}, 
remove prefix.
Finding components: we could use APT (Annotation Processor Tool: 
http://download.oracle.com/javase/1.5.0/docs/guide/apt/GettingStarted.html - 
there's actually a Maven plugin: http://mojo.codehaus.org/apt-maven-plugin/) to 
find {{@Component}}. Marking some of our interfaces with it might even reduce 
the need for the annotation (i.e we could mark {{ObservedManager}} with such an 
annotation)


> Create a Maven plugin to generate module descriptors
> ----------------------------------------------------
>
>                 Key: MAGNOLIA-3518
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3518
>             Project: Magnolia
>          Issue Type: Task
>      Security Level: Public
>          Components: core
>            Reporter: Grégory Joseph
>            Assignee: Philipp Bärfuss
>             Fix For: 5.0
>
>
> With additions being made to the module descriptor, it's becoming obvious 
> that we could generate module descriptors. Most of the current information is 
> redundant with the pom (or deducible), and most new information (components, 
> ...) can be derived from analyzing the sources. (annotations, interfaces)
> Such a Maven plugin should ideally "merge" with a possibly existing module 
> descriptor, so that one could still manually set some information in a module 
> descriptor (properties, perhaps). OTOH, the plugin configuration will 
> probably allow setting such values, so maybe that's not needed at all.
> Deriving module name: use artifactId, if prefixed by {{magnolia-module-}}, 
> remove prefix.
> Finding components: we could use APT (Annotation Processor Tool: 
> http://download.oracle.com/javase/1.5.0/docs/guide/apt/GettingStarted.html - 
> there's actually a Maven plugin: http://mojo.codehaus.org/apt-maven-plugin/) 
> to find {{@Component}}. Marking some of our interfaces with it might even 
> reduce the need for the annotation (i.e we could mark {{ObservedManager}} 
> with such an annotation)
> http://wiki.magnolia-cms.com/display/DEV/Module+Descriptor+Generator+%28maven+plugin%29

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




----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to