应该不会,maven每次编译的时候都会编译XenServerJava,然后拷贝到maven的repository。 (注意倒数第二行)
[INFO] ------------------------------------------------------------------------ [INFO] Building Apache XenSource XAPI 5.6.100-1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ xapi --- [INFO] [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ xapi --- [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ xapi --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /root/git/cloudstack.git/master/deps/XenServerJava/src/main/resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ xapi --- [INFO] Compiling 50 source files to /root/git/cloudstack.git/master/deps/XenServerJava/target/classes [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ xapi --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /root/git/cloudstack.git/master/deps/XenServerJava/test/resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ xapi --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12:test (default-test) @ xapi --- [INFO] Surefire report directory: /root/git/cloudstack.git/master/deps/XenServerJava/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ xapi --- [INFO] Building jar: /root/git/cloudstack.git/master/deps/XenServerJava/target/xapi-5.6.100-1-SNAPSHOT.jar [INFO] [INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @ xapi --- [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ xapi --- [INFO] Installing /root/git/cloudstack.git/master/deps/XenServerJava/target/xapi-5.6.100-1-SNAPSHOT.jar to /root/.m2/repository/org/apache/cloudstack/xapi/5.6.100-1-SNAPSHOT/xapi-5.6.100-1-SNAPSHOT.jar [INFO] Installing /root/git/cloudstack.git/master/deps/XenServerJava/pom.xml to /root/.m2/repository/org/apache/cloudstack/xapi/5.6.100-1-SNAPSHOT/xapi-5.6.100-1-SNAPSHOT.pom
