安装并使用maven编译java项目

maven二进制包下载地址:

http://mirror.bit.edu.cn/apache/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.tar.gz

 

解压安装:

*安装前需要先安装oracle jdk

tar xf apache-maven-3.6.1-bin.tar.gz -C /application/
ln -s /application/apache-maven-3.6.1/ /application/maven
echo 'PATH=$PATH:/application/maven/bin' >> /etc/profile
source /etc/profile

 

下载jeesns

git clone https://gitee.com/zchuanzhao/jeesns.git

编译jeesns为war包,maven加速请参考

cd jeesns

按照官网说明先执行:

mvn install:install-file -Dfile=./jeesns-core/jeesns-core.jar -DgroupId=com.lxinet -DartifactId=jeesns-core -Dversion=1.4.2 -Dpackaging=jar
mvn clean package

 

编译成功后会生成在下面的位置:

jeesns/jeesns-web/target/jeesns-web.war

 

 

标签: tomcat java maven

发表评论: