Package maven project steps

1. Open eclpise and check out the project from SVN (right click->other->svn checkout)
2. Convert the project downloaded from svn into a maven project (right click -> configure -> convert maven project)
3. Use the maven that comes with eclipse for packaging, you need to pay attention when packaging, dress up the common file first, because other packages will depend on the common package
4. If an error about JDK is reported during the packaging process, it means that the jdk in eclpise may be inconsistent with the living environment, and the JDK in eclpise needs to be updated or packaged through local maven. If no error is reported, package it directly, in goale Input: clean install means to clear the previous package before this packaging
5. Through the local maven packaging method, in cmd, enter the specific path where the source code is stored, and then enter: mvn claen install in the directory.
6. After the packaging is completed, check the specific package in the corresponding directory: enter: D:\Workspace\ecp-common\target
7. After the packaging is completed, upload the server and upload it through the rz command. If the command does not exist in the linux library, return to the root directory root directory and enter: yum -y install lrzsz
8. The above package type is jar package. The method to start jar in linux is:
9. Generally, the usual packages are started under tomcat
10. You need to start with nohup (running command that does not hang up), enter: nohup java -jar specific Java package &, after startup, there will be nohup.out equivalent to the running log
11. Check whether the service is started Enter: netstat -anp|grep port number (8761)
12. Start other services nohup java -jar specific jar package>log name 2>&1 & , then press enter to OK
13. View in the corresponding log

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326308688&siteId=291194637