java 整合kotlin maven库引入

编程入门 行业动态 更新时间:2024-10-19 03:25:09

<a href=https://www.elefans.com/category/jswz/34/1770091.html style=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库引入

本文发布于:2024-02-04 20:36:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1673377.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:java   kotlin   maven

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!