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

标准型网站建设开发市场seo是什么意思

标准型网站建设开发,市场seo是什么意思,网站白名单 是什么,自己做下载网站有一个项目,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/277601.html

相关文章:

  • 外贸网站定制开发网络营销主要学什么
  • h5制作网站 有哪些济南专业做网站
  • 网站开发er图海南快速seo排名优化
  • 西安建设学院网站首页超级seo外链工具
  • wordpress 大前端2.0seo专业培训中心
  • 做那个网站比较好淘宝指数官网
  • 做网站时空间的选择太原做网站哪家好
  • app 展示网站网页设计与制作知识点
  • 计算机网站设计论文求购买链接
  • 重庆网站制作一般需要多少钱广告联盟论坛
  • 做app还是做网站合适今日新闻消息
  • wordpress 相关产品郑州网络seo公司
  • 网站开发的五个阶段营销宣传策划方案
  • 昆山那个网站推广好短视频seo厂家
  • 河间做网站 申梦网络十大最靠谱教育培训机构
  • 白家乐网站怎么建站网站建设网站推广
  • 石桥铺做网站长沙seo排名优化公司
  • 阿里云的网站建设好不好百度投诉中心24人工客服
  • 做网站没有公网100个裂变营销案例
  • 网站结构图怎么做怎么免费搭建自己的网站
  • 网站推广好不好竞价托管选择微竞价
  • 企业网易邮箱网站优化公司哪家效果好
  • 代做土木毕业设计网站网络推广seo怎么做
  • 阿里云主机怎么做两个网站吗营销策略主要包括哪些
  • 做网站先做前台还是后台青岛seo招聘
  • 中国建设银行安徽省分行招聘网站爱站网关键词查询系统
  • 看想看的做想做的电影网站搜狗引擎搜索
  • 婚恋网站制作站长工具大全
  • 手机wordpress建站教程百度seo插件
  • 建站源码程序营销培训心得体会