18 Star 29 Fork 7

hm-tools / hm-tools-js-css

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pom.xml 9.95 KB
一键复制 编辑 原始数据 按行查看 历史
JHybo 提交于 2020-04-09 22:19 . 开始 0.3.2
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>top.hmtools</groupId>
<artifactId>spring-boot-starter-js-css</artifactId>
<version>0.3.2-SNAPSHOT</version>
<name>spring-boot-starter-js-css</name>
<description>用于spring boot的合并获取javascript、css文件内容的组件</description>
<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<name>hm-tools</name>
<email>hm-tools@hybomyth.com</email>
<organization>(神奇码农)嗨啵</organization>
<organizationUrl></organizationUrl>
</developer>
</developers>
<!-- 引用依赖的父包 -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.6.RELEASE</version>
</parent>
<!-- 本配置文件中,一些变量及其值,例如依赖jar包版本号 -->
<properties>
<!-- 文件拷贝时的编码 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- 编译时的编码 -->
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
</properties>
<!-- 依赖包 -->
<dependencies>
<!-- spring boot 自动配置需要的包 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>
<!-- spring boot web需要的包 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- io操作工具包 -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>top.hmtools</groupId>
<artifactId>hm-tools-common</artifactId>
<version>0.0.4-beta</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
<dependency>
<groupId>net.sourceforge.cssparser</groupId>
<artifactId>cssparser</artifactId>
<version>0.9.25</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<!--yui compressor 相关的完整依赖包,已包括 rhino,jargs -->
<dependency>
<groupId>com.yahoo.platform.yui</groupId>
<artifactId>yuicompressor</artifactId>
<version>2.4.8</version>
</dependency>
<!-- yui 相关之 Java解析并执行JavaScript -->
<!--
<dependency>
<groupId>org.mozilla</groupId>
<artifactId>rhino</artifactId>
<version>1.7.11</version>
<scope>test</scope>
</dependency>
-->
<!-- https://mvnrepository.com/artifact/jargs/jargs ,yui 相关之 Java 解析命令行参数-->
<!-- https://mvnrepository.com/artifact/jargs.gnu/jargs.gnu.jargs -->
<!--
<dependency>
<groupId>jargs.gnu</groupId>
<artifactId>jargs.gnu.jargs</artifactId>
<version>1.0</version>
</dependency>
-->
</dependencies>
<!-- 配置远程发布到中央仓库,mvn deploy -->
<distributionManagement>
<snapshotRepository>
<id>${snapshotRepositoryId}</id><!-- 必须同 setting.xml 中的 server配置项目中的 id
一致,否则会报401错误 -->
<url>${snapshotRepositoryUrl}</url>
</snapshotRepository>
<repository>
<id>${repositoryId}</id><!-- 必须同 setting.xml 中的 server配置项目中的 id 一致,否则会报401错误 -->
<url>${repositoryUrl}</url>
</repository>
</distributionManagement>
<scm>
<developerConnection>scm:svn:http://code.taobao.org/svn/hm-tools-js-css/trunk/v0/spring-boot-starter-js-css</developerConnection>
<url>https://gitee.com/hm-tools/hm-tools-js-css</url>
</scm>
<build>
<plugins>
<!-- 配置 mvn test 所使用的插件,mvn test命令依赖此插件,如果此插件没被成功下载到本地仓库,使用mvn test 命令时会报错。可以手动配置此
插件改版本号,以方便从中央服务器下载可用的版本插件 ,默认的版本可能会因为网络原因没有正常被下载使用。 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
<!-- 配置编译时所需要的JDK版本,默认是1.5版本 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
<compilerVersion>1.7</compilerVersion>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<!-- 配置发布本工程到私服的插件。执行方式:选择本工程==》鼠标右键==》run as ==》 maven build ==》 deploy
-e ==》右下角的 run -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
</plugin>
<!-- 要将源码放上去,需要加入这个插件 deploy -e 执行时,同时发布源代码到nexus私服 -->
<plugin>
<artifactId>maven-source-plugin</artifactId>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 生成JavaDoc包(API文档) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</execution>
</executions>
</plugin>
<!-- maven操作SVN服务器 插件(scm),即SVN的更新最新代码到本地,提交更改后的代码到SVN服务器。该插件依赖本机安装的SVN乌龟客户端。其中,提交命令为:
mvn -Dmessage="注释说明" scm:checkin -X -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.8.1</version>
<configuration>
<connectionType>developerConnection</connectionType>
</configuration>
</plugin>
<!-- 发布正式版本到指定网络路径,执行命令前,必须前提交所有代码到SVN,或者git,否则执行失败。 执行命令: release:clean
release:prepare release:perform,其中:release:clean 清理,release:prepare 自动打tag到SVN,
并更新主干版本号。release:perform 打包正式版本到nexus -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<tagBase>http://code.taobao.org/svn/hm-tools-request-logger/tags</tagBase>
<checkModificationExcludes>
<checkModificationExclude>.project</checkModificationExclude>
<checkModificationExclude>.classpath</checkModificationExclude>
<checkModificationExclude>release.properties</checkModificationExclude>
<checkModificationExclude>target/*</checkModificationExclude>
</checkModificationExcludes>
</configuration>
</plugin>
<!--################################# 此段插件代码块禁止发布 gitee.com start############### -->
<!-- maven gpg 自动签名插件,发布jar包到maven中央库,需要对文件进行gpg加密传输,加入此段代码后,先要在本机安装Kleopatra软件,使用Kleopatra先生成一对RSA密钥,
并发布密钥到服务器(gpg服务器)。 执行 verify -Dgpg.passphrase=thephrase 细节参见官方教程:http://maven.apache.org/plugins/maven-gpg-plugin/usage.html -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<!--################################# 此段插件代码块禁止发布 gitee.com end############### -->
<?ignore
<!-- spring boot 发布成可运行jar包所需要的插件 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>-Dfile.encoding=${project.build.sourceEncoding}</jvmArguments>
</configuration>
</plugin>
?>
</plugins>
<?ignore
<!-- 最终jar包名称 -->
<finalName>JsCss</finalName>
?>
</build>
<profiles>
<profile>
<id>release</id>
<properties>
<snapshotRepositoryId>ossrh</snapshotRepositoryId>
<snapshotRepositoryUrl>https://oss.sonatype.org/content/repositories/snapshots/</snapshotRepositoryUrl>
<repositoryId>ossrh</repositoryId>
<repositoryUrl>https://oss.sonatype.org/service/local/staging/deploy/maven2/</repositoryUrl>
</properties>
</profile>
<profile>
<id>local</id>
<properties>
<snapshotRepositoryId>snapshots</snapshotRepositoryId>
<snapshotRepositoryUrl>http://192.168.0.54:8080/nexus/content/repositories/snapshots/</snapshotRepositoryUrl>
<repositoryId>releases</repositoryId>
<repositoryUrl>http://192.168.0.54:8080/nexus/content/repositories/releases/</repositoryUrl>
</properties>
</profile>
</profiles>
</project>
Java
1
https://gitee.com/hm-tools/hm-tools-js-css.git
git@gitee.com:hm-tools/hm-tools-js-css.git
hm-tools
hm-tools-js-css
hm-tools-js-css
master

搜索帮助