[ 
https://issues.apache.org/jira/browse/TRINIDAD-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001260#comment-13001260
 ] 

Leonardo Uribe commented on TRINIDAD-1409:
------------------------------------------

Attached to this issue there is another alternative for 2.0.x branch. 

After explore some alternatives like create an extension for myfaces builder 
plugin and do some hack like codehaus javascript plugin, I think it is more 
convenient give the capability to understand the metadata on trinidad-build to 
myfaces-builder-plugin, so we can add this on trinidad-api pom.xml:

      <plugin>
          <groupId>org.apache.myfaces.buildtools</groupId>
          <artifactId>myfaces-builder-plugin</artifactId>
          <version>1.0.9-SNAPSHOT</version>
          <executions>
              <execution>
                  <goals>
                      <goal>build-metadata</goal>
                  </goals>
                  <configuration>
                      
<readMavenFacesPluginMetadata>true</readMavenFacesPluginMetadata>
                  </configuration>
              </execution>
          </executions>
      </plugin>

And myfaces-metadata.xml file will be generated correctly. The idea is just 
copy the parsing code found on trinidad maven-faces-plugin in a way that for 
sync this code we just check for differences using a diff tool. In this way, we 
can use myfaces-builder-plugin for create trinidad components without change 
the default plugin or do too much changes on trinidad code (just add some 
@JSFComponent annotations on base classes).

If no objections I'll commit this code soon. (Only on trinidad 2.0.x branch).

> Add myfaces-builder-annotations to trinidad trunk 1.2.x, so trinidad jars 
> could have myfaces-metadata.xml, making possible use builder plugin on 
> trinidad sandbox
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-1409
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1409
>             Project: MyFaces Trinidad
>          Issue Type: Task
>          Components: Build, Components
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>         Attachments: TRINIDAD-1409-v1-maven-faces-plugin.patch, 
> TRINIDAD-1409-v1-trinidad.patch, 
> TRINIDAD-1409-v2-myfaces-builder-plugin.patch, TRINIDAD-1409-v2-trinidad.patch
>
>
> The first step to use myfaces-builder-plugin on trinidad is add annotations 
> on trinidad code and try use it on trinidad-sanbox. Please note that the 
> change proposed here does not change the generation procedure using trinidad 
> maven-faces-plugin (includes component classes, tag classes and xml config 
> files), just add the necessary information to generate myfaces-metadata.xml 
> file, making it easier in the future to change the build procedure.
> To do that, the idea is change maven-faces-plugin, adding builder plugin 
> annotations when generating component files and add the necessary information 
> to non generated component files.
> I'll add the advance on this work here, but before commit something it is 
> better ask trinidad community about it.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to