2014-02-12 48 views
0

我正在嘗試使用jcabi進行日誌記錄。按照我的理解,更容易作爲http://www.jcabi.com/parent/index.html無法使用jcabi父pom構建

描述然而我得到的「MVN乾淨安裝」下面的錯誤錯誤從設置jcabi POM文件繼承我的POM(有解決的版本號做) 如何任何想法解決這個抑或是不建議從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 
+1

您連接到存儲庫中的問題要繼承'無法轉移神器組織。碼haus.plexus:plexus -utils:pom:3.0.3 from/to internal ....'' – khmarbaise

回答

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> 
相關問題