The common library of TERASOLUNA Server Framework for Java (5.x) is a library of useful and unobtrusive common functionalities.
All modules included in TERASOLUNA Server Framework for Java (5.x) Common Library are listed up in the development guideline.
In order to start using the common libaries, start with downloading Template Blank Project. Blank project already contains dependecies defined for TERASOLUNA Server Framework for Java (5.x) Common Library. Template Blank Projects are available from the following links:
- https://github.com/terasolunaorg/terasoluna-gfw-web-multi-blank (Recommended)
- https://github.com/terasolunaorg/terasoluna-gfw-web-blank
Common Library can be downloaded using maven through the following settings in pom.xml file.
Two types of settings are possible.
- Using parent
- Without using parent
Irrespective of above two ways, first define the repositories in the pom file.
(The below is required in the both the type of settings.)
<repositories>
<repository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>terasoluna-gfw-releases</id>
<url>http://repo.terasoluna.org/nexus/content/repositories/terasoluna-gfw-releases/</url>
</repository>
</repositories>
Define parent project in pom file
<parent>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-parent</artifactId>
<version>5.3.0.RELEASE</version>
</parent>
After adding above, add the following dependency definitions. (Only the required ones.)
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-web-dependencies</artifactId>
<type>pom</type>
</dependency>
<!-- OPTIONAL -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-web-jsp-dependencies</artifactId>
<type>pom</type>
</dependency>
<!-- OPTIONAL -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-jodatime-dependencies</artifactId>
<type>pom</type>
</dependency>
<!-- OPTIONAL -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-string</artifactId>
</dependency>
<!-- OPTIONAL -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-codepoints</artifactId>
</dependency>
<!-- OPTIONAL -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-validator</artifactId>
</dependency>
<!-- OPTIONAL -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-recommended-dependencies</artifactId>
<type>pom</type>
</dependency>
<!-- OPTIONAL -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-recommended-web-dependencies</artifactId>
<type>pom</type>
</dependency>
<!-- If Spring Security is to be used -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-security-web-dependencies</artifactId>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-security-core-dependencies</artifactId>
<type>pom</type>
</dependency>
<!-- If MyBatis3 is to be used -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-mybatis3-dependencies</artifactId>
<type>pom</type>
</dependency>
<!-- If JPA is to be used -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-jpa-dependencies</artifactId>
<type>pom</type>
</dependency>
There is no need of settings related to version.
Plugins are also already set in parent.
Add the following dependency definitions.
(Only the required ones.)
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-web-dependencies</artifactId>
<version>5.3.0.RELEASE</version>
<type>pom</type>
</dependency>
<!-- OPTIONAL -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-web-jsp-dependencies</artifactId>
<version>5.3.0.RELEASE</version>
<type>pom</type>
</dependency>
<!-- OPTIONAL -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-jodatime-dependencies</artifactId>
<version>5.3.0.RELEASE</version>
<type>pom</type>
</dependency>
<!-- OPTIONAL -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-string</artifactId>
<version>5.3.0.RELEASE</version>
</dependency>
<!-- OPTIONAL -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-codepoints</artifactId>
<version>5.3.0.RELEASE</version>
</dependency>
<!-- OPTIONAL -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-validator</artifactId>
<version>5.3.0.RELEASE</version>
</dependency>
<!-- OPTIONAL -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-recommended-dependencies</artifactId>
<version>5.3.0.RELEASE</version>
<type>pom</type>
</dependency>
<!-- OPTIONAL -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-recommended-web-dependencies</artifactId>
<version>5.3.0.RELEASE</version>
<type>pom</type>
</dependency>
<!-- If Spring Security is to be used -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-security-web-dependencies</artifactId>
<version>5.3.0.RELEASE</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-security-core-dependencies</artifactId>
<version>5.3.0.RELEASE</version>
<type>pom</type>
</dependency>
<!-- If MyBatis3 is to be used -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-mybatis3-dependencies</artifactId>
<version>5.3.0.RELEASE</version>
<type>pom</type>
</dependency>
<!-- If JPA is to be used -->
<dependency>
<groupId>org.terasoluna.gfw</groupId>
<artifactId>terasoluna-gfw-jpa-dependencies</artifactId>
<version>5.3.0.RELEASE</version>
<type>pom</type>
</dependency>
Contributing (bug report, pull request, any comments etc.) is welcome !! Please see the contributing guideline for details.
The common library of TERASOLUNA Global Framework is maintained under 1.0.x branch.
The TERASOLUNA Server Framework for Java (5.x) is released under Apache License, Version 2.0.