zoukankan      html  css  js  c++  java
  • web plugins

    <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>
    <!--替代maven filter的插件 详情请见:http://www.openwebx.org/docs/autoconfig.html-->
    <plugin>
    <groupId>com.alibaba.citrus.tool</groupId>
    <artifactId>autoconfig-maven-plugin</artifactId>
    <version>1.2-fixcompress-SNAPSHOT</version>
    <configuration>
    <!-- 配置后,是否展开目标文件,默认为false,不展开 -->
    <exploding>false</exploding>
    <dest>${project.build.directory}/${project.build.finalName}</dest>
    </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-source-plugin</artifactId>
    <version>2.4</version>
    <executions>
    <execution>
    <id>attach-sources</id>
    <goals>
    <goal>jar</goal>
    </goals>
    </execution>
    </executions>
    </plugin>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <version>2.3</version>
    </plugin>
    </plugins>
    </build>
  • 相关阅读:
    HDU-1702-ACboy needs your help again!(Stack)
    HDU1276-士兵队列训练问题 (Queue)
    HDU1285-确定比赛名次(拓扑+优先队列)
    The Preliminary Contest for ICPC Asia Nanjing 2019
    拓扑排序板子 hihocoder-1174
    BZOJ1066 [SCOI2007]蜥蜴
    BZOJ3888 [Usaco2015 Jan]Stampede
    BZOJ1718 [Usaco2006 Jan] Redundant Paths 分离的路径
    BZOJ1112 [POI2008]砖块Klo
    BZOJ1031 [JSOI2007]字符加密Cipher
  • 原文地址:https://www.cnblogs.com/sidesky/p/10720761.html
Copyright © 2011-2022 走看看