Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
styledecimal

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

    global

    root pom.xml file by adding the following properties

    and dependency.

    :

    Code Block
    languagexml
    
    <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 core/pom.xml

    file by adding the following dependency element.
    Code Block
    
    <dependencies>
       ...
       <dependency>
          <groupId>org.connid.bundles</groupId>
          <artifactId>${connid.bundle.name}</artifactId>
          <scope>test</scope>
       </dependency>
    </dependencies>
    
    and adding the following rows to

     to ensure that maven-dependency-plugin contains the following artifactItem (if necessary add the whole configuration):

    Code Block
    languagexml
    
    <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 console/pom.xml

    file by adding the following artifactItem element.

     to ensure that maven-dependency-plugin contains the following artifactItem (if necessary add the whole configuration):

    Code Block
    languagexml
    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

...

  1. Download needed connector bundle JAR file.
  2. Copy downloaded JAR file into the connector bundles directory specified into by the configuration parameter bundles.directory (stored into the local repository).