[jira] Commented: (AXIS2-1302) axis2-aar-maven-plugin/axis2-wsdl2code-maven-plugin combination creates aar file with services.xml in wrong location

2007-06-27 Thread Davanum Srinivas (JIRA)

[ 
https://issues.apache.org/jira/browse/AXIS2-1302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508656
 ] 

Davanum Srinivas commented on AXIS2-1302:
-

Looks like Jochen came up with a workaround. Marking as won't fix.

thanks,
dims

> axis2-aar-maven-plugin/axis2-wsdl2code-maven-plugin combination creates aar 
> file with services.xml in wrong location
> 
>
> Key: AXIS2-1302
> URL: https://issues.apache.org/jira/browse/AXIS2-1302
> Project: Axis 2.0 (Axis2)
>  Issue Type: Bug
>  Components: Tools
>Affects Versions: nightly
>Reporter: Terry Cox
>Assignee: Jochen Wiedmann
>Priority: Minor
>
> If you create source code from a WSDL file using the 
> axis2-wsdl2code-maven-plugin, the services.xml file is created in a resources 
> folder, along with a copy of the WSDL.
> If you now build the source using Maven2 and then package using 
> axis2-aar-maven-plugin, the services.xml file ends up in the root of the aar 
> when it should be in META-INF. The correct solution would probably be to have 
> axis2-wsdl2code-maven-plugin put the original files into resources/META-INF 
> so the Maven build copies them correctly.
> Similarly, the following problem occurs during code generation:
> Say we have an outputDirectory of 'src/main'. After generation, we get the 
> following heirarchy:
> src / main / resources
> src / main / src
> src / main / test
> however, Maven2 expects to find java source in a folder called 'java', so it 
> would be better to output the code into a folder that matches the language 
> selected:
> src / main / resources
> src / main / resources/META-INF
> src / main / java
> src / main / test
> By doing this, a single Maven2 POM file can be used to generate, compile and 
> package the service, as shown below:
> 
> 
>   4.0.0
>   com.foo.bar
>   echo_service
>   1.0-SNAPSHOT
>   Code generation from WSDL
>   
> 
>   xmlbeans
>   xbean
>   2.1.0
>   compile
> 
>   
>   stax
>   stax-api
>   1.0.1
>   
> 
>   axis2
>   axis2-kernel
>   SNAPSHOT
> 
> 
>   ws-commons
>   axiom-api
>   1.1.1
> 
>   
>   ws-commons
>   axiom-impl
>   SNAPSHOT
>   
> 
>   ws-commons
>   neethi
>   1.0.1
> 
> 
>   org.apache.ws.commons
>   neethi
>   SNAPSHOT
> 
>   
>   wsdl4j
>   wsdl4j
>   1.5.3
>   
>   
>   
> 
>   
> org.apache.axis2.maven2
> axis2-wsdl2code-maven-plugin
> 1.0-SNAPSHOT
>   
>   
>   wsdl2code
>   
>   wsdl2code
>   
>   
>   
> 
>   true
>   true
>   true
>   true
>   true
>   com.foo.bar.echo  
>   wsdl/Echo.wsdl
>   src/main
>   both
>   xmlbeans
>   java
> 
>   
>   
> org.apache.axis2.maven2
> axis2-aar-maven-plugin
> 1.0-SNAPSHOT
>   
>   
>   package
>   
>   aar
>   
>   
>   
> 
>   target
>   echo
> 
>   
> 
>   
> 

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jira] Commented: (AXIS2-1302) axis2-aar-maven-plugin/axis2-wsdl2code-maven-plugin combination creates aar file with services.xml in wrong location

2007-04-30 Thread Jochen Wiedmann (JIRA)

[ 
https://issues.apache.org/jira/browse/AXIS2-1302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492762
 ] 

Jochen Wiedmann commented on AXIS2-1302:


The problem here is, that the target layout (directories resources, src, test) 
isn't specified by the Maven plugin, but by the general WSDL2Code component of 
Axis 2.

Nevertheless, it is also not required to have the requested layout. The 
maven-resources-plugin can very well be configured to put the services.xml file 
into the right location, for example like this:


  
${project.build.directory}/generated-resources/wsdl2code
  
 services.xml
  


  
${project.build.directory}/generated-resources/wsdl2code
  
 services.xml
  
  META-INF



> axis2-aar-maven-plugin/axis2-wsdl2code-maven-plugin combination creates aar 
> file with services.xml in wrong location
> 
>
> Key: AXIS2-1302
> URL: https://issues.apache.org/jira/browse/AXIS2-1302
> Project: Axis 2.0 (Axis2)
>  Issue Type: Bug
>  Components: Tools
>Affects Versions: nightly
>Reporter: Terry Cox
> Assigned To: Jochen Wiedmann
>Priority: Minor
>
> If you create source code from a WSDL file using the 
> axis2-wsdl2code-maven-plugin, the services.xml file is created in a resources 
> folder, along with a copy of the WSDL.
> If you now build the source using Maven2 and then package using 
> axis2-aar-maven-plugin, the services.xml file ends up in the root of the aar 
> when it should be in META-INF. The correct solution would probably be to have 
> axis2-wsdl2code-maven-plugin put the original files into resources/META-INF 
> so the Maven build copies them correctly.
> Similarly, the following problem occurs during code generation:
> Say we have an outputDirectory of 'src/main'. After generation, we get the 
> following heirarchy:
> src / main / resources
> src / main / src
> src / main / test
> however, Maven2 expects to find java source in a folder called 'java', so it 
> would be better to output the code into a folder that matches the language 
> selected:
> src / main / resources
> src / main / resources/META-INF
> src / main / java
> src / main / test
> By doing this, a single Maven2 POM file can be used to generate, compile and 
> package the service, as shown below:
> 
> 
>   4.0.0
>   com.foo.bar
>   echo_service
>   1.0-SNAPSHOT
>   Code generation from WSDL
>   
> 
>   xmlbeans
>   xbean
>   2.1.0
>   compile
> 
>   
>   stax
>   stax-api
>   1.0.1
>   
> 
>   axis2
>   axis2-kernel
>   SNAPSHOT
> 
> 
>   ws-commons
>   axiom-api
>   1.1.1
> 
>   
>   ws-commons
>   axiom-impl
>   SNAPSHOT
>   
> 
>   ws-commons
>   neethi
>   1.0.1
> 
> 
>   org.apache.ws.commons
>   neethi
>   SNAPSHOT
> 
>   
>   wsdl4j
>   wsdl4j
>   1.5.3
>   
>   
>   
> 
>   
> org.apache.axis2.maven2
> axis2-wsdl2code-maven-plugin
> 1.0-SNAPSHOT
>   
>   
>   wsdl2code
>   
>   wsdl2code
>   
>   
>   
> 
>   true
>   true
>   true
>   true
>   true
>   com.foo.bar.echo  
>   wsdl/Echo.wsdl
>   src/main
>   both
>   xmlbeans
>   java
> 
>   
>   
> org.apache.axis2.maven2
> axis2-aar-maven-plugin
> 1.0-SNAPSHOT
>   
>   
>   package
>   
>   aar
>   
>   
>   
> 
>   target
>   echo
> 
>   
> 
>   
> 

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]