Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example for how to generate jax-rs doc with jaxb links #64

Open
nogece opened this issue Oct 1, 2014 · 4 comments
Open

example for how to generate jax-rs doc with jaxb links #64

nogece opened this issue Oct 1, 2014 · 4 comments

Comments

@nogece
Copy link

nogece commented Oct 1, 2014

I am trying to get maven to generate a jax-rs api doc with links to generated jaxb docs. I configured it according to the wiki, but for some reason, the jaxb docs are generated, the jax-rs task is not run. Does anyone has an working example or can point out what is wrong in the below pom-exerpt?

<reporting>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.7</version>
            <reportSets>
                <reportSet>
                    <id>jaxb</id>
                    <configuration>
                        <doclet>com.lunatech.doclets.jax.jaxb.JAXBDoclet</doclet>
                        <docletArtifacts>
                            <docletArtifact>
                                <groupId>com.lunatech.jax-doclets</groupId>
                                <artifactId>doclets</artifactId>
                                <version>0.10.0</version>
                            </docletArtifact>
                        </docletArtifacts>
                    </configuration>
                    <reports>
                        <report>javadoc</report>
                    </reports>
                </reportSet>
                <reportSet>
                    <id>jaxrs</id>
                    <configuration>
                        <doclet>com.lunatech.doclets.jax.jaxrs.JAXRSDoclet</doclet>
                        <docletArtifacts>
                            <docletArtifact>
                                <groupId>com.lunatech.jax-doclets</groupId>
                                <artifactId>doclets</artifactId>
                                <version>0.10.0</version>
                            </docletArtifact>
                        </docletArtifacts>
                             <additionalparam>-link ${project.build.directory}/site/spidocs</additionalparam>
                    </configuration>
                    <reports>
                        <report>javadoc</report>
                    </reports>
                </reportSet>
            </reportSets>
        </plugin>
    </plugins>
</reporting>
@nogece
Copy link
Author

nogece commented Oct 27, 2014

alors? Acune idee?

@matsli
Copy link
Contributor

matsli commented Oct 28, 2014

If I remember correctly, I had to use <executions> in the <build> section to make it work.

@FroMage
Copy link
Owner

FroMage commented Oct 28, 2014

No idea, in my tests I do like you do with multiple reportsets and it works…

@matsli
Copy link
Contributor

matsli commented Oct 28, 2014

It's probably related to this bug: http://jira.codehaus.org/browse/MSHARED-271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants