123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- <?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>com.greentech</groupId>
- <artifactId>gateservice</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>gateservice</name>
- <description>gateservice</description>
- <properties>
- <java.version>1.8</java.version>
- <!-- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>-->
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
- <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
- </properties>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>1.5.8.RELEASE</version>
- <relativePath/> <!-- lookup parent from repository -->
- </parent>
- <dependencies>
- <!--SpringBoot启动依赖-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- <version>2.6.3</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <version>2.6.3</version>
- <scope>test</scope>
- </dependency>
- <!--集成mysql数据库-->
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>8.0.28</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-jdbc</artifactId>
- <version>2.6.1</version>
- </dependency>
- <!--spring boot集成mybatis的依赖-->
- <dependency>
- <groupId>org.mybatis.spring.boot</groupId>
- <artifactId>mybatis-spring-boot-starter</artifactId>
- <version>2.1.0</version>
- </dependency>
- <!-- fastjson -->
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>2.0.23</version>
- </dependency>
- <dependency>
- <groupId>com.greentech.netsdk</groupId>
- <artifactId>netsdk</artifactId>
- <version>1.0</version>
- <scope>system</scope>
- <systemPath>${pom.basedir}/lib/netsdk.jar</systemPath>
- </dependency>
- <!-- <dependency>
- <groupId>com.greentech.jna</groupId>
- <artifactId>jna</artifactId>
- <version>1.0</version>
- <scope>system</scope>
- <systemPath>${pom.basedir}/lib/jna.jar</systemPath>
- </dependency>-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter</artifactId>
- <version>2.6.2</version>
- </dependency>
- </dependencies>
- <build>
- <defaultGoal>compile</defaultGoal>
- <plugins>
- <!-- <plugin>
- <groupId>com.greentech.jna</groupId>
- <artifactId>jna</artifactId>
- <version>1.0</version>
- </plugin>-->
- <!--<plugin>
- <groupId>com.greentech.netsdk</groupId>
- <artifactId>netsdk</artifactId>
- <version>1.0</version>
- </plugin>-->
- <!--添加mybatis generator maven插件-->
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>2.3.4.RELEASE</version>
- <configuration>
- <includeSystemScope>true</includeSystemScope>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>3.2.0</version>
- <configuration>
- <archive>
- <manifestFile>${project.basedir}/src/main/java/com/greentech/gateservice/META-INF/MANIFEST.MF</manifestFile>
- </archive>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.mybatis.generator</groupId>
- <artifactId>mybatis-generator-maven-plugin</artifactId>
- <version>1.3.7</version>
- <configuration>
- <!--generatorConfig.xml位置-->
- <configurationFile>src/main/resources/code_generator.xml</configurationFile>
- <verbose>true</verbose>
- <!-- 如果本来就有mapper、dao文件了就覆盖-->
- <overwrite>true</overwrite>
- </configuration>
- <executions>
- <execution>
- <id>Generate MyBatis Artifacts</id>
- <!--<phase>package</phase>-->
- <phase>deploy</phase>
- <goals>
- <goal>generate</goal>
- </goals>
- </execution>
- </executions>
- <!--此处必须添加mysql驱动包-->
- <dependencies>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <scope>runtime</scope>
- <version>8.0.26</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- <!--扫描指定的配置文件 如果mapper的xml文件没有放在resources目录下,而是放在了和接口类在一起的包,这里就必须配置-->
- <resources>
- <resource>
- <directory>src/main/java</directory>
- <includes>
- <include>**/*.csv</include>
- <include>**/*.yml</include>
- <include>**/*.xml</include>
- <include>**/*.properties</include>
- </includes>
- <filtering>false</filtering>
- </resource>
- <resource>
- <directory>src/main/resources</directory>
- <includes>
- <include>**/*.csv</include>
- <include>**/*.yml</include>
- <include>**/*.xml</include>
- <include>**/*.properties</include>
- </includes>
- <filtering>false</filtering>
- </resource>
- </resources>
- </build>
- </project>
|