pom.xml 4.74 KB
Newer Older
1 2 3 4 5 6
<?xml version="1.0" encoding="UTF-8"?>
<project
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>
	<parent>
7
		<groupId>org.eclipse.ice</groupId>
8
		<artifactId>org.eclipse.ice.build</artifactId>
Jay Jay Billings's avatar
Jay Jay Billings committed
9
		<version>2.2.0-SNAPSHOT</version>
10
		<relativePath>../org.eclipse.ice.parent/pom.xml</relativePath>
11 12
	</parent>

13
	<name>ICE Repository</name>
14 15
	<artifactId>org.eclipse.ice.repository</artifactId>
	<packaging>eclipse-repository</packaging>
Greg Watson's avatar
Greg Watson committed
16
	
17 18 19 20 21 22 23 24 25 26 27 28 29 30
	<pluginRepositories>
	    <!--  Plugin repos for jboss repository-utils support -->
	    <pluginRepository>
			<id>jboss-public-repository-group</id>
			<name>JBoss Public Repository Group</name>
			<url>http://repository.jboss.org/nexus/content/groups/public/</url>
		</pluginRepository>
		<pluginRepository>
			<id>jboss-snapshots-repository</id>
			<name>JBoss Snapshots Repository</name>
			<url>http://repository.jboss.org/nexus/content/repositories/snapshots/</url>
		</pluginRepository>
	</pluginRepositories>
	
Greg Watson's avatar
Greg Watson committed
31 32 33 34
	<!-- Properties used by jboss repository-utils to customize index.html -->
	<properties>
	    <update.site.name>ICE</update.site.name>
	    <update.site.description>Nightly Build</update.site.description>
35 36
	    <package.version>2.2.1</package.version>
	    <update.site.version>2.2.1.${buildQualifier}</update.site.version>
Greg Watson's avatar
Greg Watson committed
37
	    <update.site.url>http://download.eclipse.org/ice/builds/${releaseName}</update.site.url>
38
	    <target.eclipse.version>Oxygen</target.eclipse.version>
Greg Watson's avatar
Greg Watson committed
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
	</properties>

	<build>
		<plugins>
			<!-- Disable xz compression as it is not supported by jboss repository-utils yet -->
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-p2-repository-plugin</artifactId>
				<version>${tycho-version}</version>
				<configuration>
					<xzCompress>false</xzCompress>
				</configuration>
			</plugin>
			
			<!-- Configure jboss repository-utils to use our index.html and add the nebula update
			     site to the repository references. This shouldn't be needed once nebula is included
			     in the simrel repo
			-->
			<plugin>
				<groupId>org.jboss.tools.tycho-plugins</groupId>
				<artifactId>repository-utils</artifactId>
				<version>0.23.3</version>
				<executions>
					<execution>
						<id>generate-facade</id>
						<phase>package</phase>
						<goals>
							<goal>generate-repository-facade</goal>
						</goals>
						<configuration>
	                        <symbols>
	                            <update.site.name>${update.site.name}</update.site.name>
	                            <update.site.description>${update.site.description}</update.site.description>
72
	                            <package.version>${package.version}</package.version>
Greg Watson's avatar
Greg Watson committed
73 74 75 76 77 78
	                            <update.site.version>${update.site.version}</update.site.version>
	                            <update.site.url>${update.site.url}</update.site.url>
	                            <target.eclipse.version>${target.eclipse.version}</target.eclipse.version>
	                        </symbols>
	                        <siteTemplateFolder>siteTemplateFolder/</siteTemplateFolder>
							<associateSites>
79
								<site>http://download.eclipse.org/eavp/builds/next</site>
Greg Watson's avatar
Greg Watson committed
80 81 82 83 84 85 86
							</associateSites>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
87

88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
	<profiles>
		<profile>
			<id>production</id>
			<build>
				<plugins>
					<plugin>
						<artifactId>maven-antrun-plugin</artifactId>
						<executions>
							<execution>
								<id>deploy</id>
								<phase>verify</phase>
								<goals>
									<goal>run</goal>
								</goals>
								<configuration>
									<tasks>
										<mkdir dir="${ice-install-dir}" />
										<delete includeemptydirs="true">
											<fileset dir="${ice-install-dir}">
												<include name="**/*" />
											</fileset>
										</delete>
										
										<!-- Unzip p2 repo into install dir -->
										<unzip
											src="${project.build.directory}/${project.build.finalName}.zip"
											dest="${ice-install-dir}" />
											
										<!-- Put copy of master repo zip into install dir -->
										<copy
											file="${project.build.directory}/${project.build.finalName}.zip"
											tofile="${ice-install-dir}/ice-master-${unqualifiedVersion}.${buildQualifier}.zip" />
											
										<!--  Make sure the install dir is writable to the group -->
										<chmod perm="g+w">
											<fileset dir="${ice-install-dir}">
												<include name="**" />
											</fileset>
										</chmod>
									</tasks>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
136
</project>