Skip to content

Commit

Permalink
maven config ok
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaroche committed Sep 5, 2020
1 parent 44ca5e0 commit 534310c
Show file tree
Hide file tree
Showing 19 changed files with 76 additions and 46 deletions.
23 changes: 9 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-parent</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-samples</artifactId>
<name>vertigo-samples</name>
<packaging>pom</packaging>
<version>3.0.0-RC</version>

<properties>
<maven.compiler.source>11</maven.compiler.source>
Expand All @@ -23,22 +24,16 @@
</properties>

<modules>
<module>sample-hello-world</module>
<module>sample-account</module>
<module>sample-component</module>
<module>sample-store</module>
<module>sample-vega</module>

<module>sample-ifttt</module>
<module>sample-mail</module>
<module>sample-twitter</module>
<!-- <module>sample-notifications</module>
<module>sample-gutenberg</module>
-->
<module>sample-dao</module>
<module>sample-config</module>
<module>sample-aop-modules</module>
<module>sample-crystal</module>
<module>sample-crystal-full</module>
<module>sample-account</module>
<module>sample-dao</module>
<module>sample-dao-full</module>
<module>sample-hello-world</module>
<module>sample-notifications</module>
<module>sample-quarto</module>
</modules>

Expand Down
2 changes: 1 addition & 1 deletion sample-account/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-account</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions sample-aop-modules/01-sample-gutenberg-corrige/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<artifactId>sample-aop-modules</artifactId>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-gutenberg-corrige</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions sample-aop-modules/01-sample-gutenberg/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<artifactId>sample-aop-modules</artifactId>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-gutenberg-exo</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions sample-aop-modules/02-sample-ifttt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<artifactId>sample-aop-modules</artifactId>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-ifttt-exo</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions sample-aop-modules/02-sample-mail/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<artifactId>sample-aop-modules</artifactId>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-mail-exo</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions sample-aop-modules/02-sample-notifications-corrige/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<artifactId>sample-aop-modules</artifactId>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-notifications-corrige</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions sample-aop-modules/02-sample-twitter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<artifactId>sample-aop-modules</artifactId>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-twitter-exo</artifactId>
Expand Down
26 changes: 26 additions & 0 deletions sample-aop-modules/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-RC</version>
</parent>

<artifactId>sample-aop-modules</artifactId>
<name>sample-aop-modules</name>
<packaging>pom</packaging>
<version>3.0.0-RC</version>

<modules>
<module>01-sample-gutenberg</module>
<module>01-sample-gutenberg-corrige</module>
<module>02-sample-ifttt</module>
<module>02-sample-mail</module>
<module>02-sample-notifications-corrige</module>
<module>02-sample-twitter</module>
</modules>

</project>
2 changes: 1 addition & 1 deletion sample-component/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-component</artifactId>
Expand Down
17 changes: 11 additions & 6 deletions sample-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-config</artifactId>
Expand All @@ -21,19 +21,24 @@
</dependency>
<dependency>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-vega-api</artifactId>
<artifactId>vertigo-vega</artifactId>
<version>${vertigo.version}</version>
</dependency>
<dependency>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-vega-impl</artifactId>
<artifactId>vertigo-vega</artifactId>
<version>${vertigo.version}</version>
</dependency>

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>9.4.31.v20200723</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-server</artifactId>
<version>9.4.31.v20200723</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package io.vertigo.samples.config;

import io.vertigo.app.AutoCloseableApp;
import io.vertigo.app.config.NodeConfig;
import io.vertigo.app.config.ModuleConfig;
import io.vertigo.commons.CommonsFeatures;
import io.vertigo.connectors.javalin.JavalinFeatures;
import io.vertigo.core.node.AutoCloseableNode;
import io.vertigo.core.node.config.ModuleConfig;
import io.vertigo.core.node.config.NodeConfig;
import io.vertigo.core.param.Param;
import io.vertigo.datamodel.DataModelFeatures;
import io.vertigo.vega.VegaFeatures;

/***
Expand All @@ -21,15 +23,17 @@ public class ConfigRun {

public static void main(final String[] args) {
final NodeConfig nodeConfig = NodeConfig.builder()
.addModule(new JavalinFeatures().withEmbeddedServer(Param.of("port", "8080")).build())
.addModule(new CommonsFeatures().build())
.addModule(new VegaFeatures().withWebServices().withWebServicesEmbeddedServer(Param.of("port", "8080")).build())
.addModule(new DataModelFeatures().build())
.addModule(new VegaFeatures().withWebServices().withJavalinWebServerPlugin().build())
//-----Declaration of a module named 'Hello' which contains a webservice component.
.addModule(ModuleConfig.builder("Hello")
.addComponent(HelloWebServices.class)
.build())
.build();

try (AutoCloseableApp app = new AutoCloseableApp(nodeConfig)) {
try (AutoCloseableNode node = new AutoCloseableNode(nodeConfig)) {
//do whatever you want
}
}
Expand Down
2 changes: 1 addition & 1 deletion sample-crystal-full/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-crystal-full</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion sample-crystal/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-crystal</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion sample-dao-full/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-dao-full</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion sample-dao/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-dao</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion sample-hello-world/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-hello-world</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion sample-notifications/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-notifications</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion sample-quarto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.vertigo</groupId>
<artifactId>vertigo-samples</artifactId>
<version>3.0.0-SNAPSHOT</version>
<version>3.0.0-RC</version>
</parent>

<artifactId>vertigo-sample-quarto</artifactId>
Expand Down

0 comments on commit 534310c

Please sign in to comment.