Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7674

Java2Wadl maven plugin requires explicit <classResourceNames> element - even if base packages specified

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2.2
    • 3.2.3, 3.2.4
    • JAX-RS
    • Unknown

    Description

      <plugin>
          <groupId>org.apache.cxf</groupId>
          <artifactId>cxf-java2wadl-plugin</artifactId>
          <version>3.2.2</version>
          <executions>
              <execution>
                  <id>generate-wadl</id>
                  <goals>
                      <goal>java2wadl</goal>
                  </goals>
                  <phase>process-classes</phase>
              </execution>
          <executions>
          <configuration>
              <attachWadl>true</attachWadl>
                   <!-- Bug: if not specified (even if empty) causes exceptions - even though base packages specified -->
               <classResourceNames />
              <basePackages>foo.bar.baz.</basePackages>
               <outputFileName>${project.artifactId}</outputFileName>
          </configuration>
      </plugin>
      

      If classResourceNames is not specified then:

      mvn clean install
      ...
      [ERROR] Failed to execute goal org.apache.cxf:cxf-java2wadl-plugin:3.2.2:java2wadl (generate-wadl) on project c-application-web: The parameters 'classResourceNames' for goal org.apache.cxf:cxf-java2wadl-plugin:3.2.2:java2wadl are missing or invalid

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            lgoldstein Lyor Goldstein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: