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]
可以自定义生成的结构。 例如生成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>