cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-3778) cxf-wadl2java-plugin (maven) does not generate an implementing service-class, neither with <impl>true</impl> nor with <extraarg>-impl</extraarg>
Date Thu, 01 Sep 2011 17:06:10 GMT

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

Sergey Beryozkin commented on CXF-3778:
---------------------------------------

Works for me on Windows too.

> mvn -version

Apache Maven 3.0.3 (r1075438; 2011-02-28 17:31:09+0000)
Maven home: C:\Work\apache-maven-3.0.3-bin\apache-maven-3.0.3\bin\..
Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
Java home: C:\Work\Java\jdk1.6.0_26\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

in systest/jaxrs I add <interface>true</interface> and <impl>true</impl>
to a wadl option, then


> mvn clean generate-sources

followed by

C:\Work\apache\cxf\trunk\systests\jaxrs>dir target\generated\src\main\java\org\a
pache\cxf\systest\jaxrs\codegen\service
 Volume in drive C is OS
 Volume Serial Number is DAD2-21F9

 Directory of C:\Work\apache\cxf\trunk\systests\jaxrs\target\generated\src\main\
java\org\apache\cxf\systest\jaxrs\codegen\service

01/09/2011  17:58    <DIR>          .
01/09/2011  17:58    <DIR>          ..
01/09/2011  17:58               486 BookStore.java
01/09/2011  17:58               321 BookStoreImpl.java

May be updating to the latest maven 3 version can help ?
If not then please checkout CXF source from the trunk,
do

mvn -Pfastinstall 

in the trunk and then go to 

systest/jaxrs

and do 'mvn clean generate-sources' and then update pom to try -interface...

Let me know please if you can get to the bottom of it

> cxf-wadl2java-plugin (maven) does not generate an implementing service-class, neither
with <impl>true</impl> nor with <extraarg>-impl</extraarg>
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-3778
>                 URL: https://issues.apache.org/jira/browse/CXF-3778
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.4.1, 2.4.2
>         Environment: Maven 3.0-SNAPSHOT
> Oracle Java jdk1.6_24
>            Reporter: Oliver Jelinski
>         Attachments: RestTestService.wadl, RestTestService.xsd
>
>
> cxf-wadl2java-plugin (maven) does not generate an implementing service-class, neither
with <impl>true</true> nor with <extraarg>-impl</extraarg>.
> For example with these declarations:
> ...
>   <properties>
>     <cxf.version>2.4.2</cxf.version>
>   </properties>
>   <dependencies>
>     <dependency>
>       <groupId>org.apache.cxf</groupId>
>       <artifactId>cxf-rt-frontend-jaxrs</artifactId>
>       <version>${cxf.version}</version>
>     </dependency>
>   </dependencies>
> ...
>             <plugin>
>                 <groupId>org.apache.cxf</groupId>
>                 <artifactId>cxf-wadl2java-plugin</artifactId>
>                 <version>${cxf.version}</version>
>                 <executions>
>                     <execution>
>                         <id>generate-sources</id>
>                         <phase>generate-sources</phase>
>                         <configuration>
>                             <sourceRoot>${basedir}/target/generated-sources/cxf-rs</sourceRoot>
>                             <wadlOptions>
>                                 <wadlOption>
>                                     <wadl>${basedir}/src/main/resources/wadl/RestTestService.wadl</wadl>
> 					                <extraargs>
> 					                    <extraarg>-impl</extraarg>
> 					                    <extraarg>-interface</extraarg>
> 					                    <extraarg>-verbose</extraarg>
> 					                </extraargs>
>                                     
>                                     <packagename>rest.test.service</packagename>
>                                     <schemaPackagenames>
>                                        <schemaPackagename>http://example.com/rest-test=rest.test.types</schemaPackagename>
>                                     </schemaPackagenames>
>                                     
>                                 </wadlOption>
>                             </wadlOptions>
>                         </configuration>
>                         <goals>
>                             <goal>wadl2java</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
> ...
> Build is sucessful, the interface is generated, as well as the xml-types, but the impl
class isn't.

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

        

Mime
View raw message