Table of Contents | ||
---|---|---|
|
Provided as a JAR file, a ConnId connector bundle implements a consistent generic layer between Syncope and external resources.
...
For each new connector bundle you have to perform the following steps.
modify the
globalroot
and dependency.pom.xml
file by adding the following properties:
Code Block language xml <properties> ... <connid.bundle.version> ... </connid.bundle.version> <connid.bundle.name> ... </connid.bundle.name> </properties> <dependencies> ... <dependency> <groupId>org.connid.bundles</groupId> <artifactId>${connid.bundle.name}</artifactId> <version>${connid.bundle.version}</version> <scope>test</scope> </dependency> </dependencies>
modify
file by adding the following dependency element.core/pom.xml
and adding the following rows toCode Block <dependencies> ... <dependency> <groupId>org.connid.bundles</groupId> <artifactId>${connid.bundle.name}</artifactId> <scope>test</scope> </dependency> </dependencies>
to ensure that
maven-dependency-plugin
contains the followingartifactItem
(if necessary add the wholeconfiguration
):Code Block language xml <configuration> <artifactItems> <artifactItem> <groupId>org.connid.bundles</groupId> <artifactId>${connid.bundle.name}</artifactId> <version>${connid.bundle.version}</version> <outputDirectory>${bundles.directory}</outputDirectory> </artifactItem> </artifactItems> </configuration>
modify
file by adding the following artifactItem element.console/pom.xml
to ensure that
maven-dependency-plugin
contains the followingartifactItem
(if necessary add the wholeconfiguration
):Code Block language xml Code Block <artifactItems> ... <artifactItem> <groupId>org.connid.bundles</groupId> <artifactId>${connid.bundle.name}</artifactId> <version>${connid.bundle.version}</version> <outputDirectory>${bundles.directory}</outputDirectory> </artifactItem> </artifactItems>
At build time all added connector bundles will be downloaded and copied into the specified bundle directory.
Code Block |
---|
mvn clean package -Dbundles.directory=/opt/syncope/bundles -Dlog.directory=/opt/syncope/log
|
...
- Download needed connector bundle JAR file.
- Copy downloaded JAR file into the connector bundles directory specified into by the configuration parameter
bundles.directory
(stored into the local repository).