pom.xml 12.7 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
2 3 4 5 6 7
<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.9.0-SNAPSHOT</version>
9 10 11 12 13 14 15 16 17 18
    </parent>
    <groupId>org.bonitasoft.studio.bundles.plugins</groupId>
    <artifactId>org.bonitasoft.studio.connectors</artifactId>
    <packaging>eclipse-plugin</packaging>
    <properties>
        <connectors.impl.target>${basedir}/connectors-impl</connectors.impl.target>
        <connectors.def.target>${basedir}/connectors-def</connectors.def.target>
        <connectors.deps.target>${basedir}/dependencies</connectors.deps.target>
        <connectors.tmp.dir>${basedir}/connectors</connectors.tmp.dir>
    </properties>
19

20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>Retrieve connectors</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <!--ALFRESCO CONNECTORS -->
                                <artifactItem>
                                    <groupId>org.bonitasoft.connectors</groupId>
38
                                    <artifactId>bonita-connector-alfresco</artifactId>
39
                                    <version>2.0.1</version>
40
                                    <classifier>all</classifier>
41 42 43 44 45
                                    <type>zip</type>
                                </artifactItem>
                                <!--CMIS CONNECTORS -->
                                <artifactItem>
                                    <groupId>org.bonitasoft.connectors</groupId>
46
                                    <artifactId>bonita-connector-cmis</artifactId>
47
                                    <version>3.0.3</version>
48
                                    <classifier>all</classifier>
49 50 51 52 53
                                    <type>zip</type>
                                </artifactItem>
                                <!--DATABASE CONNECTORS -->
                                <artifactItem>
                                    <groupId>org.bonitasoft.connectors</groupId>
54 55
                                    <artifactId>bonita-connector-database</artifactId>
                                    <version>2.0.0</version>
56
                                    <classifier>all</classifier>
57 58 59 60 61
                                    <type>zip</type>
                                </artifactItem>
                                <!--EMAIL CONNECTOR -->
                                <artifactItem>
                                    <groupId>org.bonitasoft.connectors</groupId>
62 63 64
                                    <artifactId>bonita-connector-email</artifactId>
                                    <version>1.1.0</version>
                                    <classifier>all</classifier>
65 66 67
                                    <type>zip</type>
                                </artifactItem>
                                <!--GOOGLE CALENDAR CONNECTOR -->
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
                                <dependency>
                                    <groupId>org.bonitasoft.connectors</groupId>
                                    <artifactId>bonita-connector-google-calendar-v3-create-event-impl</artifactId>
                                    <version>1.0.0</version>
                                    <type>zip</type>
                                    <classifier>connector</classifier>
                                </dependency>
                                <dependency>
                                    <groupId>org.bonitasoft.connectors</groupId>
                                    <artifactId>bonita-connector-google-calendar-v3-get-event-impl</artifactId>
                                    <version>1.0.0</version>
                                    <type>zip</type>
                                    <classifier>connector</classifier>
                                </dependency>
                                <dependency>
                                    <groupId>org.bonitasoft.connectors</groupId>
                                    <artifactId>bonita-connector-google-calendar-v3-delete-event-impl</artifactId>
                                    <version>1.0.0</version>
                                    <type>zip</type>
                                    <classifier>connector</classifier>
                                </dependency>
                                <dependency>
                                    <groupId>org.bonitasoft.connectors</groupId>
                                    <artifactId>bonita-connector-google-calendar-v3-update-event-impl</artifactId>
                                    <version>1.0.0</version>
                                    <type>zip</type>
                                    <classifier>connector</classifier>
                                </dependency>
                                <dependency>
                                    <groupId>org.bonitasoft.connectors</groupId>
                                    <artifactId>bonita-connector-google-calendar-v3-move-event-impl</artifactId>
                                    <version>1.0.0</version>
                                    <type>zip</type>
                                    <classifier>connector</classifier>
                                </dependency>
103 104 105 106 107 108 109 110 111 112 113
                                <!--LDAP CONNECTORS -->
                                <artifactItem>
                                    <groupId>org.bonitasoft.connectors</groupId>
                                    <artifactId>bonita-connector-ldap-impl</artifactId>
                                    <version>1.0.1</version>
                                    <classifier>connector</classifier>
                                    <type>zip</type>
                                </artifactItem>
                                <!--SALESFORCE CONNECTORS -->
                                <artifactItem>
                                    <groupId>org.bonitasoft.connectors</groupId>
114
                                    <artifactId>bonita-connector-salesforce</artifactId>
115
                                    <version>1.1.2</version>
116
                                    <classifier>all</classifier>
117 118 119 120 121 122 123 124 125 126 127
                                    <type>zip</type>
                                </artifactItem>
                                <!--SCRIPTING CONNECTORS -->
                                <artifactItem>
                                    <groupId>org.bonitasoft.connectors</groupId>
                                    <artifactId>bonita-connector-scripting-groovy-impl</artifactId>
                                    <version>1.0.12</version>
                                    <classifier>connector</classifier>
                                    <type>zip</type>
                                </artifactItem>
                                <artifactItem>
Romain Bioteau's avatar
Romain Bioteau committed
128 129
                                    <groupId>org.bonitasoft.connectors</groupId>
                                    <artifactId>bonita-connector-scripting-groovy-script-impl</artifactId>
Romain Bioteau's avatar
Romain Bioteau committed
130
                                    <version>1.0.2</version>
Romain Bioteau's avatar
Romain Bioteau committed
131 132 133
                                    <classifier>connector</classifier>
                                    <type>zip</type>
                                </artifactItem>
134 135 136 137 138 139 140 141 142 143
                                <artifactItem>
                                    <groupId>org.bonitasoft.connectors</groupId>
                                    <artifactId>bonita-connector-scripting-shell-impl</artifactId>
                                    <version>1.0.10</version>
                                    <classifier>connector</classifier>
                                    <type>zip</type>
                                </artifactItem>
                                <!--TWITTER CONNECTORS -->
                                <artifactItem>
                                    <groupId>org.bonitasoft.connectors</groupId>
144 145 146
                                    <artifactId>bonita-connector-twitter</artifactId>
                                    <version>1.2.0</version>
                                    <classifier>all</classifier>
147 148 149 150 151
                                    <type>zip</type>
                                </artifactItem>
                                <!--WEBSERVICE CONNECTORS -->
                                <artifactItem>
                                    <groupId>org.bonitasoft.connectors</groupId>
152 153
                                    <artifactId>bonita-connector-webservice</artifactId>
                                    <version>1.2.1</version>
154
                                    <classifier>all</classifier>
155 156 157 158 159
                                    <type>zip</type>
                                </artifactItem>
                                 <!--REST CONNECTORS -->
                                <artifactItem>
                                    <groupId>org.bonitasoft.connectors</groupId>
160
                                    <artifactId>bonita-connector-rest</artifactId>
161
                                    <version>1.0.5</version>
162
                                    <classifier>all</classifier>
163 164 165 166 167 168 169 170 171 172 173 174 175 176
                                    <type>zip</type>
                                </artifactItem>
                            </artifactItems>
                            <outputDirectory>${connectors.tmp.dir}</outputDirectory>
                            <overWriteReleases>true</overWriteReleases>
                            <overWriteSnapshots>true</overWriteSnapshots>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <configuration>
                    <filesets>
177 178 179
                        <fileset>
                            <directory>${connectors.def.target}</directory>
                        </fileset>
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
                        <fileset>
                            <directory>${connectors.impl.target}</directory>
                        </fileset>
                         <fileset>
                            <directory>${connectors.deps.target}</directory>
                        </fileset>
                           <fileset>
                            <directory>${connectors.tmp.dir}</directory>
                        </fileset>
                    </filesets>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>Configure generated resources</id>
                        <phase>generate-resources</phase>
                        <configuration>
                            <target>
                                <unzip dest="${connectors.tmp.dir}">
                                    <fileset dir="${connectors.tmp.dir}" includes="*.zip" />
                                </unzip>
                                <delete failonerror="false">
                                    <fileset dir="${connectors.tmp.dir}" includes="*.zip" />
                                </delete>
207

208 209 210 211
                                <copy todir="${connectors.deps.target}">
                                    <fileset dir="${connectors.tmp.dir}/classpath" includes="*.jar" />
                                </copy>
                                <delete dir="${connectors.tmp.dir}/classpath" failonerror="false" />
212

213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
                                <copy todir="${connectors.def.target}">
                                    <fileset dir="${connectors.tmp.dir}" excludes="*.impl" />
                                </copy>
                                <copy todir="${connectors.impl.target}">
                                    <fileset dir="${connectors.tmp.dir}" includes="*.impl" />
                                </copy>
                                <delete dir="${connectors.tmp.dir}" failonerror="false" />
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
230 231

</project>