zoukankan      html  css  js  c++  java
  • 常用war包插件

    <build>
    <resources>
    <resource>
    <directory>src/main/java</directory>
    <excludes>
    <exclude>**/*.java</exclude>
    </excludes>
    </resource>
    <resource>
    <directory>src/main/resources</directory>
    <filtering>true</filtering>
    </resource>
    </resources>
    <plugins>
    <plugin>
    <groupId>com.alibaba.citrus.tool</groupId>
    <artifactId>autoconfig-maven-plugin</artifactId>
    <version>1.2-fixcompress-SNAPSHOT</version>
    <configuration>
    <!-- 配置后,是否展开目标文件,默认为false,不展开 -->
    <exploding>true</exploding>
    </configuration>
    <executions>
    <execution>
    <phase>package</phase>
    <goals>
    <goal>autoconfig</goal>
    </goals>
    </execution>
    </executions>
    </plugin>

    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.2</version>
    <configuration>
    <source>${java.version}</source><!-- 源代码开发使用版本 -->
    <target>${java.version}</target><!-- 源代码编译所使用的版本 -->
    <encoding>${java.encoding}</encoding>
    <useIncrementalCompilation>false</useIncrementalCompilation>
    </configuration>
    </plugin>

    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <version>2.3</version>
    </plugin>
    </plugins>
    </build>
  • 相关阅读:
    JDBC_PreparedStatement
    JDBC_Statement
    JDBC连接数据库
    Oracle语句
    MySQL用户和权限
    MySQL执行计划
    MySQL创建索引
    MySQL正则表达式
    MySQLshow查询
    MySQL多表连接和分页查询
  • 原文地址:https://www.cnblogs.com/sidesky/p/11344308.html
Copyright © 2011-2022 走看看