| | |
| | | <properties> |
| | | <!-- Build properties --> |
| | | <maven.version>3.3.9</maven.version> |
| | | <java.version>11</java.version> |
| | | <java.version>8</java.version> |
| | | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| | | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| | | <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format> |
| | |
| | | <profile.tls /> |
| | | |
| | | <!-- Dependency versions --> |
| | | <jhipster-dependencies.version>7.3.0</jhipster-dependencies.version> |
| | | <jhipster-dependencies.version>7.0.1</jhipster-dependencies.version> |
| | | <!-- The spring-boot version should match the one managed by |
| | | https://mvnrepository.com/artifact/tech.jhipster/jhipster-dependencies/${jhipster-dependencies.version} --> |
| | | <spring-boot.version>2.5.5</spring-boot.version> |
| | | <spring-boot.version>2.4.4</spring-boot.version> |
| | | <!-- The hibernate version should match the one managed by |
| | | https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies/${spring-boot.version} --> |
| | | <hibernate.version>5.4.32.Final</hibernate.version> |
| | |
| | | </dependencyManagement> |
| | | |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>com.pollex.pam.business</groupId> |
| | | <artifactId>PamBusiness</artifactId> |
| | | <version>1.0-SNAPSHOT</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>tech.jhipster</groupId> |
| | | <artifactId>jhipster-framework</artifactId> |
| | |
| | | <groupId>org.springframework.security</groupId> |
| | | <artifactId>spring-security-messaging</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.apache.httpcomponents</groupId> |
| | | <artifactId>httpclient</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.apache.axis</groupId> |
| | | <artifactId>axis</artifactId> |
| | | <version>1.4</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>javax.xml.rpc</groupId> |
| | | <artifactId>javax.xml.rpc-api</artifactId> |
| | | <version>1.1.2</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>commons-discovery</groupId> |
| | | <artifactId>commons-discovery</artifactId> |
| | | <version>0.5</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>wsdl4j</groupId> |
| | | <artifactId>wsdl4j</artifactId> |
| | | <version>1.6.2</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.google.code.gson</groupId> |
| | | <artifactId>gson</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- |
| | | |
| | | 由於 wildfly 10 上面會出現 ModuleNotFoundException: jdk.unsupported:main 的錯誤 |
| | | 根據查到的資料,為 spring-core 在 5.3.3 以上時,MANIFEST.MF 被加入了 Dependencies: jdk.unsupported |
| | | |
| | | 解法是將 spring core 降至2.3.X,或者 wildfly 升至 20 以上,但這兩個方法皆不容易 |
| | | |
| | | 目前則改由spring core jar內的 MANIFEST.MF 刪除 Dependencies: jdk.unsupported |
| | | |
| | | |
| | | https://stackoverflow.com/questions/65100927/springboot-wildfly-10-deployment-error-jdk-unsupported-module-not-found |
| | | --> |
| | | <dependency> |
| | | <groupId>org.springframework</groupId> |
| | | <artifactId>spring-core</artifactId> |
| | | <version>5.3.5</version> |
| | | <scope>system</scope> |
| | | <systemPath>${project.basedir}/src/main/resources/WEB-INF/lib/spring-core-5.3.5.jar</systemPath> |
| | | </dependency> |
| | | <!-- jhipster-needle-maven-add-dependency --> |
| | | </dependencies> |
| | | |
| | |
| | | <configuration> |
| | | <warSourceIncludes>WEB-INF/**,META-INF/**</warSourceIncludes> |
| | | <failOnMissingWebXml>false</failOnMissingWebXml> |
| | | <warSourceDirectory>target/classes/static/</warSourceDirectory> |
| | | <webResources> |
| | | <resource> |
| | | <directory>src/main/resources</directory> |
| | | <includes> |
| | | <include>WEB-INF/**</include> |
| | | </includes> |
| | | </resource> |
| | | </webResources> |
| | | </configuration> |
| | | </plugin> |
| | | <plugin> |
| | |
| | | </execution> |
| | | </executions> |
| | | <configuration> |
| | | <includeSystemScope>true</includeSystemScope> |
| | | <mainClass>${start-class}</mainClass> |
| | | <fork>true</fork> |
| | | <!-- |
| | |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-undertow</artifactId> |
| | | <scope>provided</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | |
| | | </properties> |
| | | </profile> |
| | | <profile> |
| | | <id>prod</id> |
| | | <id>pollex</id> |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-undertow</artifactId> |
| | | <scope>provided</scope> |
| | | </dependency> |
| | | </dependencies> |
| | | <build> |
| | |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | </plugins> |
| | | </build> |
| | | <properties> |
| | | <!-- default Spring profiles --> |
| | | <spring.profiles.active>pollex${profile.api-docs}${profile.tls}${profile.no-liquibase}</spring.profiles.active> |
| | | </properties> |
| | | </profile> |
| | | <profile> |
| | | <id>sit</id> |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-undertow</artifactId> |
| | | <scope>provided</scope> |
| | | </dependency> |
| | | </dependencies> |
| | | <build> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>io.github.git-commit-id</groupId> |
| | | <artifactId>git-commit-id-maven-plugin</artifactId> |
| | | <artifactId>maven-clean-plugin</artifactId> |
| | | <configuration> |
| | | <filesets> |
| | | <fileset> |
| | | <directory>target/classes/static/</directory> |
| | | </fileset> |
| | | </filesets> |
| | | </configuration> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <executions> |
| | | <execution> |
| | | <goals> |
| | | <goal>build-info</goal> |
| | | </goals> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | </plugins> |
| | | </build> |
| | | <properties> |
| | | <!-- default Spring profiles --> |
| | | <spring.profiles.active>sit${profile.api-docs}${profile.tls}${profile.no-liquibase}</spring.profiles.active> |
| | | </properties> |
| | | </profile> |
| | | <profile> |
| | | <id>uat</id> |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-undertow</artifactId> |
| | | <scope>provided</scope> |
| | | </dependency> |
| | | </dependencies> |
| | | <build> |
| | | <plugins> |
| | | <plugin> |
| | | <artifactId>maven-clean-plugin</artifactId> |
| | | <configuration> |
| | | <filesets> |
| | | <fileset> |
| | | <directory>target/classes/static/</directory> |
| | | </fileset> |
| | | </filesets> |
| | | </configuration> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <executions> |
| | | <execution> |
| | | <goals> |
| | | <goal>build-info</goal> |
| | | </goals> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | </plugins> |
| | | </build> |
| | | <properties> |
| | | <!-- default Spring profiles --> |
| | | <spring.profiles.active>uat${profile.api-docs}${profile.tls}${profile.no-liquibase}</spring.profiles.active> |
| | | </properties> |
| | | </profile> |
| | | <profile> |
| | | <id>prod</id> |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-undertow</artifactId> |
| | | <scope>provided</scope> |
| | | </dependency> |
| | | </dependencies> |
| | | <build> |
| | | <plugins> |
| | | <plugin> |
| | | <artifactId>maven-clean-plugin</artifactId> |
| | | <configuration> |
| | | <filesets> |
| | | <fileset> |
| | | <directory>target/classes/static/</directory> |
| | | </fileset> |
| | | </filesets> |
| | | </configuration> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <executions> |
| | | <execution> |
| | | <goals> |
| | | <goal>build-info</goal> |
| | | </goals> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | </plugins> |
| | | </build> |