gpt4 book ai didi

java - 无法使用 jcabi 父 pom 进行构建

转载 作者:行者123 更新时间:2023-12-01 13:27:33 24 4
gpt4 key购买 nike

我正在尝试使用 jcabi 进行日志记录。据我了解,从 jcabi pom 文件继承我的 pom 进行设置会更容易,如 http://www.jcabi.com/parent/index.html 中所述。

但是,我在“mvn clean install”上收到以下错误(与解析版本号有关)关于如何解决此问题的任何想法,或者不建议从 jcabi pom 文件继承

  [ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.2:
create (jcabi-build-number) on project cbm: Execution jcabi-build-number of
goalorg.codehaus.mojo:buildnumber-maven-plugin:1.2:create failed: Plugin org.codehaus
.mojo:buildnumber-maven-plugin:1.2 or one of its dependencies could not be resol
ved:

Failed to collect dependencies at org.codehaus.mojo:buildnumber-maven-plugi
n:jar:1.2 -> org.apache.maven.scm:maven-scm-api:jar:1.8 -> org.codehaus.plexus:p
lexus-utils:jar:3.0.3:

Failed to read artifact descriptor for org.codehaus.plexu
s:plexus-utils:jar:3.0.3: Could not transfer artifact org.codehaus.plexus:plexus
-utils:pom:3.0.3 from/to internal ....

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.codehaus.mojo:buildnumber-maven-plugin:1.2:create (jcabi-build-number) on pro
ject cbm: Execution jcabi-build-number of goal org.codehaus.mojo:buildnumber-mav
en-plugin:1.2:create failed: Plugin org.codehaus.mojo:buildnumber-maven-plugin:1
2 or one of its dependencies could not be resolved:

Failed to collect dependencies at org.codehaus.mojo:buildnumber-maven-plugin:jar:1.2
-> org.apache.maven.sc

最佳答案

如果与任何人相关,请在此处发布答案

        < dependencies>
<dependency>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-aspects</artifactId>
<version>0.12</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.6.12</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-maven-plugin</artifactId>
<version>0.8</version>
<executions>
<execution>
<goals>
<goal>ajc</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</pluginManagement>
</build>

关于java - 无法使用 jcabi 父 pom 进行构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21737525/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com