You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jason Rosenberg (JIRA)" <ji...@apache.org> on 2007/08/16 05:25:30 UTC

[jira] Created: (CXF-912) java2wsdl goal of the codegen plugin turns off all maven output if the 'quiet' tag is set...

java2wsdl goal of the codegen plugin turns off all maven output if the 'quiet' tag is set...
--------------------------------------------------------------------------------------------

                 Key: CXF-912
                 URL: https://issues.apache.org/jira/browse/CXF-912
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.1
         Environment: maven 2.0.7, cxf 2.1-incubator-SNAPSHOT
            Reporter: Jason Rosenberg


if I set the quiet arg to the java2wsdl goal of the cxf codegen plugin, it turns off all the output for everything maven does subsequently....

I can't see how or why this should be, in looking at the plugin source code.....unless the <quiet> tag has global meaning within maven in general?

Here's the maven pom.xml snippet that I'm using....If I don't set the quiet tag there, then my maven build does several things after running the java2wsdl, and there's lots of output....If I set the quiet tag, then I don't see anything else at all (not a peep) until maven completes (but it does seem to do more work, I can see the evidence of it in the generated build artifacts, etc.)...

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-codegen-plugin</artifactId>
        <dependencies>
          <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-frontend-jaxws</artifactId>
            <version>2.1-incubator-SNAPSHOT</version>
          </dependency>
        </dependencies>
        <executions>
          <execution>
            <id>generate-wsdl</id>
            <phase>process-classes</phase>
            <configuration>
              <className>com.myServiceImpl</className>
              <serviceName>MyService</serviceName>
              <outputFile>${basedir}/target/classes/wsdl/MyService.wsdl</outputFile>
              <classpath>${basedir}/target/classes</classpath>
              <quiet>true</quiet>
            </configuration>
            <goals>
              <goal>java2wsdl</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

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


[jira] Resolved: (CXF-912) java2wsdl goal of the codegen plugin turns off all maven output if the 'quiet' tag is set...

Posted by "maomaode (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

maomaode resolved CXF-912.
--------------------------

    Resolution: Fixed

> java2wsdl goal of the codegen plugin turns off all maven output if the 'quiet' tag is set...
> --------------------------------------------------------------------------------------------
>
>                 Key: CXF-912
>                 URL: https://issues.apache.org/jira/browse/CXF-912
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: maven 2.0.7, cxf 2.1-incubator-SNAPSHOT
>            Reporter: Jason Rosenberg
>            Assignee: maomaode
>
> if I set the quiet arg to the java2wsdl goal of the cxf codegen plugin, it turns off all the output for everything maven does subsequently....
> I can't see how or why this should be, in looking at the plugin source code.....unless the <quiet> tag has global meaning within maven in general?
> Here's the maven pom.xml snippet that I'm using....If I don't set the quiet tag there, then my maven build does several things after running the java2wsdl, and there's lots of output....If I set the quiet tag, then I don't see anything else at all (not a peep) until maven completes (but it does seem to do more work, I can see the evidence of it in the generated build artifacts, etc.)...
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.cxf</groupId>
>         <artifactId>cxf-codegen-plugin</artifactId>
>         <dependencies>
>           <dependency>
>             <groupId>org.apache.cxf</groupId>
>             <artifactId>cxf-rt-frontend-jaxws</artifactId>
>             <version>2.1-incubator-SNAPSHOT</version>
>           </dependency>
>         </dependencies>
>         <executions>
>           <execution>
>             <id>generate-wsdl</id>
>             <phase>process-classes</phase>
>             <configuration>
>               <className>com.myServiceImpl</className>
>               <serviceName>MyService</serviceName>
>               <outputFile>${basedir}/target/classes/wsdl/MyService.wsdl</outputFile>
>               <classpath>${basedir}/target/classes</classpath>
>               <quiet>true</quiet>
>             </configuration>
>             <goals>
>               <goal>java2wsdl</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
>   </build>

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


[jira] Assigned: (CXF-912) java2wsdl goal of the codegen plugin turns off all maven output if the 'quiet' tag is set...

Posted by "maomaode (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

maomaode reassigned CXF-912:
----------------------------

    Assignee: maomaode

> java2wsdl goal of the codegen plugin turns off all maven output if the 'quiet' tag is set...
> --------------------------------------------------------------------------------------------
>
>                 Key: CXF-912
>                 URL: https://issues.apache.org/jira/browse/CXF-912
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: maven 2.0.7, cxf 2.1-incubator-SNAPSHOT
>            Reporter: Jason Rosenberg
>            Assignee: maomaode
>
> if I set the quiet arg to the java2wsdl goal of the cxf codegen plugin, it turns off all the output for everything maven does subsequently....
> I can't see how or why this should be, in looking at the plugin source code.....unless the <quiet> tag has global meaning within maven in general?
> Here's the maven pom.xml snippet that I'm using....If I don't set the quiet tag there, then my maven build does several things after running the java2wsdl, and there's lots of output....If I set the quiet tag, then I don't see anything else at all (not a peep) until maven completes (but it does seem to do more work, I can see the evidence of it in the generated build artifacts, etc.)...
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.cxf</groupId>
>         <artifactId>cxf-codegen-plugin</artifactId>
>         <dependencies>
>           <dependency>
>             <groupId>org.apache.cxf</groupId>
>             <artifactId>cxf-rt-frontend-jaxws</artifactId>
>             <version>2.1-incubator-SNAPSHOT</version>
>           </dependency>
>         </dependencies>
>         <executions>
>           <execution>
>             <id>generate-wsdl</id>
>             <phase>process-classes</phase>
>             <configuration>
>               <className>com.myServiceImpl</className>
>               <serviceName>MyService</serviceName>
>               <outputFile>${basedir}/target/classes/wsdl/MyService.wsdl</outputFile>
>               <classpath>${basedir}/target/classes</classpath>
>               <quiet>true</quiet>
>             </configuration>
>             <goals>
>               <goal>java2wsdl</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
>   </build>

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


[jira] Commented: (CXF-912) java2wsdl goal of the codegen plugin turns off all maven output if the 'quiet' tag is set...

Posted by "maomaode (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520438 ] 

maomaode commented on CXF-912:
------------------------------

There is not much i can do here, it's not in the maven plugin, it's in the java2wsdl tool itself, if you turn on the -q(quiet), it just redirect the standard output and standard error.

> java2wsdl goal of the codegen plugin turns off all maven output if the 'quiet' tag is set...
> --------------------------------------------------------------------------------------------
>
>                 Key: CXF-912
>                 URL: https://issues.apache.org/jira/browse/CXF-912
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: maven 2.0.7, cxf 2.1-incubator-SNAPSHOT
>            Reporter: Jason Rosenberg
>
> if I set the quiet arg to the java2wsdl goal of the cxf codegen plugin, it turns off all the output for everything maven does subsequently....
> I can't see how or why this should be, in looking at the plugin source code.....unless the <quiet> tag has global meaning within maven in general?
> Here's the maven pom.xml snippet that I'm using....If I don't set the quiet tag there, then my maven build does several things after running the java2wsdl, and there's lots of output....If I set the quiet tag, then I don't see anything else at all (not a peep) until maven completes (but it does seem to do more work, I can see the evidence of it in the generated build artifacts, etc.)...
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.cxf</groupId>
>         <artifactId>cxf-codegen-plugin</artifactId>
>         <dependencies>
>           <dependency>
>             <groupId>org.apache.cxf</groupId>
>             <artifactId>cxf-rt-frontend-jaxws</artifactId>
>             <version>2.1-incubator-SNAPSHOT</version>
>           </dependency>
>         </dependencies>
>         <executions>
>           <execution>
>             <id>generate-wsdl</id>
>             <phase>process-classes</phase>
>             <configuration>
>               <className>com.myServiceImpl</className>
>               <serviceName>MyService</serviceName>
>               <outputFile>${basedir}/target/classes/wsdl/MyService.wsdl</outputFile>
>               <classpath>${basedir}/target/classes</classpath>
>               <quiet>true</quiet>
>             </configuration>
>             <goals>
>               <goal>java2wsdl</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
>   </build>

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


[jira] Commented: (CXF-912) java2wsdl goal of the codegen plugin turns off all maven output if the 'quiet' tag is set...

Posted by "maomaode (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521001 ] 

maomaode commented on CXF-912:
------------------------------

All right, we must forget to restore the out/err :(, will fix this soon

> java2wsdl goal of the codegen plugin turns off all maven output if the 'quiet' tag is set...
> --------------------------------------------------------------------------------------------
>
>                 Key: CXF-912
>                 URL: https://issues.apache.org/jira/browse/CXF-912
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: maven 2.0.7, cxf 2.1-incubator-SNAPSHOT
>            Reporter: Jason Rosenberg
>            Assignee: maomaode
>
> if I set the quiet arg to the java2wsdl goal of the cxf codegen plugin, it turns off all the output for everything maven does subsequently....
> I can't see how or why this should be, in looking at the plugin source code.....unless the <quiet> tag has global meaning within maven in general?
> Here's the maven pom.xml snippet that I'm using....If I don't set the quiet tag there, then my maven build does several things after running the java2wsdl, and there's lots of output....If I set the quiet tag, then I don't see anything else at all (not a peep) until maven completes (but it does seem to do more work, I can see the evidence of it in the generated build artifacts, etc.)...
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.cxf</groupId>
>         <artifactId>cxf-codegen-plugin</artifactId>
>         <dependencies>
>           <dependency>
>             <groupId>org.apache.cxf</groupId>
>             <artifactId>cxf-rt-frontend-jaxws</artifactId>
>             <version>2.1-incubator-SNAPSHOT</version>
>           </dependency>
>         </dependencies>
>         <executions>
>           <execution>
>             <id>generate-wsdl</id>
>             <phase>process-classes</phase>
>             <configuration>
>               <className>com.myServiceImpl</className>
>               <serviceName>MyService</serviceName>
>               <outputFile>${basedir}/target/classes/wsdl/MyService.wsdl</outputFile>
>               <classpath>${basedir}/target/classes</classpath>
>               <quiet>true</quiet>
>             </configuration>
>             <goals>
>               <goal>java2wsdl</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
>   </build>

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


[jira] Commented: (CXF-912) java2wsdl goal of the codegen plugin turns off all maven output if the 'quiet' tag is set...

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520526 ] 

Daniel Kulp commented on CXF-912:
---------------------------------


The tools need to restore any global state back to how they were before when they exit.   That includes system properties, out/err, variables, etc....

> java2wsdl goal of the codegen plugin turns off all maven output if the 'quiet' tag is set...
> --------------------------------------------------------------------------------------------
>
>                 Key: CXF-912
>                 URL: https://issues.apache.org/jira/browse/CXF-912
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: maven 2.0.7, cxf 2.1-incubator-SNAPSHOT
>            Reporter: Jason Rosenberg
>            Assignee: maomaode
>
> if I set the quiet arg to the java2wsdl goal of the cxf codegen plugin, it turns off all the output for everything maven does subsequently....
> I can't see how or why this should be, in looking at the plugin source code.....unless the <quiet> tag has global meaning within maven in general?
> Here's the maven pom.xml snippet that I'm using....If I don't set the quiet tag there, then my maven build does several things after running the java2wsdl, and there's lots of output....If I set the quiet tag, then I don't see anything else at all (not a peep) until maven completes (but it does seem to do more work, I can see the evidence of it in the generated build artifacts, etc.)...
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.cxf</groupId>
>         <artifactId>cxf-codegen-plugin</artifactId>
>         <dependencies>
>           <dependency>
>             <groupId>org.apache.cxf</groupId>
>             <artifactId>cxf-rt-frontend-jaxws</artifactId>
>             <version>2.1-incubator-SNAPSHOT</version>
>           </dependency>
>         </dependencies>
>         <executions>
>           <execution>
>             <id>generate-wsdl</id>
>             <phase>process-classes</phase>
>             <configuration>
>               <className>com.myServiceImpl</className>
>               <serviceName>MyService</serviceName>
>               <outputFile>${basedir}/target/classes/wsdl/MyService.wsdl</outputFile>
>               <classpath>${basedir}/target/classes</classpath>
>               <quiet>true</quiet>
>             </configuration>
>             <goals>
>               <goal>java2wsdl</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
>   </build>

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