1. 程式人生 > >Adam學習20之在window下idea中使用maven進行clean

Adam學習20之在window下idea中使用maven進行clean

adam-2.10-0.19在開始用idea編譯有問題,主要是adam-core和adam-cli中的pom中引進的外掛版本有問題:

<plugin>
            <groupId>org.scoverage</groupId>
            <artifactId>maven-scoverage-plugin</artifactId>
            <version>${scoverage.version}</version>
            <executions>
<execution> <id>test</id> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin>

在adam-core和adam-cli中並沒有對${scoverage.version}的定義,而是在父pom中有:

 <scoverage.version>1.1.1</scoverage.version>

而這個1.1.1主要是用於scalac-scoverage-plugin_2.10依賴的,在maven預設中庫並沒有
maven-scoverage-plugin 1.1.1版本,最新的為0.99.10(截至20160514),網站為:
https://repo.maven.apache.org/maven2/org/scoverage/maven-scoverage-plugin/

clean記錄

 <dependency>
        <groupId>org.scoverage</groupId
>
<artifactId>scalac-scoverage-plugin_2.10</artifactId> <version>${scoverage.version}</version> </dependency>
D:\1win7\java\jdk\bin\java -Dmaven.multiModuleProjectDirectory=D:\all\idea\adam-2.10-0.19-git -Dmaven.home=D:\1win7\java\apache-maven-3.3.9-bin\apache-maven-3.3.9 -Dclassworlds.conf=D:\1win7\java\apache-maven-3.3.9-bin\apache-maven-3.3.9\bin\m2.conf -Didea.launcher.port=7533 "-Didea.launcher.bin.path=D:\1win7\idea\IntelliJ IDEA Community Edition 15.0.4\bin" -Dfile.encoding=UTF-8 -classpath "D:\1win7\java\apache-maven-3.3.9-bin\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar;D:\1win7\idea\IntelliJ IDEA Community Edition 15.0.4\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=15.0.4 -s D:\1win7\java\apache-maven-3.3.9-bin\settings.xml clean -P sonatype-oss-release,distribution,coverage
[WARNING] 
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Unrecognised tag: 'profile' (position: START_TAG seen ...    variables for plugins in the POM.\n   |\n   |-->\n   \t\t\t<profile>... @184:16)  @ D:\1win7\java\apache-maven-3.3.9-bin\apache-maven-3.3.9\conf\settings.xml, line 184, column 16
[WARNING] 
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] ADAM_2.10
[INFO] ADAM_2.10: Core
[INFO] ADAM_2.10: APIs for Java
[INFO] ADAM_2.10: CLI
[INFO] ADAM_2.10: Distribution
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ADAM_2.10 0.19.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ adam-parent_2.10 ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ADAM_2.10: Core 0.19.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ adam-core_2.10 ---
[INFO] Deleting D:\all\idea\adam-2.10-0.19-git\adam-core\target
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ADAM_2.10: APIs for Java 0.19.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ adam-apis_2.10 ---
[INFO] Deleting D:\all\idea\adam-2.10-0.19-git\adam-apis\target
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ADAM_2.10: CLI 0.19.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ adam-cli_2.10 ---
[INFO] Deleting D:\all\idea\adam-2.10-0.19-git\adam-cli\target
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ADAM_2.10: Distribution 0.19.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ adam-distribution_2.10 ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] ADAM_2.10 .......................................... SUCCESS [  0.360 s]
[INFO] ADAM_2.10: Core .................................... SUCCESS [02:25 min]
[INFO] ADAM_2.10: APIs for Java ........................... SUCCESS [  3.137 s]
[INFO] ADAM_2.10: CLI ..................................... SUCCESS [ 18.595 s]
[INFO] ADAM_2.10: Distribution ............................ SUCCESS [  0.004 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:47 min
[INFO] Finished at: 2016-05-14T10:26:03+08:00
[INFO] Final Memory: 8M/162M
[INFO] ------------------------------------------------------------------------

Process finished with exit code 0

但是之後的package等還是辦法執行成功。。。