发表于: 2017-08-13 23:10:08

1 1002


今天完成的事情:继续 服务器maven

        解决了昨天的问题 原因是pom.xml文件配置问题 jar包冲突

        导入了idea写好的本地文件

         服务器上 跑流程

         
明天计划的事情:争取服务器上跑流程 成功 
遇到的问题:

[root@iZ2ze6undj5kfu2h58mwq0Z hello-world]# mvn test

[INFO] Scanning for projects...

[INFO] 

[INFO] ------------------------------------------------------------------------

[INFO] Building hello-world 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hello-world ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory /home/java2/hello-world/src/main/resources

[INFO] 

[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ hello-world ---

[INFO] Nothing to compile - all classes are up to date

[INFO] 

[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ hello-world ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory /home/java2/hello-world/src/test/resources

[INFO] 

[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ hello-world ---

[INFO] Nothing to compile - all classes are up to date

[INFO] 

[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ hello-world ---

[INFO] Surefire report directory: /home/java2/hello-world/target/surefire-reports

-------------------------------------------------------

 T E S T S

-------------------------------------------------------

Running com.juvenxu.mvnbook.helloworld.AppTest

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 2.755 s

[INFO] Finished at: 2017-08-13T23:44:41+08:00

[INFO] Final Memory: 8M/19M

[INFO] ------------------------------------------------------------------------

 就不懂 为啥no compile no test

 build sucess 还不如报错呢

就出来HelloWorld

最后用java 

[root@iZ2ze6undj5kfu2h58mwq0Z classes]# java com.juvenxu.mvnbook.helloworld.App

Hello World!

千辛万苦 跑出个Hello World

但是 maven 命令就是不成  pom有问题吗 不应该啊 还是版本问题 难受卡死了半天
收获:熟悉了使用X-shell  linux系统Tab 自动补全太好用了

         执行mvn 命令必须在pom文件目录下

        还有linux系统 使用退格键 一些模式下会出  ^H

        一开始以为是系统问题 后来发现是默认设置

       解决很简单用Ctrl+退格键 就可以正常使用

        


返回列表 返回列表
评论

    分享到