Skip to content
Ralph Schaer edited this page Oct 10, 2014 · 41 revisions

Release

Adding ExtDirectSpring to a Maven project needs the following dependency configuration. The artifact is available from the Central Maven Repository.

  <dependency>
    <groupId>ch.ralscha</groupId>
    <artifactId>extdirectspring</artifactId>
    <version>1.4.3</version>
  </dependency>

Archetypes

Simple project with Spring and ExtDirectSpring: Online / Sourcecode:

mvn archetype:generate -DarchetypeArtifactId=eds-starter-simple-archetype -DarchetypeGroupId=ch.rasc -DarchetypeVersion=1.1.5 -DarchetypeRepository=http://repository.rasc.ch  -DgroupId=com.mycompany -DartifactId=mynewapp -Dversion=0.0.1

A more complex project with Spring, ExtDirectSpring, Spring Security, JPA (Hibernate), Spring Data JPA and I18n: Online / Sourcecode:

mvn archetype:generate -DarchetypeArtifactId=eds-starter-archetype -DarchetypeGroupId=ch.rasc -DarchetypeVersion=1.1.5 -DarchetypeRepository=http://repository.rasc.ch  -DgroupId=com.mycompany -DartifactId=mynewapp -Dversion=0.0.1 -DjsAppNamespace=App

After the generate command is finished, change into the project directory, type mvn tomcat7:run, open a browser and enter the URL: http://localhost:8080

Snapshot

Snapshots are available from the Sonatype repository.

  <repositories>
    ...    
    <repository>
      <id>sonatype</id>
      <name>sonatype</name>
      <url>https://oss.sonatype.org/content/groups/public</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>      
    </repository>   
    ...
  </repositories>

  <dependency>
    <groupId>ch.ralscha</groupId>
    <artifactId>extdirectspring</artifactId>
    <version>1.5.0-SNAPSHOT</version>
  </dependency>

Additional libraries

For file uploads these two libraries are necessary if the project is running on a Servlet 2.5 server:

  <dependency>
    <groupId>commons-fileupload</groupId>
    <artifactId>commons-fileupload</artifactId>
    <version>1.3</version>
  </dependency>  

  <dependency>
    <groupId>commons-io</groupId>
    <artifactId>commons-io</artifactId>
    <version>2.4</version>
  </dependency>

On a Servlet 3.0 server the two libraries are not needed if the program uses the StandardServletMultipartResolver class.

Clone this wiki locally