| <?xml version="1.0" encoding="UTF-8"?> |
| <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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <artifactId>simpleapp-jpa</artifactId> |
| <groupId>org.apache.causeway.starters</groupId> |
| <version>2.0.0-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>simpleapp-jpa-webapp</artifactId> |
| <name>SimpleApp (JPA) - Webapp</name> |
| |
| <description> |
| Assembles and runs both the Wicket viewer and the Restfulobjects viewer |
| in a single webapp configured to run using the JPA/EclipseLink object store. |
| </description> |
| |
| <packaging>jar</packaging> |
| |
| <properties> |
| <!-- https://stackoverflow.com/questions/38983934/cannot-get-maven-project-version-property-in-a-spring-application-with-value/38983935#38983935 --> |
| <resource.delimiter>^</resource.delimiter> |
| </properties> |
| |
| <build> |
| <resources> |
| <resource> |
| <filtering>true</filtering> |
| <directory>src/main/resources</directory> |
| <includes> |
| <include>application.yml</include> |
| </includes> |
| </resource> |
| <resource> |
| <filtering>false</filtering> |
| <directory>src/main/resources</directory> |
| </resource> |
| <resource> |
| <filtering>false</filtering> |
| <directory>src/main/java</directory> |
| <includes> |
| <include>**</include> |
| </includes> |
| <excludes> |
| <exclude>**/*.java</exclude> |
| </excludes> |
| </resource> |
| </resources> |
| <plugins> |
| <!-- running: mvn spring-boot:run --> |
| <plugin> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-maven-plugin</artifactId> |
| <configuration> |
| <classifier>exec</classifier> |
| <agents> |
| <agent>${settings.localRepository}/org/springframework/spring-instrument/${spring-framework.version}/spring-instrument-${spring-framework.version}.jar</agent> |
| </agents> |
| <requiresUnpack> |
| <dependency> |
| <groupId>org.asciidoctor</groupId> |
| <artifactId>asciidoctorj</artifactId> |
| </dependency> |
| </requiresUnpack> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>simpleapp-jpa-module-simple</artifactId> |
| </dependency> |
| |
| <!-- causeway --> |
| <dependency> |
| <groupId>org.apache.causeway.mavendeps</groupId> |
| <artifactId>causeway-mavendeps-webapp</artifactId> |
| <type>pom</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.causeway.viewer</groupId> |
| <artifactId>causeway-viewer-wicket-viewer</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.causeway.viewer</groupId> |
| <artifactId>causeway-viewer-restfulobjects-jaxrsresteasy</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.persistence</groupId> |
| <artifactId>causeway-persistence-jpa-eclipselink</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.viewer</groupId> |
| <artifactId>causeway-viewer-wicket-applib</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.testing</groupId> |
| <artifactId>causeway-testing-h2console-ui</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.extensions</groupId> |
| <artifactId>causeway-extensions-flyway-impl</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.extensions</groupId> |
| <artifactId>causeway-extensions-layoutloaders-github</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.valuetypes</groupId> |
| <artifactId>causeway-valuetypes-asciidoc-metamodel</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.causeway.valuetypes</groupId> |
| <artifactId>causeway-valuetypes-asciidoc-ui-wkt</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.extensions</groupId> |
| <artifactId>causeway-extensions-tabular-excel</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.extensions</groupId> |
| <artifactId>causeway-extensions-fullcalendar-wicket-ui</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.extensions</groupId> |
| <artifactId>causeway-extensions-pdfjs-wicket-ui</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.extensions</groupId> |
| <artifactId>causeway-extensions-secman-encryption-spring</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.causeway.extensions</groupId> |
| <artifactId>causeway-extensions-secman-persistence-jpa</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.extensions</groupId> |
| <artifactId>causeway-extensions-sessionlog-persistence-jpa</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.extensions</groupId> |
| <artifactId>causeway-extensions-audittrail-persistence-jpa</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.extensions</groupId> |
| <artifactId>causeway-extensions-commandlog-persistence-jpa</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.extensions</groupId> |
| <artifactId>causeway-extensions-executionlog-persistence-jpa</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.causeway.extensions</groupId> |
| <artifactId>causeway-extensions-executionoutbox-persistence-jpa</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-actuator-autoconfigure</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-quartz</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-logging</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-log4j2</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.github.gavlyukovskiy</groupId> |
| <artifactId>p6spy-spring-boot-starter</artifactId> |
| <version>1.8.0</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-instrument</artifactId> |
| </dependency> |
| |
| </dependencies> |
| |
| <profiles> |
| |
| <profile> |
| <id>jdbc-sqlserver</id> |
| <activation> |
| <property> |
| <name>spring.profiles.active</name> |
| <value>SQLSERVER</value> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>com.microsoft.sqlserver</groupId> |
| <artifactId>mssql-jdbc</artifactId> |
| <version>7.4.1.jre8</version> |
| </dependency> |
| </dependencies> |
| </profile> |
| |
| <profile> |
| <id>jdbc-postgresql</id> |
| <activation> |
| <property> |
| <name>spring.profiles.active</name> |
| <value>POSTGRESQL</value> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>org.postgresql</groupId> |
| <artifactId>postgresql</artifactId> |
| <!-- <version>42.2.12</version> ... version already managed --> |
| </dependency> |
| </dependencies> |
| </profile> |
| |
| <profile> |
| <id>deploy-to-docker-io</id> |
| <activation> |
| <property> |
| <name>docker</name> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>com.google.cloud.tools</groupId> |
| <artifactId>jib-maven-plugin</artifactId> |
| <configuration> |
| <from> |
| <image>adoptopenjdk/openjdk11:x86_64-alpine-jre-11.0.10_9</image> |
| </from> |
| <container> |
| <jvmFlags> |
| <jvmFlag>-Xmx512m</jvmFlag> |
| </jvmFlags> |
| <mainClass>domainapp.webapp.SimpleApp</mainClass> |
| <ports> |
| <port>8080</port> |
| </ports> |
| </container> |
| <to> |
| <image>docker.io/apache/causeway-app-simpleapp</image> |
| <tags> |
| <tag>${env.REVISION}</tag> |
| </tags> |
| <auth> |
| <username>${env.DOCKER_REGISTRY_USERNAME}</username> |
| <password>${env.DOCKER_REGISTRY_PASSWORD}</password> |
| </auth> |
| </to> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |