Raymond Feng wrote:
Hi,
Adding the following plugin into pom.xml will help you setup addtional
source/testSource folders:
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>add-test-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-test-source</goal> <!-- or add-source -->
</goals>
<configuration>
<sources>
<source>target/sdo-source</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
...
</plugins>
</build>
Thanks,
Raymond
Isn't having the tuscany-sdo-plugin (which is the plugin that generates
code in target/sdo-source) in the build section sufficient? At least it
works in testing/sca/itest/exceptionXbindingTest for example, I am
seeing target/sdo-source in the classpath, without having to add it
with build-helper-maven-plugin.
----- Original Message ----- From: "Yang ZHONG"
<[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, February 23, 2007 3:36 PM
Subject: [SCA] Java2WSDL source path and SDO integration
2 questions on Java2WSDL.
2-1. Source path
I use "mvn -Peclipse eclipse:eclipse" to generate .classpath for
Eclipse.
The source path is incomplete, therefore not only can't the project
compile, but also does the Test Case generate empty WSDL portType. (WSDL
content is not checked)
How to make this into .classpath please:
<classpathentry kind="src" path="target/sdo-source"/>
2-2. SDO integration
A Java class may be a static SDO. Not only may SDO have XSD info,
but also
could SDO know XSD location.
What do you think to enable all these options:
1. Option -importSchema: If XSD location is available, generate WSDL to
import that.
Axis(2) supports option "-C, --importSchema" (
http://ws.apache.org/axis/java/reference.html#Java2WSDLReference)
2. Option -importSDO: If XSD into is available, generate XSD using
SDO and
generate WSDL using Axis(2) to import that
3. Option -inlineSDO: If XSD info is available, generate WSDL using
Axis(2) with inline schema from SDO
--
Yang ZHONG
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]