hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Wang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-14835) mvn site build throws SAX errors
Date Wed, 06 Sep 2017 23:32:00 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-14835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16156196#comment-16156196

Andrew Wang commented on HADOOP-14835:

The issue is that I added the xerces dependency under the "docs" profile, which means it gets
pulled into the hadoop artifacts whenever the docs profile is on. We don't want this. I don't
know how to do this in Maven without splitting jdiff generation into a new module.

Anyway, we already do the release build in two passes: artifacts, then site. The simplest
fix is to not build the shaded artifacts when docs is enabled. Maven again makes it difficult
to do this automatically since you can't chain profile activations; the quick fix is to pass
"-DskipShade" when we do a docs/site build.

This also requires a BUILDING.txt update to make it clear that the site needs to be built
in a second pass, as ugly as that is.

Alternatively, we cut our losses and get rid of JDiff and provide a JACC report instead.

> mvn site build throws SAX errors
> --------------------------------
>                 Key: HADOOP-14835
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14835
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build, site
>    Affects Versions: 3.0.0-beta1
>            Reporter: Allen Wittenauer
>            Assignee: Andrew Wang
>            Priority: Critical
>         Attachments: HADOOP-14835.001.patch
> Running mvn  install site site:stage -DskipTests -Pdist,src -Preleasedocs,docs results
in a stack trace when run on a fresh .m2 directory.  It appears to be coming from the jdiff
doclets in the annotations code.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org

View raw message