Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to execute Mojo: ResourceDocletJSON?

Jake Joseph
Contributor
April 3, 2012

Has Anyone seen this before? I can't do atlas-run or atlas-debug, this error keeps popping up.

[INFO] Unable to execute mojo

Embedded error: An error has occurred in JavaDocs report generation:Exit code: 1 - javadoc: error - Cannot find doclet class com.sun.jersey.wadl.resourcedoc.ResourceDocletJSON

3 answers

1 accepted

4 votes
Answer accepted
Aseem Parikh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 15, 2012

This error was killing me but I finally figured it out. Very little documentation on the web about this error.

You need to add a dependency on the atlassian-rest-doclet artifact:

<dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-doclet</artifactId>
            <version>2.0.1</version>
        </dependency>

Nahn Yanootz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 21, 2013

I had the above error, then added the dependency you mentioned, and the error went away.

But other errors showed up, as I mentioned in my question: https://answers.atlassian.com/questions/203177/errors-building-packaging-jira-issue-nav-plugin-from-source-jira-6

To fix it, Joseph Clark's link to the bug report helped me out.

Instead, I added the following, and it worked:

<dependency>
    <groupId>com.atlassian.plugins.rest</groupId>
    <artifactId>atlassian-rest-doclet</artifactId>
    <version>2.5.0</version>
    <scope>provided</scope>
</dependency>

The thing that made the difference was:

<scope>provided</scope>

2 votes
tousifs
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 16, 2012

Hi ,

please check your java it should be jdk 1.6 and also check the jre for the same version

if we are implementing the java higher than 1.6 then 32 dependancy are missing. if the same problem persist you can clean and run again it should work.

0 votes
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 15, 2012

This was reported as a bug a while back and is supposed to be fixed now... what version of the Plugin SDK are you using?

Aseem Parikh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 15, 2012

Using the latest as far as I know. Version 3.11

Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 16, 2012

Here's the bug report - https://ecosystem.atlassian.net/browse/AMPS-663 It's supposed to be fixed in 3.7.3. :-(

EddieW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2012

I had been build a project for days fine, and then I started working through the admin page - https://developer.atlassian.com/display/DOCS/Plugin+tutorial+-+Writing+an+Admin+Configuration+Screen and this issue cropped up - think sometime around adding the backend REST service, or the config object.

Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 28, 2012

Yes... I think it is related to having a <rest> module in your plugin.

EddieW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 29, 2012

It seems it is related to using the <package> element in my rest component. The trouble is that I expose to rest services (one for anon. use, ther other for admin operations) and I need to be explicit about wich classes are tied to each. The documentation for the rest component doesnt really discuss.

EddieW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 29, 2012

It seems it is related to using the <package> element in my rest component. The trouble is that I expose to rest services (one for anon. use, ther other for admin operations) and at first I tried to have multipel <rest modules with distinct <paclage elements.
That was foolish on my part, and after using a single rest modeul, no package delcartion and leaving indivudals packages to declare the approprioate /admin or /summary contexts evertyhgin is working again.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events