taverna-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stian Soiland-Reyes <st...@apache.org>
Subject TAVERNA-867 doclint javadoc and Java 7 (was: Snapshot issue when releasing taverna language)
Date Mon, 01 Feb 2016 17:01:04 GMT
Yes, I think ironically we need it to ignore some errors from Java 8's
javadoc - this came up as we were doing the 0.15.0 release of

See also:

You can also enable it conditionally with <profile> based on the JDK
version like here:


If we do that we can keep 1.7 support - I mean if we really want to. :)

Alternatively I guess we can go through and fix the Javadoc warnings..

Some examples:

[ERROR] /home/stain/src/taverna/incubator-taverna-language/taverna-scufl2-ucfpackage/src/main/java/org/apache/taverna/scufl2/ucfpackage/impl/odfdom/pkg/OdfPackage.java:910:
warning: no description for @throws
[ERROR] * @throws Exception

[ERROR] /home/stain/src/taverna/incubator-taverna-language/taverna-scufl2-ucfpackage/src/main/java/org/apache/taverna/scufl2/ucfpackage/impl/odfdom/pkg/manifest/OdfFileEntry.java:87:
warning: no @return
[ERROR] public int getSize() {

[ERROR] /home/stain/src/taverna/incubator-taverna-language/taverna-scufl2-ucfpackage/target/generated-sources/xjc/org/oasis_open/names/tc/opendocument/xmlns/container/ObjectFactory.java:125:
warning: no @param for value
[ERROR] public JAXBElement<Relationship>
createContainerRelationshipsRelationship(Relationship value) {

There would be quite a few warnings.. I wonder if the Doclint default
has changed with OpenJDK vs Oracle JDK or in different Java patch
versions, because if I try on my machine to remove the doclint setting
taverna-language still builds, using OpenJDK 1.8.0_72-internal on
Ubuntu 14.04.3/x64.

(I had to change to -Xdoclint:all to see those warnings)

On 1 February 2016 at 14:49, alaninmcr <alaninmcr@googlemail.com> wrote:
> On 01/02/2016 12:35, Menaka Madushanka wrote:
>> Hello,
>> I get this error when building tavlang tool....
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-javadoc-plugin:2.9:jar (attach-javadocs) on
>> project taverna-language-commandline: MavenReportException: Error while
>> creating archive:
>> [ERROR] Exit code: 1 - javadoc: error - invalid flag: -Xdoclint:none
>> [ERROR]
>> [ERROR] Command line was: /usr/lib/jvm/java-7-oracle/jre/../bin/javadoc
>> @options @packages
> Is that option only available in Java 8?
> Alan

Stian Soiland-Reyes
Apache Taverna (incubating), Apache Commons RDF (incubating)

View raw message