Skip to content

Build failed with -Prelease #2864

Closed

Description

@biyuhao
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: master branch
  • Operating System version: macos
  • Java version: java11

Steps to reproduce this issue

  1. ./mvnw package -DskipTests -Pjava8-vm-args -Prelease

Expected Result

build success

Actual Result

build failed

If there is an exception, please attach the exception trace:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar (attach-javadoc) on project dubbo: MavenReportException: Error while generating Javadoc:
[ERROR] Exit code: 1 - /Users/xxx/Documents/incubator-dubbo/dubbo-common/src/main/java/org/apache/dubbo/common/logger/log4j2/Log4j2LoggerAdapter.java:23: error: package org.apache.logging.log4j does not exist
[ERROR] import org.apache.logging.log4j.LogManager;
[ERROR]                                ^
[ERROR] /Users/xxx/Documents/incubator-dubbo/dubbo-common/src/main/java/org/apache/dubbo/common/logger/log4j2/Log4j2LoggerAdapter.java:35: error: package org.apache.logging.log4j does not exist
[ERROR]     private static org.apache.logging.log4j.Level toLog4j2Level(Level level) {
[ERROR]                                            ^
[ERROR] /Users/xxx/Documents/incubator-dubbo/dubbo-common/src/main/java/org/apache/dubbo/common/logger/log4j2/Log4j2LoggerAdapter.java:57: error: package org.apache.logging.log4j does not exist
[ERROR]     private static Level fromLog4j2Level(org.apache.logging.log4j.Level level) {
[ERROR]                                                                  ^
[ERROR] /Users/xxx/Documents/incubator-dubbo/dubbo-common/src/main/java/org/apache/dubbo/common/logger/log4j2/Log4j2Logger.java:23: error: package org.apache.logging.log4j does not exist
[ERROR]     private final org.apache.logging.log4j.Logger logger;
[ERROR]                                           ^
[ERROR] /Users/xxx/Documents/incubator-dubbo/dubbo-common/src/main/java/org/apache/dubbo/common/logger/log4j2/Log4j2Logger.java:25: error: package org.apache.logging.log4j does not exist
[ERROR]     public Log4j2Logger(org.apache.logging.log4j.Logger logger) {
[ERROR]                                                 ^
[ERROR]
[ERROR] Command line was: /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin/javadoc @options @packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in '/Users/xxx/Documents/incubator-dubbo/dubbo-all/target/apidocs' dir.
[ERROR]
[ERROR] -> [Help 1]

Solution

log4j-core was defined in dubbo-common/pom.xml as provied
change to default scope compile

Activity

  1. ralf0131 commented on Dec 8, 2018

    @ralf0131
    Contributor

    Hi, would you please send a pull request?

  2. added 2 commits that reference this issue on Dec 8, 2018
    2e8769a
    322fb6a
  3. added a commit that references this issue on Dec 11, 2018
    a03d487
  4. added a commit that references this issue on Dec 17, 2018
    52a9320
  5. added a commit that references this issue on Dec 17, 2018
    b3d44a6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions