0

ロギングに jcabi を使用しようとしています。私が理解しているように、 http: //www.jcabi.com/parent/index.html で説明されているように、セットアップのために jcabi pom ファイルから pom を継承する方が簡単です。

ただし、「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
4

1 に答える 1

1

いずれかに関連する場合は、ここに回答を投稿してください

        < 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>
于 2014-03-31T21:32:04.490 に答える