java 整合kotlin maven库引入"/>
java 整合kotlin maven库引入
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=".0.0"xmlns:xsi=""xsi:schemaLocation=".0.0 .0.0.xsd"><parent><artifactId>sites-school</artifactId><groupId>com.tongsheng</groupId><version>1.0-SNAPSHOT</version></parent><modelVersion>4.0.0</modelVersion><packaging>jar</packaging><artifactId>school-core</artifactId><properties><mavenpiler.source>8</mavenpiler.source><mavenpiler.target>8</mavenpiler.target></properties><dependencies><!-- lombok --><dependency><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId></dependency><!-- feign --><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-openfeign</artifactId></dependency><!-- SpringBoot --><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-jdbc</artifactId></dependency><!-- redis --><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-redis</artifactId></dependency><!-- 热部署 --><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><scope>runtime</scope></dependency><!-- websocket --><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-websocket</artifactId></dependency><dependency><groupId>com.sun.jersey</groupId><artifactId>jersey-client</artifactId></dependency><!-- mybatis plus --><dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-boot-starter</artifactId></dependency><!-- pagehelper 分页插件 --><dependency><groupId>com.github.pagehelper</groupId><artifactId>pagehelper-spring-boot-starter</artifactId></dependency><!-- druid 阿里巴巴数据库连接池 --><dependency><groupId>com.alibaba</groupId><artifactId>druid-spring-boot-starter</artifactId></dependency><dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><scope>runtime</scope></dependency><!-- 阿里云短信 --><dependency><groupId>com.aliyun</groupId><artifactId>aliyun-java-sdk-core</artifactId></dependency><!-- Apache Lang3 --><dependency><groupId>org.apachemons</groupId><artifactId>commons-lang3</artifactId></dependency><!-- shiro --><dependency><groupId>org.apache.shiro</groupId><artifactId>shiro-spring</artifactId></dependency><dependency><groupId>org.apache.shiro</groupId><artifactId>shiro-ehcache</artifactId></dependency><!-- jwt --><dependency><groupId>com.auth0</groupId><artifactId>java-jwt</artifactId></dependency><!-- JSON 解析器和生成器 --><dependency><groupId>com.alibaba</groupId><artifactId>fastjson</artifactId></dependency><!-- excel模板导出 --><dependency><groupId>org.jxls</groupId><artifactId>jxls</artifactId></dependency><dependency><groupId>org.jxls</groupId><artifactId>jxls-poi</artifactId></dependency><dependency><groupId>org.jxls</groupId><artifactId>jxls-jexcel</artifactId></dependency><dependency><groupId>joda-time</groupId><artifactId>joda-time</artifactId></dependency><!-- hutool-all --><dependency><groupId>cn.hutool</groupId><artifactId>hutool-all</artifactId></dependency><!-- 截取缩略图 --><dependency><groupId>net.coobird</groupId><artifactId>thumbnailator</artifactId></dependency><!-- FTP --><dependency><groupId>commons-net</groupId><artifactId>commons-net</artifactId></dependency><!-- kotlin --><dependency><groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-stdlib</artifactId></dependency><dependency><groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-stdlib-jdk8</artifactId></dependency><dependency><groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-reflect</artifactId></dependency></dependencies><build><plugins><plugin><groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-maven-plugin</artifactId><version>${kotlin.version}</version><configuration><correctErrorTypes>true</correctErrorTypes><languageVersion>${kotlin.language.version}</languageVersion></configuration><dependencies><dependency><groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-maven-allopen</artifactId><version>${kotlin.version}</version></dependency><dependency><groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-maven-noarg</artifactId><version>${kotlin.version}</version></dependency></dependencies><executions><execution><id>compile</id><goals><goal>compile</goal></goals><configuration><sourceDirs><sourceDir>${project.basedir}/src/main/kotlin</sourceDir><sourceDir>${project.basedir}/src/main/java</sourceDir></sourceDirs></configuration></execution><execution><id>test-compile</id><goals><goal>test-compile</goal></goals><configuration><sourceDirs><sourceDir>${project.basedir}/src/test/kotlin</sourceDir><sourceDir>${project.basedir}/src/test/java</sourceDir><sourceDir>target/generated-sources/kapt/test</sourceDir></sourceDirs></configuration></execution></executions><!-- <executions>--><!-- <execution>--><!-- <id>kapt</id>--><!-- <goals>--><!-- <goal>kapt</goal>--><!-- </goals>--><!-- <configuration>--><!-- <correctErrorTypes>true</correctErrorTypes>--><!-- <sourceDirs>--><!-- <sourceDir>${project.basedir}/src/main/kotlin</sourceDir>--><!-- <sourceDir>${project.basedir}/src/main/java</sourceDir>--><!-- </sourceDirs>--><!-- <annotationProcessorPaths>--><!-- <annotationProcessorPath>--><!-- <groupId>com.google.dagger</groupId>--><!-- <artifactId>dagger-compiler</artifactId>--><!-- <version>2.9</version>--><!-- </annotationProcessorPath>--><!-- <annotationProcessorPath>--><!-- <groupId>com.querydsl</groupId>--><!-- <artifactId>querydsl-apt</artifactId>--><!-- <version>${querydsl.version}</version>--><!-- <classifier>jpa</classifier>--><!-- </annotationProcessorPath>--><!-- <annotationProcessorPath>--><!-- <groupId>org.mapstruct</groupId>--><!-- <artifactId>mapstruct-processor</artifactId>--><!-- <version>${mapstruct.version}</version>--><!-- </annotationProcessorPath>--><!-- </annotationProcessorPaths>--><!-- </configuration>--><!-- </execution>--><!-- <execution>--><!-- <id>test-kapt</id>--><!-- <goals>--><!-- <goal>test-kapt</goal>--><!-- </goals>--><!-- <configuration>--><!-- <sourceDirs>--><!-- <sourceDir>${project.basedir}/src/test/kotlin</sourceDir>--><!-- <sourceDir>${project.basedir}/src/test/java</sourceDir>--><!-- </sourceDirs>--><!-- <annotationProcessorPaths>--><!-- <annotationProcessorPath>--><!-- <groupId>com.google.dagger</groupId>--><!-- <artifactId>dagger-compiler</artifactId>--><!-- <version>2.9</version>--><!-- </annotationProcessorPath>--><!-- <annotationProcessorPath>--><!-- <groupId>com.querydsl</groupId>--><!-- <artifactId>querydsl-apt</artifactId>--><!-- <version>${querydsl.version}</version>--><!-- <classifier>jpa</classifier>--><!-- </annotationProcessorPath>--><!-- <annotationProcessorPath>--><!-- <groupId>org.mapstruct</groupId>--><!-- <artifactId>mapstruct-processor</artifactId>--><!-- <version>${mapstruct.version}</version>--><!-- </annotationProcessorPath>--><!-- </annotationProcessorPaths>--><!-- </configuration>--><!-- </execution>--><!-- </executions>--></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.8.1</version><configuration><source>${java.version}</source><target>${java.version}</target><encoding>${project.build.sourceEncoding}</encoding><showDeprecation>true</showDeprecation><showWarnings>true</showWarnings><compilerArgs><arg>-Amapstruct.suppressGeneratorTimestamp=true</arg><arg>-Amapstruct.defaultComponentModel=spring</arg></compilerArgs></configuration><executions><!-- Replacing default-compile as it is treated specially by maven --><execution><id>default-compile</id><phase>none</phase></execution><!-- Replacing default-testCompile as it is treated specially by maven --><execution><id>default-testCompile</id><phase>none</phase></execution><execution><id>java-compile</id><phase>compile</phase><goals><goal>compile</goal></goals></execution><execution><id>java-test-compile</id><phase>test-compile</phase><goals><goal>testCompile</goal></goals></execution></executions></plugin></plugins><resources><!-- 打包java里mapper的xml文件 --><resource><directory>src/main/java</directory><includes><include>**/*.xml</include></includes><filtering>false</filtering></resource><!-- 打包resource里的项目配置文件 --><resource><directory>src/main/resources</directory><includes><include>**/*.yml</include><include>**/*.xml</include></includes><filtering>false</filtering></resource></resources></build></project>
更多推荐
java 整合kotlin maven库引入
发布评论