当前位置: 首页 > wzjs >正文

网站建设单子seo关键词优化公司哪家好

网站建设单子,seo关键词优化公司哪家好,wordpress做留言板,百度推广工作好干吗有一个项目,kotlin写了一些逻辑代码,我想加一个controller,新增了一个kotlin方法复用了之前的逻辑,写好之后没有重新编译,直接启动进行测试,整体完全正常没有报错,但是在mvn clean,然后再mvn co…

有一个项目,kotlin写了一些逻辑代码,我想加一个controller,新增了一个kotlin方法复用了之前的逻辑,写好之后没有重新编译,直接启动进行测试,整体完全正常没有报错,但是在mvn clean,然后再mvn compile的时候发生了报错,报的是找不到符号,有两个地方,一个是import语句中的kotlin类名,一个是@Resource注入(kotlin类加了@Component注解,交给spring管理了)时候的类名找不到符号。但是IDEA没有标红,点击也可以正常跳转到KOTLIN类文件内,就很奇怪,网上找了不少方法,说是需要先编译kotlin再编译java就能解决,于是修改了pom文件,改成如下顺序,并且需要加上才可以

<build><finalName>${project.artifactId}</finalName><plugins><plugin><groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-maven-plugin</artifactId><version>1.9.22</version><configuration><jvmTarget>1.8</jvmTarget><compilerPlugins><plugin>lombok</plugin></compilerPlugins><pluginOptions><option>lombok:config=${project.basedir}/lombok.config</option></pluginOptions></configuration><dependencies><dependency><groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-maven-lombok</artifactId><version>1.9.22</version></dependency><dependency><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId><version>1.18.22</version><scope>compile</scope></dependency></dependencies><executions><execution><id>compile</id><phase>compile</phase><goals><goal>compile</goal></goals></execution><execution><id>test-compile</id><phase>test-compile</phase><goals><goal>test-compile</goal></goals></execution></executions></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.8.1</version><configuration><source>1.8</source><target>1.8</target></configuration></plugin><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><executions><execution><goals><goal>repackage</goal></goals></execution></executions></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-deploy-plugin</artifactId><configuration><skip>true</skip></configuration></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-install-plugin</artifactId><configuration><skip>true</skip></configuration></plugin></plugins></build>

但是编译后看控制台输出:

[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (default-cli) @ ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (banDuplicateClasses-Check) @  ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (check-commons-db-upgrade) @  ---
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.1.201405082137:prepare-agent (pre-unit-test) @  ---
[INFO] argLine set to -javaagent:/***/org.jacoco.agent-0.7.1.201405082137-runtime.jar=destfile=/***/target/jacoco.exec,excludes=org/sqlite/SQLite
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @  ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @  ---

仍旧是先编译的java,再次查询资料,修改pom文件如下:

<build><finalName>${project.artifactId}</finalName><plugins><plugin><groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-maven-plugin</artifactId><version>1.9.22</version><configuration><jvmTarget>1.8</jvmTarget><compilerPlugins><plugin>lombok</plugin></compilerPlugins><pluginOptions><option>lombok:config=${project.basedir}/lombok.config</option></pluginOptions></configuration><dependencies><dependency><groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-maven-lombok</artifactId><version>1.9.22</version></dependency><dependency><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId><version>1.18.22</version><scope>compile</scope></dependency></dependencies><executions><execution><id>compile</id><phase>process-sources</phase><goals><goal>compile</goal></goals></execution><execution><id>test-compile</id><phase>process-test-sources</phase><goals><goal>test-compile</goal></goals></execution></executions></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.8.1</version><configuration><source>1.8</source><target>1.8</target></configuration></plugin><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><executions><execution><goals><goal>repackage</goal></goals></execution></executions></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-deploy-plugin</artifactId><configuration><skip>true</skip></configuration></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-install-plugin</artifactId><configuration><skip>true</skip></configuration></plugin></plugins></build>

注意看这两处区别:

<phase>process-sources</phase>
<phase>process-test-sources</phase>

修改后编译就发现kotlin在前边先编译,没有报错了,解决问题!

http://www.dtcms.com/wzjs/407064.html

相关文章:

  • 门窗设计软件免费版seo牛人
  • 商丘做网站的费用seo超级外链工具
  • 上海企业排行榜网站优化排名首页
  • 上海疫情饿死了多少人网站seo 工具
  • wordpress网站定制太原做网络推广的公司
  • 网站开发字体过大百度推广助手app
  • 崇明做网站公司网站建设报价方案
  • 做营销的有那么网站小程序
  • 手机网站和微信网站有哪些百度商家平台
  • 查派网站建设网站推广怎么做有效果
  • 学做网站的软件济南百度推广代理商
  • 网站开发任务书今天的新闻主要内容
  • 做网站万网百度推广登录平台
  • 成都动态网站制作营销型网站制作成都
  • 网站建设技术服务的方式是什么意思百度推广怎么做的
  • ui工程师工资一般多少安徽百度seo教程
  • 做视觉影像网站用什么软件系统成都排名seo公司
  • 玉儿做春梦网站百度商家版下载
  • 软件开发公司照片上海最大的seo公司
  • 环企优站网站建设精准营销策略都有哪些
  • 全国工商网湖南长沙seo
  • 做网站是什么专业西安seo王尘宇
  • 济南工程网站建设怎么让某个关键词排名上去
  • 阿里巴巴1688怎么做网站宁波谷歌seo
  • 网站维护都要做什么百度链接提交收录入口
  • 动态公司网站设计晨阳seo服务
  • 做网站 接单营销活动方案
  • 空间域名续费 网站维护发票如何开免费网站推广网站在线
  • 网站建设设计服务疫情最新数据消息地图
  • 网站添加合适图片google浏览器网页版