Skip to content

Commit ed6950e

Browse files
committed
* Now the quickstart run on spring boot only
* Removed websphere liberty support * Removed daogen maven plugin sample * Java 17 is required
1 parent ae960a1 commit ed6950e

File tree

3 files changed

+14
-65
lines changed

3 files changed

+14
-65
lines changed

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog for project fj-daogen-quickstart
22

3+
## version 0.4.4 - 2022-12-05
4+
* Now the quickstart run on spring boot only
5+
* Removed websphere liberty support
6+
* Removed daogen maven plugin sample
7+
* Java 17 is required
8+
39
## version 0.3.4.5 - 2019-12-31
410
* Added support for websphere liberty
511
* Update to fj-lib 0.6.5.9

pom.xml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>org.fugerit.java</groupId>
77
<artifactId>fj-daogen-quickstart</artifactId>
88
<packaging>war</packaging>
9-
<version>0.4.2.3</version>
9+
<version>0.4.4</version>
1010

1111
<name>fj-daogen-quickstart</name>
1212
<description>fj-daogen-quickstart</description>
@@ -21,13 +21,13 @@
2121

2222
<properties>
2323
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24-
<java-version-compliance>11</java-version-compliance>
24+
<java-version-compliance>17</java-version-compliance>
2525
<j2ee-version-compliance>7.0</j2ee-version-compliance>
2626
<maven.compiler.source>${java-version-compliance}</maven.compiler.source>
2727
<maven.compiler.target>${java-version-compliance}</maven.compiler.target>
28-
<fj-version>0.7.5.8</fj-version>
28+
<fj-version>0.8.3</fj-version>
2929
<fj-daogen-version>${project.version}</fj-daogen-version>
30-
<sb-version>2.4.3</sb-version>
30+
<sb-version>3.0.0</sb-version>
3131
</properties>
3232

3333
<build>
@@ -40,12 +40,6 @@
4040
<version>3.2.3</version>
4141
</plugin>
4242

43-
<plugin>
44-
<groupId>org.fugerit.java</groupId>
45-
<artifactId>fj-daogen-maven-plugin</artifactId>
46-
<version>${fj-daogen-version}</version>
47-
</plugin>
48-
4943
<plugin>
5044
<groupId>org.springframework.boot</groupId>
5145
<artifactId>spring-boot-maven-plugin</artifactId>

readme.md

Lines changed: 4 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22

33
Refer to [changelog](changelog.md) for feature update.
44

5-
Sample applications to lear usage of DaoGen framework.
5+
Sample applications to learn usage of DaoGen framework.
66

77
Index :
88
1. Run the project
99
2. Configuration notes
1010
3. DaoGen tutorial
11-
4. Maven Plugin
12-
5. Support for websphere liberty
13-
1411

1512
## 1. Run the project ##
1613

17-
1. Add to a server (tested with tomcat9 / jdk9).
18-
2. Open one of the rest URL http://localhost:8080/fj-daogen-quickstart/jax-rs/person/load/deep/id/3
14+
1. Minimum java 17 is required
15+
2. mvn spring-boot:run
16+
3. Open one of the rest URL http://localhost:8080/fj-daogen-quickstart/jax-rs/person/load/deep/id/3
1917

2018
NOTE: index page fj-daogen-quickstart contains a few api links
2119

@@ -138,52 +136,3 @@ public class DaogenQuickstart extends javax.ws.rs.core.Application {
138136
Start the application and test the service :
139137

140138
http://localhost:8080/fj-daogen-quickstart/jax-rs/equipment/load/id/21
141-
142-
143-
## 4. Maven Plugin ##
144-
145-
Since version 0.1.7 is possibile to use the maven plugin to generate code.
146-
147-
The activation happen with the 'fj-daogen:generate' goal :
148-
149-
mvn clean install fj-daogen:generate
150-
151-
Here is an example code :
152-
153-
```
154-
<plugin>
155-
<groupId>org.fugerit.java</groupId>
156-
<artifactId>fj-daogen-maven-plugin</artifactId>
157-
<configuration>
158-
<daogen.config>${project.basedir}/src/main/resources/daogen/daogen-config.xml</daogen.config>
159-
</configuration>
160-
<executions>
161-
<execution>
162-
<phase>compile</phase>
163-
<goals>
164-
<goal>generate</goal>
165-
</goals>
166-
</execution>
167-
</executions>
168-
</plugin>
169-
```
170-
171-
172-
## 5. Support for websphere liberty ##
173-
174-
Is now possibile to run the quickstart on a standalone websphere liberty application server, activating the profile 'wlp'
175-
176-
To start the server :
177-
`mvn clean install liberty:run -P wlp`
178-
179-
To stop the server
180-
`mvn liberty:stop -P wlp`
181-
182-
After starting the server, you can access the webapp at link [http://localhost:8080/fj-daogen-quickstart/](http://localhost:8080/fj-daogen-quickstart/)
183-
184-
The template for this profile is based on the sample websphere liberty project :
185-
[websphere liberty profile sample project](https://gitlab.com/fugerit-org/fj-sample-wlp)
186-
187-
The server configuration template is here : [src/main/freemarker/template/server_ftl.xml](src/main/freemarker/template/server_ftl.xml)
188-
189-
NOTE: the template has been configured to use port 8080.

0 commit comments

Comments
 (0)