我尝试使用Vagrant
创建new virtual machine
Jenkins
以确保我的构建/项目的质量。该项目还需要使用R
和Postgres
。在我的本地机器上一切正常,但现在我试图让我的环境保持一致,可重复。当我尝试在新虚拟机中运行mvn clean package
时,maven
会在我的本地计算机中正常运行的test
中断,但在我的新虚拟机中不。
我已检查Java
,Maven
,Postgres
,R
(及其packages
)的版本是否相同。但是,我的maven项目在这个测试中打破了。
我在这里缺少什么?任何想法,建议都很受欢迎,因为我现在没有想法,我到目前为止尝试了一切。 (在这个问题上超过12个小时..)
修改
Java - 主机
valter@eniac:document-engine$ java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
Java - 虚拟机
vagrant@vagrant-ubuntu-trusty-64:~/$ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
Maven - 主机
valter@eniac:document-engine$ mvn -version
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.8.0_66, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.19.0-31-generic", arch: "amd64", family: "unix"
Maven - 虚拟机
vagrant@vagrant-ubuntu-trusty-64:~$ mvn -version
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.8.0_65, vendor: Oracle Corporation
Java home: /opt/jdk/jdk1.8.0_65/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-66-generic", arch: "amd64", family: "unix"
vagrant@vagrant-ubuntu-trusty-64:~$
Postgresql - 主机
valter@eniac:document-engine$ psql --version
psql (PostgreSQL) 9.3.10
Postgresql - 虚拟机
vagrant@vagrant-ubuntu-trusty-64:~$ psql --version
psql (PostgreSQL) 9.3.10
R - 主机
> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.3 LTS
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=de_DE.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=de_DE.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=de_DE.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] PerformanceAnalytics_1.4.3541 xts_0.9-7
[3] zoo_1.7-12 HiddenMarkov_1.8-4
[5] gplots_2.17.0 gmodels_2.16.2
[7] gtools_3.5.0 lattice_0.20-33
[9] MASS_7.3-44 tseries_0.10-34
[11] fGarch_3010.82 fBasics_3011.87
[13] timeSeries_3012.99 timeDate_3012.100
[15] Rserve_1.7-3
loaded via a namespace (and not attached):
[1] quadprog_1.5-5 bitops_1.0-6 grid_3.2.2 KernSmooth_2.23-15
[5] gdata_2.17.0 caTools_1.17.1
R - 虚拟机
> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.3 LTS
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=de_DE.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=de_DE.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=de_DE.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] PerformanceAnalytics_1.4.3541 xts_0.9-7
[3] zoo_1.7-12 HiddenMarkov_1.8-4
[5] gplots_2.17.0 gmodels_2.16.2
[7] gtools_3.5.0 lattice_0.20-33
[9] MASS_7.3-44 tseries_0.10-34
[11] fGarch_3010.82 fBasics_3011.87
[13] timeSeries_3012.99 timeDate_3012.100
[15] Rserve_1.7-3
loaded via a namespace (and not attached):
[1] quadprog_1.5-5 bitops_1.0-6 grid_3.2.2 KernSmooth_2.23-15
[5] gdata_2.17.0 caTools_1.17.1