[ https://issues.apache.org/jira/browse/HADOOP-17925?focusedWorklogId=658866&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-658866 ]
ASF GitHub Bot logged work on HADOOP-17925: ------------------------------------------- Author: ASF GitHub Bot Created on: 01/Oct/21 10:32 Start Date: 01/Oct/21 10:32 Worklog Time Spent: 10m Work Description: iwasakims opened a new pull request #3509: URL: https://github.com/apache/hadoop/pull/3509 https://issues.apache.org/jira/browse/HADOOP-17925 If `-Pdocs` is activated, hadoop-client depends on xerces. The dependency was added by [HADOOP-14835](https://issues.apache.org/jira/browse/HADOOP-14835) to fix jdiff error. We are avoiding unwanted dependency by [building documentations alone in the second pass after building binary artifacts](https://github.com/apache/hadoop/blob/rel/release-3.3.1/dev-support/bin/create-release#L568-L606). The BUILDING.txt just should not encourage to activate `-Pdocs` on building binary artifacts. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 658866) Remaining Estimate: 0h Time Spent: 10m > BUILDING.txt should not encourage to activate docs profile on building binary > artifacts > --------------------------------------------------------------------------------------- > > Key: HADOOP-17925 > URL: https://issues.apache.org/jira/browse/HADOOP-17925 > Project: Hadoop Common > Issue Type: Bug > Components: documentation > Affects Versions: 3.3.1, 3.4.0 > Environment: AWS workspaces Amazon Linux 2 > Reporter: Rintaro Ikeda > Assignee: Masatake Iwasaki > Priority: Minor > Time Spent: 10m > Remaining Estimate: 0h > > BUILDING.txt in > trunk([https://github.com/apache/hadoop/blob/4d21655d04d1b488fe37e908d75f833c1aa66b01/BUILDING.txt#L350]) > explains how to create binary distribution with documentation and shows the > following command line examples. > {noformat} > `$ mvn package -Pdist,native,docs -DskipTests -Dtar` > `$ mvn package -Pdist,native,docs,src -DskipTests -Dtar` > {noformat} > But, they output errors as follows. Class duplication causes this problem. > Results: > {noformat} > [INFO] -------< org.apache.hadoop:hadoop-client-check-test-invariants > >-------- > [INFO] Building Apache Hadoop Client Packaging Invariants for Test > 3.4.0-SNAPSHOT [105/112] > [INFO] --------------------------------[ pom > ]--------------------------------- > ... > [INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce > (enforce-banned-dependencies) @ hadoop-client-check-test-invariants --- > [INFO] Adding ignorable dependency: org.apache.hadoop:hadoop-annotations:null > [INFO] Adding ignore: * > [WARNING] Rule 1: org.apache.maven.plugins.enforcer.BanDuplicateClasses > failed with message: > Duplicate classes found: > Found in: > org.apache.hadoop:hadoop-client-minicluster:jar:3.4.0-SNAPSHOT:compile > org.apache.hadoop:hadoop-client-runtime:jar:3.4.0-SNAPSHOT:compile > Duplicate classes: > > org/apache/hadoop/shaded/org/apache/xerces/impl/dv/dtd/NMTOKENDatatypeValidator.class > > org/apache/hadoop/shaded/org/apache/xerces/dom/DOMImplementationListImpl.class > ... > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce > (enforce-banned-dependencies) on project hadoop-client-check-test-invariants: > Some Enforcer rules have failed. Look above for specific messages explaining > why the rule failed. -> [Help 1] > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org