pom.xml 3.68 KB
Newer Older
Romain Bioteau's avatar
Romain Bioteau committed
1 2 3 4 5
<?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>
6
		<groupId>org.bonitasoft.studio.bundles</groupId>
Romain Bioteau's avatar
Romain Bioteau committed
7
		<artifactId>plugins</artifactId>
8
        <version>7.8.3</version>
Romain Bioteau's avatar
Romain Bioteau committed
9
	</parent>
10
  <groupId>org.bonitasoft.studio.bundles.plugins</groupId>
Romain Bioteau's avatar
Romain Bioteau committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
  <artifactId>org.bonitasoft.studio.actors</artifactId>
  <packaging>eclipse-plugin</packaging>
  
  <properties>
		<userfilters.impl.target>${basedir}/filters-impl</userfilters.impl.target>
		<userfilters.def.target>${basedir}/filters-def</userfilters.def.target>
		<userfilters.deps.target>${basedir}/dependencies</userfilters.deps.target>
		<userfilters.tmp.dir>${basedir}/userfilters</userfilters.tmp.dir>
	</properties>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>Retrieve userfilters</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>unpack</goal>
						</goals>
						<configuration>
							<artifactItems>
								<artifactItem>
									<groupId>org.bonitasoft.userfilter</groupId>
									<artifactId>bonita-userfilter-package</artifactId>
									<version>${filters.version}</version>
									<classifier>package</classifier>
									<type>zip</type>
								</artifactItem>
							</artifactItems>
							<outputDirectory>${userfilters.tmp.dir}</outputDirectory>
							<overWriteReleases>true</overWriteReleases>
							<overWriteSnapshots>true</overWriteSnapshots>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<id>Clean generated resources</id>
						<phase>clean</phase>
						<configuration>
							<target>
								<delete dir="${userfilters.impl.target}" failonerror="false" />
								<mkdir dir="${userfilters.impl.target}" />
								<delete dir="${userfilters.deps.target}" failonerror="false" />
								<mkdir dir="${userfilters.deps.target}" />
								<delete dir="${userfilters.def.target}" failonerror="false" />
								<mkdir dir="${userfilters.def.target}" />
								<delete dir="${userfilters.tmp.dir}" failonerror="false" />
								<mkdir dir="${userfilters.tmp.dir}" />
							</target>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
					<execution>
						<id>Configure generated resources</id>
						<phase>generate-resources</phase>
						<configuration>
							<target>
								<unzip dest="${userfilters.tmp.dir}">
									<fileset dir="${userfilters.tmp.dir}" includes="*.zip" />
								</unzip>
								<delete failonerror="false">
									<fileset dir="${userfilters.tmp.dir}" includes="*.zip" />
								</delete>

								<copy todir="${userfilters.deps.target}">
									<fileset dir="${userfilters.tmp.dir}/classpath" includes="*.jar" />
								</copy>
								<delete dir="${userfilters.tmp.dir}/classpath" failonerror="false" />

								<copy todir="${userfilters.def.target}">
									<fileset dir="${userfilters.tmp.dir}" excludes="*.impl" />
								</copy>
								<copy todir="${userfilters.impl.target}">
									<fileset dir="${userfilters.tmp.dir}" includes="*.impl" />
								</copy>
								<delete dir="${userfilters.tmp.dir}" failonerror="false" />
							</target>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>