Added a fixed dependency for the mysql-jdbc-connector to the build
[examples/facebook-app] / pom.xml
diff --git a/pom.xml b/pom.xml
index 91aaa8b..656ed18 100644 (file)
--- a/pom.xml
+++ b/pom.xml
 
   <properties>
     <java.version>1.8</java.version>
+    <!-- app settings -->
+    <yourshouter.facebook.app.server.port>8443</yourshouter.facebook.app.server.port>
+    <yourshouter.facebook.app.server.language>de</yourshouter.facebook.app.server.language>
+    <yourshouter.facebook.app.server.country>DE</yourshouter.facebook.app.server.country>
+    <yourshouter.facebook.app.server.timezone>Europe/Berlin</yourshouter.facebook.app.server.timezone>
     <!-- settings for the Graph-API -->
-    <facebook.app.id>NOT_SET</facebook.app.id>
-    <facebook.app.secret>NOT_SET</facebook.app.secret>
-    <facebook.app.canvas>NOT_SET</facebook.app.canvas>
+    <yourshouter.facebook.app.client.id>NOT_SET</yourshouter.facebook.app.client.id>
+    <yourshouter.facebook.app.client.secret>NOT_SET</yourshouter.facebook.app.client.secret>
+    <yourshouter.facebook.app.client.canvas>NOT_SET</yourshouter.facebook.app.client.canvas>
     <!-- settings for the Apache Commons Http-Client -->
-    <httpclient.timeout.connection>60000</httpclient.timeout.connection>
-    <httpclient.timeout.read>60000</httpclient.timeout.read>
-    <httpclient.logging.level>ERROR</httpclient.logging.level>
+    <yourshouter.facebook.app.httpclient.timeout.connection>60000</yourshouter.facebook.app.httpclient.timeout.connection>
+    <yourshouter.facebook.app.httpclient.timeout.read>60000</yourshouter.facebook.app.httpclient.timeout.read>
+    <yourshouter.facebook.app.httpclient.logging.level>ERROR</yourshouter.facebook.app.httpclient.logging.level>
+    <!-- database settings for tests -->
+    <yourshouter.facebook.app.jdbc.groupId>com.h2database</yourshouter.facebook.app.jdbc.groupId>
+    <yourshouter.facebook.app.jdbc.artifactId>h2</yourshouter.facebook.app.jdbc.artifactId>
+    <yourshouter.facebook.app.jdbc.url><![CDATA[jdbc:h2:~/test;DB_CLOSE_ON_EXIT=FALSE]]></yourshouter.facebook.app.jdbc.url>
+    <yourshouter.facebook.app.jdbc.username>sa</yourshouter.facebook.app.jdbc.username>
+    <yourshouter.facebook.app.jdbc.password></yourshouter.facebook.app.jdbc.password>
   </properties>
 
   <dependencies>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-thymeleaf</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-security</artifactId>
+    </dependency>
     <dependency>
       <groupId>org.springframework.social</groupId>
       <artifactId>spring-social-facebook</artifactId>
       <groupId>org.springframework.social</groupId>
       <artifactId>spring-social-facebook-web</artifactId>
     </dependency>
-    <dependency>
-      <groupId>org.springframework.security</groupId>
-      <artifactId>spring-security-crypto</artifactId>
-      <scope>runtime</scope>
-    </dependency>
     <!-- Httpclient -->
     <dependency>
       <groupId>org.apache.httpcomponents</groupId>
       <artifactId>httpclient</artifactId>
     </dependency>
+    <!-- Persistence -->
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-data-jpa</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>${yourshouter.facebook.app.jdbc.groupId}</groupId>
+      <artifactId>${yourshouter.facebook.app.jdbc.artifactId}</artifactId>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>mysql</groupId>
+      <artifactId>mysql-connector-java</artifactId>
+      <version>${mysql.version}</version>
+    </dependency>
   </dependencies>
 
   <build>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-maven-plugin</artifactId>
       </plugin>
+      <plugin>
+        <groupId>io.fabric8</groupId>
+        <artifactId>docker-maven-plugin</artifactId>
+        <version>0.26.0</version>
+        <configuration>
+          <images>
+            <image>
+              <name>yourshouter/%a:%v</name>
+              <build>
+                <from>openjdk:8-jre-alpine</from>
+                <maintainer>kai@yourshouter.com</maintainer>
+                <tags>
+                  <tag>${project.version}</tag>
+                </tags>
+                <ports>
+                  <port>${yourshouter.facebook.app.server.port}/tcp</port>
+                </ports>
+                <entryPoint>
+                  <!-- exec form for ENTRYPOINT -->
+                  <exec>
+                    <arg>java</arg>
+                    <arg>-Duser.language=${yourshouter.api.language}</arg>
+                    <arg>-Duser.country=${yourshouter.api.country}</arg>
+                    <arg>-Duser.timezone=${yourshouter.api.timezone}</arg>
+                    <arg>-jar</arg>
+                    <arg>/maven/${project.build.finalName}.jar</arg>
+                  </exec>
+                </entryPoint>
+                <assembly>
+                  <descriptorRef>artifact</descriptorRef>
+                </assembly>
+              </build>
+            </image>
+          </images>
+        </configuration>
+      </plugin>
     </plugins>
   </build>