java - Maven javadoc plugin build fails. How to add add portlet-api dependency -
i have vaadin project , tried configure javadoc plugin in project. added following plugin build->plugins section of pom.
<build> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-javadoc-plugin</artifactid> <version>2.10.4</version> <executions> <execution> <goals> <goal>jar</goal> </goals> <configuration> <additionalparam>-xdoclint:none</additionalparam> </configuration> </execution> </executions> </plugin> .... </plugins> </build>
when run mvn install
, build fails following error.
[error] failed execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar (default) on project web-yaan-ui-base: mavenreportexception: error while generating javadoc: [error] exit code: 1 - javadoc: error - com.sun.tools.doclets.internal.toolkit.util.docletabortexception: com.sun.tools.doclets.internal.toolkit.util.docletabortexception: com.sun.tools.doclets.internal.toolkit.util.docletabortexception: com.sun.tools.doclets.internal.toolkit.util.docletabortexception: com.sun.tools.doclets.internal.toolkit.util.docletabortexception: com.sun.tools.javac.code.symbol$completionfailure: class file javax.portlet.portletresponse not found
it says javax.portlet.portletresponse
class not found, tried add javax.portlet
dependency javadoc plugin.
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-javadoc-plugin</artifactid> <version>2.10.4</version> <executions> <execution> <goals> <goal>jar</goal> </goals> <configuration> <additionalparam>-xdoclint:none</additionalparam> </configuration> </execution> </executions> <dependencies> <dependency> <groupid>javax.portlet</groupid> <artifactid>portlet-api</artifactid> <version>2.0</version> </dependency> </dependencies> </plugin>
but, still error.
then tried add portlet-api
dependency pom dependencies section, along other maven dependencies. worked.
but, final war file not depend on portlet-api
, not want end in web_inf/libs
of war file.
so, how can fix build issue without making portlet-api
dependency of final war file?
Comments
Post a Comment