Requirements:
Checkout the Build
C:\build> svn checkout https://svn.forgerock.org/openicf/trunk/framework/java framework C:\build> cd framework C:\framework> mvn install
This command will install the 1.1.0.0-SNAPSHOT version of the OpenICF Framework. The same binaries are published to frequently to the ForgeRock Snapshot Repository.
Requirements:
Checkout the Build
command: msbuild.exe ConnectorFramework.sln /p:Configuration=Release /p:ZipRelease=true
C:\build> svn checkout https://svn.forgerock.org/openicf/trunk/framework/dotnet/ framework C:\build> set WIX_HOME=C:\Program Files\Windows Installer XML v3.5 C:\build> set Path=%Path%;%WIX_HOME%\bin C:\build> set NUNIT_HOME=C:\Program Files\NUnit 2.5.10 C:\framework> C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe ConnectorFramework.sln /p:Configuration=Release
MSBUILD : warning MSB6004: The specified task executable location "\bin\nunit -console.exe" is invalid. Copy the content of the C:\Program Files\NUnit 2.5.10\bin\net-2.0 to C:\Program Files\NUnit 2.5.10\bin
| Properties | Default value |
| FrameworkDistDir | $(MSBuildProjectDirectory)\..\Dist |
| Configuration | Debug |
| ZipRelease | true |
Recommended:
SharpDevelop free IDE to develop .NET applications with plus it includes most of the dependencies.
Before you can start you need the following information:
Example: org.forgerock.openicf.misc
Example: sample
Example: 1.0-SNAPSHOT
Example: org.forgerock.openicf.example
Example: Sample
To create a new project open a console and navigate to the directory where you want to create project and simply type the following:
mvn archetype:generate \ -DarchetypeGroupId=org.forgerock.openicf \ -DarchetypeArtifactId=connector-archetype \ -DarchetypeVersion=1.0.0-SNAPSHOT \ -DremoteRepositories=http://maven.forgerock.org/repo/snapshots \ -DgroupId=org.forgerock.openicf.bundles.misc \ -DartifactId=sample \ -Dversion=1.0-SNAPSHOT \ -Dpackage=org.forgerock.openicf.sample \ -Dconnector_name=Sample
The result of this is a directory sample which is a maven project that defines a public package org.forgerock.openicf.connectors.misc The project is packaged as an OSGi bundle.
$ mvn archetype:generate -DarchetypeCatalog=local
[INFO] Scanning for projects...
[INFO]
[INFO] Generating project in Interactive mode
Choose archetype:
1: local -> connector-archetype (OpenICF Connector Development Archetype)
Choose a number: : 1
Define value for property 'groupId': : org.forgerock.openicf.<<misc>>
Define value for property 'artifactId': : <<sample>>
Define value for property 'version': 1.0-SNAPSHOT: :
Define value for property 'package': org.forgerock.openicf.<<sample>>: :
[INFO] Using property: ALL_OPERATIONS = yes
[INFO] Using property: OP_AUTHENTICATE = yes
[INFO] Using property: OP_CREATE = yes
[INFO] Using property: OP_DELETE = yes
[INFO] Using property: OP_RESOLVEUSERNAME = yes
[INFO] Using property: OP_SCHEMA = yes
[INFO] Using property: OP_SCRIPTONCONNECTOR = yes
[INFO] Using property: OP_SCRIPTONRESOURCE = yes
[INFO] Using property: OP_SEARCH = yes
[INFO] Using property: OP_SYUPDATENC = yes
[INFO] Using property: OP_TEST = yes
[INFO] Using property: OP_UPDATE = yes
[INFO] Using property: OP_UPDATEATTRIBUTEVALUES = yes
[INFO] Using property: compatibility_version = 1.1
[INFO] Using property: connector_family = <<misc>>
Define value for property 'connector_name': : <<Sample>>
[INFO] Using property: framework_version = 0.0-SNAPSHOT
[INFO] Using property: jira_project = ICFXXX
[INFO] Using property: poolable_connector = no
Confirm properties configuration:
groupId: org.forgerock.openicf.misc
artifactId: test
version: 1.0-SNAPSHOT
package: org.forgerock.openicf.test
ALL_OPERATIONS: yes
OP_AUTHENTICATE: yes
OP_CREATE: yes
OP_DELETE: yes
OP_RESOLVEUSERNAME: yes
OP_SCHEMA: yes
OP_SCRIPTONCONNECTOR: yes
OP_SCRIPTONRESOURCE: yes
OP_SEARCH: yes
OP_SYUPDATENC: yes
OP_TEST: yes
OP_UPDATE: yes
OP_UPDATEATTRIBUTEVALUES: yes
compatibility_version: 1.1
connector_family: misc
connector_name: TestSample
framework_version: 0.0-SNAPSHOT
jira_project: ICFXXX
poolable_connector: no
Y: :
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
$ cd test
$ mvn installDownload libraries to the same folder from OpenICF download site:
Script support
Set the OPENICF_HOME=dir point to the directory where the previous archives are extracted.
command: msbuild.exe DotNetConnectors.sln /p:Configuration=Release /p:ZipRelease=true
C:\build> svn checkout https://svn.forgerock.org/openicf/trunk/connectors/dotnet/ connectors C:\build> set WIX_HOME=C:\Program Files\Windows Installer XML v3.5 C:\build> set Path=%Path%;%WIX_HOME%\bin C:\build> set NUNIT_HOME=C:\Program Files\NUnit 2.5.10 C:\connectors> C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe DotNetConnectors.sln /p:Configuration=Release /p:ZipRelease=true