axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron U'Ren (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4547) Maven2 axis2-wsdl2code-maven-plugin Does Not Bundle generated-sources Resource Files Created By XMLBeans
Date Fri, 06 Nov 2009 23:34:32 GMT
Maven2 axis2-wsdl2code-maven-plugin Does Not Bundle generated-sources Resource Files Created
By XMLBeans
--------------------------------------------------------------------------------------------------------

                 Key: AXIS2-4547
                 URL: https://issues.apache.org/jira/browse/AXIS2-4547
             Project: Axis 2.0 (Axis2)
          Issue Type: Improvement
          Components: databinding, Tools
    Affects Versions: 1.4.1
         Environment: Windows XP SP3
Apache Maven: 2.2.0
Java Version: 1.6.0_10
Axis WSDL2Code Plugin Version: 1.4.1
XMLBeans Version: 2.4.0
Axis Library Versions: 1.5.1
            Reporter: Aaron U'Ren
            Priority: Minor


Currently, the Maven2 plugin "axis2-wsdl2code-maven-plugin", which generates Java source code
from a WSDL file, adds the source files (in directory "/target/generated-sources/axis2/wsdl2code/src")
created during the "generate-sources" lifecycle phase as a source root in the Maven2 project
allowing them to be compiled and included in the project's "/target/classes" directory for
bundling and/or running.

I'm guessing that step happens in the "WSDL2CodeMojo" class here?
{code}
    private void fixCompileSourceRoots() {
        File srcDir = new File(outputDirectory, "src");
	    project.addCompileSourceRoot();
        project.addCompileSourceRoot(srcDir.getPath());
	}
{code}

However, it appears makes no comment on the equally needed "resources" directory that is generated
by XMLBeans and found at "/target/generated-sources/axis2/wsdl2code/resources". This directory
contains the class "TypeSystemHolder" and all of the *.xsb files that will be needed to actually
run any program that uses XMLBeans for data binding.

Right now I've found a work around by defining that path as a resource in the pom.xml file
as shown below:
{code}
    <resources>
      <resource>
        <directory>${project.build.directory}/generated-sources/axis2/wsdl2code/resources</directory>
        <includes>
          <include>**/**</include>
        </includes>
      </resource>
    </resources>
{code}

Maybe this is the correct way to handle this situation, but it would be nice if the Maven2
plugin would do this intuitively when it detects the XMLBeans data binding engine since it
seems to ALWAYS be needed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message