Versions Compared

Key

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

...

That's it ! (the attached code will contain the needed imports)

Building the sample

Using Maven 2.0.9, this is easy :

Code Block

elecharny@elecharny-laptop:~/ws-ads-1.5.4/EmbeddedADS$ mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building ApacheDS Server Embedded sample
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/elecharny/ws-ads-1.5.4/EmbeddedADS/target
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to /home/elecharny/ws-ads-1.5.4/EmbeddedADS/target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: /home/elecharny/ws-ads-1.5.4/EmbeddedADS/target/apacheds-embedded-sample-1.5.4.jar
[INFO] [install:install]
[INFO] Installing /home/elecharny/ws-ads-1.5.4/EmbeddedADS/target/apacheds-embedded-sample-1.5.4.jar to /home/elecharny/.m2/repository/org/apache/directory/server/apacheds-embedded-sample/1.5.4/apacheds-embedded-sample-1.5.4.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Fri Dec 05 19:31:24 CET 2008
[INFO] Final Memory: 18M/82M
[INFO] ------------------------------------------------------------------------
elecharny@elecharny-laptop:~/ws-ads-1.5.4/EmbeddedADS$ 

The resulting jar can be found in the target directory.

Running the sample

When the main method is run, you should obtain something like :

...