123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <?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/xsd/maven-4.0.0.xsd">
- <parent>
- <artifactId>hsweb-framework</artifactId>
- <groupId>org.hsweb</groupId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>hsweb-web-run</artifactId>
- <!--配置信息-->
- <properties>
- <app.name>hsweb-run</app.name>
- <app.version>${project.version}</app.version>
- </properties>
- <!--环境配置-->
- <profiles>
- <profile>
- <id>dev</id>
- <properties>
- <environment.package>develop</environment.package>
- <jdbc.url>jdbc:oracle:thin:@127.0.0.1:1521:XE</jdbc.url>
- <jdbc.username>cyjg</jdbc.username>
- <jdbc.password>cyjg</jdbc.password>
- <jdbc.driverClassName>oracle.jdbc.driver.OracleDriver</jdbc.driverClassName>
- </properties>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- </profile>
- <profile>
- <id>prod</id>
- <properties>
- <environment.package>product</environment.package>
- <logging.path>/var/logger/hsweb/</logging.path>
- <jdbc.url>jdbc:oracle:thin:@oracle:1521:XE</jdbc.url>
- <jdbc.username>cyjg</jdbc.username>
- <jdbc.password>cyjg</jdbc.password>
- <jdbc.driverClassName>oracle.jdbc.driver.OracleDriver</jdbc.driverClassName>
- </properties>
- </profile>
- </profiles>
- <build>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>
- true
- </filtering>
- </resource>
- <resource>
- <directory>src/main/environment/${environment.package}</directory>
- <filtering>
- true
- </filtering>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <mainClass>org.hsweb.web.boot.Run</mainClass>
- <layout>ZIP</layout>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>springloaded</artifactId>
- <version>1.2.5.RELEASE</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>0.4.5</version>
- <configuration>
- <imageName>${project.artifactId}</imageName>
- <baseImage>hsweb/java8</baseImage>
- <entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.build.directory}</directory>
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.hsweb</groupId>
- <artifactId>hsweb-web-controller</artifactId>
- </dependency>
- <!--<dependency>-->
- <!--<groupId>org.springframework.boot</groupId>-->
- <!--<artifactId>spring-boot-devtools</artifactId>-->
- <!--</dependency>-->
- <dependency>
- <groupId>org.hsweb</groupId>
- <artifactId>hsweb-web-service-impl-common</artifactId>
- </dependency>
- <dependency>
- <groupId>org.hsweb</groupId>
- <artifactId>hsweb-web-dao-impl-mybatis</artifactId>
- </dependency>
- <!--<dependency>-->
- <!--<groupId>org.springframework</groupId>-->
- <!--<artifactId>springloaded</artifactId>-->
- <!--</dependency>-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-freemarker</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-configuration-processor</artifactId>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- </dependency>
- <dependency>
- <groupId>com.oracle</groupId>
- <artifactId>ojdbc14</artifactId>
- </dependency>
- </dependencies>
- </project>
|