[ http://jira.codehaus.org/browse/MXMLBEANS-16?page=all ]

Brett Porter moved MOJO-113 to MXMLBEANS-16:
--------------------------------------------

      Version:     (was: 2.0)
    Component:     (was: xmlbeans)
          Key: MXMLBEANS-16  (was: MOJO-113)
      Project: Maven 2.x Xmlbeans Plugin  (was: Mojo)

> add install task to plugin
> --------------------------
>
>          Key: MXMLBEANS-16
>          URL: http://jira.codehaus.org/browse/MXMLBEANS-16
>      Project: Maven 2.x Xmlbeans Plugin
>         Type: Improvement

>  Environment: maven 2.0 on linux
>     Reporter: Dan Allen
>     Assignee: Corridor Software Developer
>     Priority: Critical

>
>
> The xmlbeans plugin falls sort in terms of using the generated classes in the 
> same maven module.
> The plugin can generate the sources, compile them and create a jar file, but 
> then there is no way to put that jar file into the classpath for compiling 
> the other java files in the src/main/java or src/test/java directory.  One 
> way around this problem is to make the output directory the same as the 
> ${project.build.outputDirectory}, however the problem there is that it is 
> necessary to regenerate the xmlbean sources on EVERY maven build cycle.  It 
> would be far better to have a seperate goal to generate the xmlbeans sources, 
> compile them, jar them up and then install them in the local repository so 
> that it is possible to use the resulting jar as a dependency in the same 
> module (or other modules).
> Example case:
> schema files are in src/main/xml
> xmlbeans plugin is configured to run during the generate-sources goal
> the compiled classes are placed in ${project.build.outputDirectory}
> the sources in src/main/java are compiled into 
> ${project.build.outputDirectory}
> the package is built, which contains the generated classes from the xmlbeans 
> plugin
> Problems with this case:
> no clean seperation
> requirement to build xmlbeans sources on each compile
> cannot install resulting jar and have project depend on it

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

Reply via email to