Giter Site home page Giter Site logo

Comments (5)

ainilili avatar ainilili commented on July 25, 2024

这个日志上边应该会有详细的报错信息,能否将完整的日志贴出来?

from ratel.

wqk317 avatar wqk317 commented on July 25, 2024
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.smallnico.ratel:landlords-client:jar:1.2.2
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-gpg-plugin is missing. @ com.smallnico.ratel:landlords:1.2.2, /home/mi/github/ratel/pom.xml, line 87, column 12
[WARNING] 'build.plugins.plugin.version' for org.sonatype.plugins:nexus-staging-maven-plugin is missing. @ com.smallnico.ratel:landlords:1.2.2, /home/mi/github/ratel/pom.xml, line 75, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.smallnico.ratel:landlords-server:jar:1.2.2
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-gpg-plugin is missing. @ com.smallnico.ratel:landlords:1.2.2, /home/mi/github/ratel/pom.xml, line 87, column 12
[WARNING] 'build.plugins.plugin.version' for org.sonatype.plugins:nexus-staging-maven-plugin is missing. @ com.smallnico.ratel:landlords:1.2.2, /home/mi/github/ratel/pom.xml, line 75, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.smallnico.ratel:landlords-common:jar:1.2.2
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-gpg-plugin is missing. @ com.smallnico.ratel:landlords:1.2.2, /home/mi/github/ratel/pom.xml, line 87, column 12
[WARNING] 'build.plugins.plugin.version' for org.sonatype.plugins:nexus-staging-maven-plugin is missing. @ com.smallnico.ratel:landlords:1.2.2, /home/mi/github/ratel/pom.xml, line 75, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.smallnico.ratel:landlords:pom:1.2.2
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-gpg-plugin is missing. @ line 87, column 12
[WARNING] 'build.plugins.plugin.version' for org.sonatype.plugins:nexus-staging-maven-plugin is missing. @ line 75, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] ratel                                                              [pom]
[INFO] landlords-common                                                   [jar]
[INFO] landlords-client                                                   [jar]
[INFO] landlords-server                                                   [jar]
[INFO] 
[INFO] -------------------< com.smallnico.ratel:landlords >--------------------
[INFO] Building ratel 1.2.2                                               [1/4]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ landlords ---
[INFO] Installing /home/mi/github/ratel/pom.xml to /home/mi/.m2/repository/com/smallnico/ratel/landlords/1.2.2/landlords-1.2.2.pom
[INFO] 
[INFO] ----------------< com.smallnico.ratel:landlords-common >----------------
[INFO] Building landlords-common 1.2.2                                    [2/4]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ landlords-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/mi/github/ratel/landlords-common/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ landlords-common ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ landlords-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/mi/github/ratel/landlords-common/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ landlords-common ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.21.0:test (default-test) @ landlords-common ---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.nico.ratel.landlords.helper.PokerHelperTest
[INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.08 s - in org.nico.ratel.landlords.helper.PokerHelperTest
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ landlords-common ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ landlords-common ---
[INFO] Installing /home/mi/github/ratel/landlords-common/target/landlords-common-1.2.2.jar to /home/mi/.m2/repository/com/smallnico/ratel/landlords-common/1.2.2/landlords-common-1.2.2.jar
[INFO] Installing /home/mi/github/ratel/landlords-common/pom.xml to /home/mi/.m2/repository/com/smallnico/ratel/landlords-common/1.2.2/landlords-common-1.2.2.pom
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ landlords-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/mi/github/ratel/landlords-common/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ landlords-common ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ landlords-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/mi/github/ratel/landlords-common/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ landlords-common ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.21.0:test (default-test) @ landlords-common ---
[INFO] Skipping execution of surefire because it has already been run for this configuration
[INFO] 
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ landlords-common ---
[INFO] 
[INFO] ----------------< com.smallnico.ratel:landlords-client >----------------
[INFO] Building landlords-client 1.2.2                                    [3/4]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ landlords-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/mi/github/ratel/landlords-client/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ landlords-client ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 34 source files to /home/mi/github/ratel/landlords-client/target/classes
[WARNING] Unable to autodetect 'javac' path, using 'javac' from the environment.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for ratel 1.2.2:
[INFO] 
[INFO] ratel .............................................. SUCCESS [  0.397 s]
[INFO] landlords-common ................................... SUCCESS [  2.317 s]
[INFO] landlords-client ................................... FAILURE [  0.169 s]
[INFO] landlords-server ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.529 s
[INFO] Finished at: 2020-04-02T19:44:03+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project landlords-client: Compilation failure -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :landlords-client

from ratel.

ainilili avatar ainilili commented on July 25, 2024

在命令行分别执行java -versionjavac -version,可以看到对应的版本号吗?

from ratel.

wqk317 avatar wqk317 commented on July 25, 2024

在命令行分别执行java -versionjavac -version,可以看到对应的版本号吗?

好像是没javac, 需要安装吗?
如果需要, 安装哪个呢?

~$ java -version
openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu119.10.1)
OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu119.10.1, mixed mode, sharing)
~$ javac -version

Command 'javac' not found, but can be installed with:

sudo apt install openjdk-11-jdk-headless  # version 11.0.6+10-1ubuntu1~19.10.1, or
sudo apt install default-jdk              # version 2:1.11-72
sudo apt install openjdk-8-jdk-headless   # version 8u242-b08-0ubuntu3~19.10
sudo apt install ecj                      # version 3.16.0-1
sudo apt install openjdk-13-jdk-headless  # version 13+33-1
sudo apt install openjdk-14-jdk-headless  # version 14~18-1

from ratel.

wqk317 avatar wqk317 commented on July 25, 2024

@ainilili 非常感谢大佬, 我装了openjdk之后就好了, 建议环境这些也加到README里, 对小白友好些, 哈哈

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for ratel 1.2.2:
[INFO] 
[INFO] ratel .............................................. SUCCESS [  0.386 s]
[INFO] landlords-common ................................... SUCCESS [  2.352 s]
[INFO] landlords-client ................................... SUCCESS [ 49.239 s]
[INFO] landlords-server ................................... SUCCESS [  2.613 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  55.173 s
[INFO] Finished at: 2020-04-03T08:36:59+08:00
[INFO] ------------------------------------------------------------------------

from ratel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.