Book Image

Alfresco CMIS

By : Martin Bergljung
Book Image

Alfresco CMIS

By: Martin Bergljung

Overview of this book

Table of Contents (14 chapters)
Alfresco CMIS
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Setting up a build environment


We are going to use Apache Maven (http://maven.apache.org/) when building the examples in this chapter. Create a basic Java client project as follows by using the Maven Quick Start artifact:

$ mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

The preceding command gives us a build project, a directory structure, and a Java file (com.mycompany.app.App.java) to put some code in. To use the OpenCMIS library, we need to first configure it in the Maven POM file's dependency section, open the generated pom.xml file, and add the following:

<project ...
    <dependencies>
        <!-- Bring in the OpenCMIS library for talking to CMIS servers -->
        <dependency>
            <groupId>org.apache.chemistry.opencmis</groupId>
            <artifactId>chemistry-opencmis-client-impl</artifactId>
            <version>0.10.0&lt...