java 源码打包war_Maven本地打包war包实现代码解析

Maven是个很好用的管理工具,不经能够管理jar,还能实现打包。

这里讲解Maven 本地打包,服务器打包,可以全部交给jenkins去完成的。

用Maven打包,先在eclipse装Maven插件,然后在pom.xml添加打包插件。

4.0.0

manager

manager

0.0.1

war

manager

UTF-8

UTF-8

1.7

1.7

4.2.4.RELEASE

3.1.1

1.2.17

org.springframework

spring-core

${spring.version}

org.springframework

spring-beans

${spring.version}

org.springframework

spring-context

${spring.version}

org.springframework

spring-jdbc

${spring.version}

org.springframework

spring-orm

${spring.version}

org.springframework

spring-web

${spring.version}

org.springframework

spring-webmvc

${spring.version}

org.springframework

spring-aop

${spring.version}

javax.servlet

javax.servlet-api

provided

4.0.0

org.springframework

spring-tx

${spring.version}

org.mybatis

mybatis

${mybatis.version}

org.mybatis

mybatis-spring

1.3.0

mysql

mysql-connector-java

5.1.34

log4j

log4j

${log4j.version}

org.slf4j

slf4j-log4j12

1.7.21

org.slf4j

slf4j-api

1.7.21

redis.clients

jedis

2.9.0

org.mongodb

mongodb-driver

3.5.0

com.fasterxml.jackson.core

jackson-core

2.7.4

com.fasterxml.jackson.core

jackson-databind

2.7.4

com.fasterxml.jackson.core

jackson-annotations

2.7.4

org.json

json

20180130

com.alibaba

fastjson

1.2.31

org.thymeleaf

thymeleaf

2.1.5.RELEASE

org.thymeleaf

thymeleaf-spring4

2.1.5.RELEASE

org.thymeleaf.extras

thymeleaf-extras-springsecurity3

2.1.2.RELEASE

net.sourceforge.nekohtml

nekohtml

1.9.22

org.apache.maven.plugins

maven-compiler-plugin

2.5.1

UTF-8

1.7

1.7

org.codehaus.plexus

plexus-compiler-javac

1.9.2

org.apache.maven.plugins

maven-source-plugin

2.2.1

false

org.apache.maven.plugins

maven-surefire-plugin

2.9

true

maven-war-plugin

2.3

manager

org.sonarsource.scanner.maven

sonar-maven-plugin

3.3.0.603

1.8

1.8

选择Maven Install 就可以在输出日志看到打包成功的war 文件了。

17fdfe3aff51afc013f3501538432bd6.png

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值