pom.xml 2.89 KB
Newer Older
1 2 3 4 5 6 7
<?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>
        <groupId>org.bonitasoft.studio.bundles</groupId>
        <artifactId>plugins</artifactId>
8
        <version>7.8.2-SNAPSHOT</version>
9 10 11 12 13 14 15 16 17 18 19 20 21 22
    </parent>

    <groupId>org.bonitasoft.studio.bundles.plugins</groupId>
    <artifactId>org.bonitasoft.studio.designer.war</artifactId>
    <packaging>eclipse-plugin</packaging>

    <properties>
        <webapp.dir>${basedir}/webapp</webapp.dir>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
23
                <artifactId>maven-dependency-plugin</artifactId>
24 25
                <executions>
                    <execution>
26
                        <id>Retrieve UI Designer Exec War</id>
27 28
                        <phase>generate-resources</phase>
                        <goals>
29
                            <goal>copy</goal>
30
                        </goals>
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>org.bonitasoft.web</groupId>
                                    <artifactId>ui-designer-backend-webapp</artifactId>
                                    <version>${ui.designer.version}</version>
                                    <classifier>exec-war</classifier>
                                </artifactItem>
                            </artifactItems>
                            <stripClassifier>true</stripClassifier>
                            <stripVersion>true</stripVersion>
                            <outputDirectory>${webapp.dir}</outputDirectory>
                            <overWriteReleases>true</overWriteReleases>
                            <overWriteSnapshots>true</overWriteSnapshots>
                        </configuration>
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
                    </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="${webapp.dir}" />
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>