maven plugin

maven-assembly-plugin 适用于非结构化的框架打包 (区别于一般的jar war)
可以自定义生成的结构。 例如生成Pagespeed conf文件

maven apt可以生成一个site,用以下载一些该项目的文档信息。

服务器中用wget的方式从nexus中下载jar包,到指定路径中解压。


缺点 assembly 自动打包会生成META-INF, 解压的时候会多出一些不必要的文件


[img]http://dl2.iteye.com/upload/attachment/0094/9988/62f0db64-45ed-34e8-ba42-bc488cb3617b.jpg[/img]



Documents

* {{{./PageSpeed%20Knowledge.docx}PageSpeed Knowledge doc}}

* {{{./PageSpeed%20Configuration.docx}PageSpeed Configuration doc}}



<?xml version="1.0" encoding="UTF-8"?>
<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>com.hp.hpsc.pagespeed</groupId>
<artifactId>hpsc-pagespeed</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>HPSC PageSpeed</name>

<distributionManagement>
<repository>
<id>releases</id>
<name>Internal Releases</name>
<url>http://repo1.corp.hp.com/nexus/content/repositories/releases</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>Internal Snapshots</name>
<url>http://repo1.corp.hp.com/nexus/content/repositories/snapshots</url>
</snapshotRepository>
<site>
<id>hpsc.sdk</id>
<name>HPSC SDK</name>
<url>
file:/opt/casfw/hudson/var/www/sdk/${project.artifactId}/${project.version}
</url>
</site>
</distributionManagement>

<scm>
<connection>scm:svn:https://code1.corp.hp.com/svn/111319/source/trunk/pagespeed</connection>
<developerConnection>scm:svn:https://code1.corp.hp.com/svn/111319/source/trunk/pagespeed</developerConnection>
<url>https://code1.corp.hp.com/svn/111319/source/trunk/pagespeed</url>
</scm>

<modules>
<module>pagespeed-config</module>
</modules>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.4.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.6</version>
</plugin>
</plugins>
</pluginManagement>
</build>

</project>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值