jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Enunciate
  • Enunciate
  • ENUNCIATE-603

JDK7 support

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.24
  • Fix Version/s: 1.26
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

Hi,
It seems maven-enunciate-plugin doesn't work on Oracle JDK 7:
[ERROR] Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.24:assemble (default) on project hudson-rest-api: Execution default of goal org.codehaus.enunciate:maven-enunciate-plugin:1.24:assemble failed: A required class was missing while executing org.codehaus.enunciate:maven-enunciate-plugin:1.24:assemble: com/sun/mirror/apt/AnnotationProcessorFactory

  • Options
    • Show All
    • Show Open

Sub-Tasks

1.
remove references to internal sun apis Sub-task Closed Closed Ryan Heaton
 
2.
move from APT to Javac Sub-task Closed Closed Ryan Heaton
 

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Ryan Heaton added a comment - 22/Sep/11 10:07 AM

We're aware of the issue. Scheduled for 1.26.

See http://markmail.org/message/44fuwpq2r6vhuecr

Show
Ryan Heaton added a comment - 22/Sep/11 10:07 AM We're aware of the issue. Scheduled for 1.26. See http://markmail.org/message/44fuwpq2r6vhuecr
Ryan Heaton made changes - 22/Sep/11 10:07 AM
Field Original Value New Value
Fix Version/s 1.26 [ 17514 ]
Hide
Permalink
Duc Quoc added a comment - 29/Jun/12 9:51 PM

One work-around is to add tools.jar as plugin dependency.

<plugin>
<groupId>org.codehaus.enunciate</groupId>
<artifactId>maven-enunciate-plugin</artifactId>
<version>1.25</version>
<configuration>
<goalPrefix>enunciate</goalPrefix>
<docsDir>
$

{project.build.directory}

/site
</docsDir>
<copyright>My Organization</copyright>
<title>My Project</title>
</configuration>
<executions>
<execution>
<goals>
<goal>docs</goal>
</goals>
</execution>
</executions>
<!-- work-around for ENUNCIATE-603 -->
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>$

{java.version}

</version>
<scope>system</scope>
<systemPath>$

{java.home}

/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
</plugin>

--Duc

Show
Duc Quoc added a comment - 29/Jun/12 9:51 PM One work-around is to add tools.jar as plugin dependency. <plugin> <groupId>org.codehaus.enunciate</groupId> <artifactId>maven-enunciate-plugin</artifactId> <version>1.25</version> <configuration> <goalPrefix>enunciate</goalPrefix> <docsDir> $ {project.build.directory} /site </docsDir> <copyright>My Organization</copyright> <title>My Project</title> </configuration> <executions> <execution> <goals> <goal>docs</goal> </goals> </execution> </executions> <!-- work-around for ENUNCIATE-603 --> <dependencies> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>$ {java.version} </version> <scope>system</scope> <systemPath>$ {java.home} /../lib/tools.jar</systemPath> </dependency> </dependencies> </plugin> --Duc
Hide
Permalink
Ryan Heaton added a comment - 12/Jul/12 12:12 PM

I can confirm the workaround, but it doesn't work on a Mac. Any suggestions for getting it on a Mac?

Show
Ryan Heaton added a comment - 12/Jul/12 12:12 PM I can confirm the workaround, but it doesn't work on a Mac. Any suggestions for getting it on a Mac?
Hide
Permalink
Ryan Heaton added a comment - 20/Jul/12 5:24 PM

Scratch that last comment. Workaround works for a Mac, too.

Show
Ryan Heaton added a comment - 20/Jul/12 5:24 PM Scratch that last comment. Workaround works for a Mac, too.
Hide
Permalink
Ryan Heaton added a comment - 23/Jul/12 2:36 PM

Fixed at 32bf534

Show
Ryan Heaton added a comment - 23/Jul/12 2:36 PM Fixed at 32bf534
Ryan Heaton made changes - 23/Jul/12 2:36 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Hide
Permalink
Ryan Heaton added a comment - 15/Aug/12 10:11 AM

Closed with the release of 1.26.

Show
Ryan Heaton added a comment - 15/Aug/12 10:11 AM Closed with the release of 1.26.
Ryan Heaton made changes - 15/Aug/12 10:11 AM
Status Resolved [ 5 ] Closed [ 6 ]
Hide
Permalink
Connie Yang added a comment - 22/Aug/12 8:21 PM

I just updated my pom to use 1.26 and got the following build error,

[ERROR] Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.26:docs (default) on project cloudams-core: Problem with enunciate config file /Users/cyang/ams-main.git/cloud-ams/core/enunciate.xml: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.26:docs (default) on project cloudams-core: Problem with enunciate config file /Users/cyang/ams-main.git/cloud-ams/core/enunciate.xml

I'm doing this on mac osx. Here's my enuciate.xml

<?xml version="1.0"?>
<enunciate label="cloud-ams" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.26.xsd">
<services>
<rest defaultRestSubcontext="cloudams" />
</services>
<modules>
<docs title="cloud.ams" copyright="ebay.com"/>
<c disabled="true" />
<csharp disabled="true" />
<obj-c disabled="true" />
</modules>
</enunciate>

Also, my pom looks like this,

<plugin>
<groupId>org.codehaus.enunciate</groupId>
<artifactId>maven-enunciate-plugin</artifactId>
<version>1.26</version>
<configuration>
<docsDir>$

{project.build.directory}

/docs</docsDir>
<configFile>enunciate.xml</configFile>
<exports>
<jaxws.client.library.binaries>client.jar</jaxws.client.library.binaries>
</exports>
</configuration>
<executions>
<execution>
<goals>
<goal>docs</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.enunciate</groupId>
<artifactId>enunciate-docs</artifactId>
<version>1.26</version>
</dependency>
</dependencies>
</plugin>

Show
Connie Yang added a comment - 22/Aug/12 8:21 PM I just updated my pom to use 1.26 and got the following build error, [ERROR] Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.26:docs (default) on project cloudams-core: Problem with enunciate config file /Users/cyang/ams-main.git/cloud-ams/core/enunciate.xml: NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.26:docs (default) on project cloudams-core: Problem with enunciate config file /Users/cyang/ams-main.git/cloud-ams/core/enunciate.xml I'm doing this on mac osx. Here's my enuciate.xml <?xml version="1.0"?> <enunciate label="cloud-ams" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://enunciate.codehaus.org/schemas/enunciate-1.26.xsd"> <services> <rest defaultRestSubcontext="cloudams" /> </services> <modules> <docs title="cloud.ams" copyright="ebay.com"/> <c disabled="true" /> <csharp disabled="true" /> <obj-c disabled="true" /> </modules> </enunciate> Also, my pom looks like this, <plugin> <groupId>org.codehaus.enunciate</groupId> <artifactId>maven-enunciate-plugin</artifactId> <version>1.26</version> <configuration> <docsDir>$ {project.build.directory} /docs</docsDir> <configFile>enunciate.xml</configFile> <exports> <jaxws.client.library.binaries>client.jar</jaxws.client.library.binaries> </exports> </configuration> <executions> <execution> <goals> <goal>docs</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.codehaus.enunciate</groupId> <artifactId>enunciate-docs</artifactId> <version>1.26</version> </dependency> </dependencies> </plugin>
Hide
Permalink
Connie Yang added a comment - 22/Aug/12 8:21 PM

Also, I'm using Java 6 on mac.

Show
Connie Yang added a comment - 22/Aug/12 8:21 PM Also, I'm using Java 6 on mac.

People

  • Assignee:
    Ryan Heaton
    Reporter:
    Anton Kozak
Vote (7)
Watch (8)

Dates

  • Created:
    22/Sep/11 7:44 AM
    Updated:
    22/Aug/12 8:21 PM
    Resolved:
    23/Jul/12 2:36 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.