我在执行mvn install时面临这个问题
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.objenesis:objenesis:jar:1.0
Reason: Cannot find parent: org.objenesis:**objenesis-parent** for project:
org.objenesis:objenesis:jar:1.0 for project org.objenesis:objenesis:jar:1.0
我查找了每个maven repo,如mvnrepository,repo1.maven等,并且无法在任何地方找到这个objenesis父Jar。甚至Objenesis网站也只有objenesis Jar但没有父Jar。
是否需要objenesis父Jar? (我使用JMock模拟一些类(不是接口),因此JMock Legacy对Objenesis的依赖)
我是否遗漏了pom配置中的内容,以便项目可以在没有客观父Jar的情况下构建?
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock-junit4</artifactId>
<version>2.5.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock</artifactId>
<version>2.5.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock-legacy</artifactId>
<version>2.5.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>