小编Syl*_*dis的帖子

Maven surefire无法找到ForkedBooter类

最近来到一个新项目,我正在尝试编译我们的源代码.昨天一切都很好,但今天是另一个故事.

每次我在mvn clean install模块上运行时,一旦到达测试,它就会崩溃成一个错误:

[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ recorder ---
[INFO] Surefire report directory: /lhome/code/recorder/target/surefire-reports
[INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider
[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0,     threadCountClasses=0, threadCountMethods=0, parallelOptimized=true

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
Run Code Online (Sandbox Code Playgroud)

后来:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project recorder: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: The forked VM terminated …
Run Code Online (Sandbox Code Playgroud)

java maven maven-surefire-plugin

210
推荐指数
10
解决办法
5万
查看次数

Liquibase Java, changesets don't apply

I'm currently building a project for my internship, and I'm stuck since two days trying to use Liquibase in java. Everything seems right : the changelog file is found, correct URI, username and password; but when I run it, my changesets are not processed.

I use this class to manage liquibase actions from my program, such as rollback, update, updateSQL and futureRollbackSQL, given a changelog and eventually a destination file. If the source or destination is from …

java liquibase

5
推荐指数
1
解决办法
1万
查看次数

Maven eclipse 打包“pom”不工作

我正在使用 Eclipse Mars (4.5) 和 Maven 3.3.3。

最近,我对一个项目 Java 8 (SE) 进行了 Maven 更新,突然,Eclipse 不希望我的pom.xml<packaging>jar</packaging>中的有效,而是希望我将打包更改为pom。为什么我不能把它留在jar中?

此外,在概述中,封装选择被禁用。

当从控制台运行 Maven(带有 jar 打包)时,这就是我得到的:

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Child module C:\Users\Me\workspace\MyProject\? of C:\Users\Me\workspace\MyProject\pom.xml does not exist @
[ERROR] 'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging. @ line 8, column 13
 @
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems …
Run Code Online (Sandbox Code Playgroud)

java eclipse maven

3
推荐指数
1
解决办法
2943
查看次数

标签 统计

java ×3

maven ×2

eclipse ×1

liquibase ×1

maven-surefire-plugin ×1