`
Tristan_S
  • 浏览: 383266 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

maven plugin

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

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

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


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





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>

  • 大小: 43.7 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics