【maven-webapp项目pom.xml配置】少年乘勇气,百战过乌孙。这篇文章主要讲述maven-webapp项目pom.xml配置相关的知识,希望能为你提供帮助。
< project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
< modelVersion> 4.0.0< /modelVersion>
< groupId> com.fz< /groupId>
< artifactId> oa< /artifactId>
< packaging> war< /packaging>
< version> 1.0< /version>
< name> oa Maven Webapp< /name>
< url> http://maven.apache.org< /url>
< properties>
< java-version> 1.7< /java-version>
< project.build.sourceEncoding> UTF-8< /project.build.sourceEncoding>
< /properties>
< dependencies> < /dependencies>
< build>
< finalName> ${project.artifactId}< /finalName>
< !--默认的主代码目录-->
< sourceDirectory> src/main/java< /sourceDirectory>
< !--默认的测试代码目录-->
< testSourceDirectory> src/test/java< /testSourceDirectory>
< !--处理无法加载资源配置文件-->
< resources>
< resource>
< directory> src/main/java< /directory>
< includes>
< include> **/*.xml< /include>
< /includes>
< /resource>
< resource>
< directory> src/main/resources< /directory>
< includes>
< include> **/*.xml< /include>
< include> **/*.properties< /include>
< /includes>
< /resource>
< /resources>
< plugins>
< plugin>
< --编译插件compiler配置-->
< groupId> org.apache.maven.plugins< /groupId>
< artifactId> maven-compiler-plugin< /artifactId>
< version> 3.6.0< /version>
< configuration>
< source> ${java-version}< /source>
< target> ${java-version}< /target>
< encoding> ${project.build.sourceEncoding}< /encoding>
< /configuration>
< /plugin>
< !--tomcat插件-->
< plugin>
< groupId> org.apache.tomcat.maven< /groupId>
< artifactId> tomcat7-maven-plugin< /artifactId>
< version> 2.2< /version>
< configuration>
< !--tomcat管理路径-->
< url> http://localhost:80/manager/text< /url>
< !--与settings.xml文件中Server的id相同-->
< server> tomcat7< /server>
< uriEncoding> utf-8< /uriEncoding>
< port> 80< /port> < !--服务器端口号80可以省略-->
< path> /< /path> < !--应用的部署位置-->
< contextReloadable> true< /contextReloadable>
< systemProperties>
< java.util.logging.SimpleFormatter.format> [%4$s] %1$tF %1$tT %3$s %5$s %n< /java.util.logging.SimpleFormatter.format>
< /systemProperties>
< /configuration>
< /plugin>
< /plugins>
< /build>
< /project>
推荐阅读
- app微信支付宝支付后台的插件模式+回调通过spring广播处理后续业务(已亲测可用)
- Https系列之四(https的SSL证书在Android端基于okhttp,Retrofit的使用)
- as3AIR 添加或删除ApplicationDirectory目录下文件
- APPium自动化启动手机应用笔记
- appium多机并行测试
- react-native run-android Starting: IntentError type 3 Error: Activity class does not exist
- Android UsageStats(应用根据启动次数启动时间应用名称排序)
- android studio - 修改logcat颜色
- app的启动页面----四种APP启动页设计方案