[
https://issues.apache.org/jira/browse/OODT-823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14481255#comment-14481255
]
Chris A. Mattmann commented on OODT-823:
----------------------------------------
Here's something I found that may help and it uses activations:
https://gist.github.com/aslakknutsen/9648594
Looks like the Maven enforcer plugin (used in the above example) can enforce
Java versions:
https://maven.apache.org/enforcer/enforcer-rules/requireJavaVersion.html
Ah, I found it! Here's the answer:
http://books.sonatype.com/mvnref-book/reference/profiles-sect-activation.html
1. Create a profile that only "actives" on JDK8
2. on that profile, override the Javadoc plugin with -Xdoclint:none.
3. change the default Javadoc plugin to not have -Xdoclint:none
> OODT JDK8 Maven3 build errors
> -----------------------------
>
> Key: OODT-823
> URL: https://issues.apache.org/jira/browse/OODT-823
> Project: OODT
> Issue Type: Bug
> Components: build proces
> Affects Versions: 0.8
> Environment: OS X Yosemite. maven 3 with JDK8
> Reporter: Aditya Dhulipala
> Assignee: Chris A. Mattmann
> Priority: Minor
> Labels: beginner, build, maven
> Fix For: 0.9
>
> Attachments: OODT-823.patch
>
>
> OODT build fails when using maven 3 with jdk8. Specifically while generating
> javadocs (the javadoc compiler that ships with JDK8 throws errors if the
> javadoc does not conform to the format prescribed for javadocs under jdk8)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)