| | |
| | | <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> |
| | |
| | | <version>1.6.2</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.pcalife.otp</groupId> |
| | | <artifactId>pollex</artifactId> |
| | | <version>1.1.0</version> |
| | | <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>${basedir}/src/main/resources/lib/pcalife-otp.jar</systemPath> |
| | | <systemPath>${project.basedir}/src/main/resources/WEB-INF/lib/spring-core-5.3.5.jar</systemPath> |
| | | </dependency> |
| | | <!-- jhipster-needle-maven-add-dependency --> |
| | | </dependencies> |
| | |
| | | <warSourceDirectory>target/classes/static/</warSourceDirectory> |
| | | <webResources> |
| | | <resource> |
| | | <directory>src/main/resources/lib</directory> |
| | | <targetPath>WEB-INF/lib</targetPath> |
| | | <filtering>true</filtering> |
| | | <includes> |
| | | <include>**/*.jar</include> |
| | | </includes> |
| | | </resource> |
| | | <resource> |
| | | <directory>src/main/webapp</directory> |
| | | <directory>src/main/resources</directory> |
| | | <includes> |
| | | <include>WEB-INF/**</include> |
| | | </includes> |
| | |
| | | </properties> |
| | | </profile> |
| | | <profile> |
| | | <id>pollex</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>pollex${profile.api-docs}${profile.tls}${profile.no-liquibase}</spring.profiles.active> |
| | | </properties> |
| | | </profile> |
| | | <profile> |
| | | <id>sit</id> |
| | | <dependencies> |
| | | <dependency> |
| | |
| | | </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> |