-
Notifications
You must be signed in to change notification settings - Fork 64
Setup Maven
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.2</version>
</dependency>
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
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.4.3-SNAPSHOT</version>
</dependency>
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.
- Introduction
- Changelog 1.7.x
- Setup Maven
- Configuration
- Server Methods
- Model Generator
- Model Generator APT
- Development
- Links