亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

正在回答

2 回答

?pom文件加入

<build>

<plugins>

<plugin>

<groupId>org.apache.maven.plugins</groupId>??

? ? ? ? <artifactId>maven-surefire-plugin</artifactId>??

? ? ? ? <version>2.18</version>??

? ? ? ? <configuration>??

? ? ? ? ? <skipTests>true</skipTests>??

? ? ? ? </configuration>?

</plugin>

</plugins>

</build>

0 回復 有任何疑惑可以回復我~

[INFO] Scanning for projects...

[INFO]?

[INFO] --------------------------< com.imooc.hi:hi >---------------------------

[INFO] Building hi 0.0.1-SNAPSHOT

[INFO] --------------------------------[ jar ]---------------------------------

[INFO]?

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hi ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory E:\javaeework\hi\src\main\resources

[INFO]?

[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ hi ---

[INFO] Nothing to compile - all classes are up to date

[INFO]?

[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ hi ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory E:\javaeework\hi\src\test\resources

[INFO]?

[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ hi ---

[INFO] Nothing to compile - all classes are up to date

[INFO]?

[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ hi ---

[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.12.4/surefire-booter-2.12.4.pom

[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.12.4/maven-surefire-common-2.12.4.pom

[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting-api/2.0.9/maven-reporting-api-2.0.9.pom

[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-toolchain/2.0.9/maven-toolchain-2.0.9.pom

[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.1/maven-plugin-annotations-3.1.pom

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:? 4.995 s

[INFO] Finished at: 2019-01-06T23:50:53+08:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project hi: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4 -> org.apache.maven.surefire:surefire-booter:jar:2.12.4: Failed to read artifact descriptor for org.apache.maven.surefire:surefire-booter:jar:2.12.4: Could not transfer artifact org.apache.maven.surefire:surefire-booter:pom:2.12.4 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [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/PluginResolutionException


0 回復 有任何疑惑可以回復我~
#1

oiry

是compile
2019-02-22 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
項目管理利器——maven
  • 參與學習       173031    人
  • 解答問題       789    個

使用maven來構建和管理Java項目,從環境配置,到maven核心知識

進入課程

可以complise 但是不能package

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號