IDEA Maven项目 编译的问题
Posted 10年 Java程序员,硬核人生!勇往直前,永不退缩!
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IDEA Maven项目 编译的问题相关的知识,希望对你有一定的参考价值。
IDEA中,点击项目的maven插件的 compile:
出现:
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project j360-deliver: Compilation failure: Compilation failure:
[ERROR] /E:/ws/git/cloud/j360-microservice/j360-deliver/src/main/java/me/j360/boot/microservice/api/hystrix/HystrixService.java:[24,67] -source 1.5 中不支持 diamond 运算符
[ERROR] (请使用 -source 7 或更高版本以启用 diamond 运算符)
[ERROR] /E:/ws/git/cloud/j360-microservice/j360-deliver/src/main/java/me/j360/boot/microservice/api/hystrix/HystrixService.java:[30,38] -source 1.5 中不支持 multi-catch 语句
[ERROR] (请使用 -source 7 或更高版本以启用 multi-catch 语句)
[ERROR] /E:/ws/git/cloud/j360-microservice/j360-deliver/src/main/java/me/j360/boot/microservice/service/ExpressServiceImpl.java:[47,46] -source 1.5 中不支持 diamond 运算符
[ERROR] (请使用 -source 7 或更高版本以启用 diamond 运算符)
为什么竟然是 1.5 。。
打开Project Structure, 竟然真的有 1.5
这个好像不是我设置的。 没办法,手动改吧。 改为 1.8。 发现有提示:
重新 mvn clean compile , 结果还是一样的, 说明手动修改无效。。
难道的cache 原因? 重启IDEA, 而且是 invalidate cache 模式, 无效。
打开Project Structure, 竟然又变成了 1.5 。。。
好吧, 我通过命令行加 调试 看看, mvn -X clean compile:
结果发现,确实某个地方被设置成了 1.5 :
[DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[plexus.core, parent: null] [DEBUG] Extension realms for project me.j360.boot.microservice:j360-deliver:jar:1.0-SNAPSHOT: (none) [DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null] [DEBUG] Extension realms for project me.j360.boot.microservice:j360-order:jar:1.0-SNAPSHOT: (none) [DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null] [DEBUG] Extension realms for project me.j360.boot.microservice:j360-profile:jar:1.0-SNAPSHOT: (none) [DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null] [DEBUG] Extension realms for project me.j360.boot.microservice:testaaa:jar:1.0-SNAPSHOT: (none) [DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null] [WARNING] [WARNING] Some problems were encountered while building the effective model for me.j360.boot.microservice:j360-deliver:jar:1.0-SNAPSHOT [WARNING] \'build.plugins.plugin.version\' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ me.j360.boot.microservice:j360-deliver:[ unknown-version], E:\\ws\\git\\cloud\\j360-microservice\\j360-deliver\\pom.xml, line 112, column 21 [WARNING] \'build.plugins.plugin.version\' for org.apache.maven.plugins:maven-war-plugin is missing. @ me.j360.boot.microservice:j360-deliver:[unkno wn-version], E:\\ws\\git\\cloud\\j360-microservice\\j360-deliver\\pom.xml, line 119, column 21 [WARNING] [WARNING] Some problems were encountered while building the effective model for me.j360.boot.microservice:j360-order:jar:1.0-SNAPSHOT [WARNING] \'build.plugins.plugin.version\' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ me.j360.boot.microservice:j360-order:[un known-version], E:\\ws\\git\\cloud\\j360-microservice\\j360-order\\pom.xml, line 98, column 21 [WARNING] \'build.plugins.plugin.version\' for org.apache.maven.plugins:maven-war-plugin is missing. @ me.j360.boot.microservice:j360-order:[unknown -version], E:\\ws\\git\\cloud\\j360-microservice\\j360-order\\pom.xml, line 105, column 21 [WARNING] [WARNING] Some problems were encountered while building the effective model for me.j360.boot.microservice:j360-profile:jar:1.0-SNAPSHOT [WARNING] \'build.plugins.plugin.version\' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ me.j360.boot.microservice:j360-profile:[ unknown-version], E:\\ws\\git\\cloud\\j360-microservice\\j360-profile\\pom.xml, line 61, column 21 [WARNING] \'build.plugins.plugin.version\' for org.apache.maven.plugins:maven-war-plugin is missing. @ me.j360.boot.microservice:j360-profile:[unkno wn-version], E:\\ws\\git\\cloud\\j360-microservice\\j360-profile\\pom.xml, line 68, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] j360-microservice [INFO] j360-deliver [INFO] j360-order [INFO] j360-profile [INFO] testaaa [DEBUG] === REACTOR BUILD PLAN ================================================ [DEBUG] Project: me.j360.boot.microservice:j360-microservice:pom:1.0-SNAPSHOT [DEBUG] Tasks: [clean, compile] [DEBUG] Style: Regular [DEBUG] ----------------------------------------------------------------------- [DEBUG] Project: me.j360.boot.microservice:j360-deliver:jar:1.0-SNAPSHOT [DEBUG] Tasks: [clean, compile] [DEBUG] Style: Regular [DEBUG] ----------------------------------------------------------------------- [DEBUG] Project: me.j360.boot.microservice:j360-order:jar:1.0-SNAPSHOT [DEBUG] Tasks: [clean, compile] [DEBUG] Style: Regular [DEBUG] ----------------------------------------------------------------------- [DEBUG] Project: me.j360.boot.microservice:j360-profile:jar:1.0-SNAPSHOT [DEBUG] Tasks: [clean, compile] [DEBUG] Style: Regular [DEBUG] ----------------------------------------------------------------------- [DEBUG] Project: me.j360.boot.microservice:testaaa:jar:1.0-SNAPSHOT [DEBUG] Tasks: [clean, compile] [DEBUG] Style: Regular [DEBUG] ======================================================================= [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building j360-microservice 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-cla sses, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prep are-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-cla sses, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prep are-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Using mirror nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) for apache.snapshots (http://repository.apache.org/snapsho ts). [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-cla sses, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prep are-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] === PROJECT BUILD PLAN ================================================ [DEBUG] Project: me.j360.boot.microservice:j360-microservice:1.0-SNAPSHOT [DEBUG] Dependencies (collect): [] [DEBUG] Dependencies (resolve): [] [DEBUG] Repositories (dependencies): [nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public, default, releases)] [DEBUG] Repositories (plugins) : [nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public, default, releases)] [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?> <configuration> <directory default-value="${project.build.directory}"/> <excludeDefaultDirectories default-value="false">${clean.excludeDefaultDirectories}</excludeDefaultDirectories> <failOnError default-value="true">${maven.clean.failOnError}</failOnError> <followSymLinks default-value="false">${clean.followSymLinks}</followSymLinks> <outputDirectory default-value="${project.build.outputDirectory}"/> <reportDirectory default-value="${project.reporting.outputDirectory}"/> <retryOnError default-value="true">${maven.clean.retryOnError}</retryOnError> <skip default-value="false">${clean.skip}</skip> <testOutputDirectory default-value="${project.build.testOutputDirectory}"/> <verbose>${clean.verbose}</verbose> </configuration> [DEBUG] ======================================================================= [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ j360-microservice --- [DEBUG] Using mirror nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) for apache.snapshots (http://people.apache.org/repo/m2-sna pshot-repository). [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=1, ConflictMarker.nodeCount=3, ConflictIdSorter.graphT ime=0, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=3, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=2, ConflictResolver.conflictItemCount=3, DefaultDependencyCollector.collectTime=29, DefaultDependencyCollector.transformTime=5} [DEBUG] org.apache.maven.plugins:maven-clean-plugin:jar:2.5: [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:3.0:compile [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-clean-plugin:2.5 [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-clean-plugin:2.5 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-clean-plugin:2.5 [DEBUG] Included: org.apache.maven.plugins:maven-clean-plugin:jar:2.5 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0 [DEBUG] Configuring mojo org.apache.maven.plugins:maven-clean-plugin:2.5:clean from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven- clean-plugin:2.5, parent: sun.misc.Launcher$AppClassLoader@53f336eb] [DEBUG] Configuring mojo \'org.apache.maven.plugins:maven-clean-plugin:2.5:clean\' with basic configurator --> [DEBUG] (f) directory = E:\\ws\\git\\cloud\\j360-microservice\\target [DEBUG] (f) excludeDefaultDirectories = false [DEBUG] (f) failOnError = true [DEBUG] (f) followSymLinks = false [DEBUG] (f) outputDirectory = E:\\ws\\git\\cloud\\j360-microservice\\target\\classes [DEBUG] (f) reportDirectory = E:\\ws\\git\\cloud\\j360-microservice\\target\\site [DEBUG] (f) retryOnError = true [DEBUG] (f) skip = false [DEBUG] (f) testOutputDirectory = E:\\ws\\git\\cloud\\j360-microservice\\target\\test-classes [DEBUG] -- end configuration -- [DEBUG] Skipping non-existing directory E:\\ws\\git\\cloud\\j360-microservice\\target [DEBUG] Skipping non-existing directory E:\\ws\\git\\cloud\\j360-microservice\\target\\classes [DEBUG] Skipping non-existing directory E:\\ws\\git\\cloud\\j360-microservice\\target\\test-classes [DEBUG] Skipping non-existing directory E:\\ws\\git\\cloud\\j360-microservice\\target\\site [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building j360-deliver 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [DEBUG] Could not find metadata org.apache.maven.plugins:maven-war-plugin/maven-metadata.xml in local (C:\\Users\\Administrator\\.m2\\repository) [DEBUG] Skipped remote request for org.apache.maven.plugins:maven-war-plugin/maven-metadata.xml, locally cached metadata up-to-date. [DEBUG] Using mirror nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) for apache.snapshots (https://repository.apache.org/snapsh ots). [DEBUG] Resolved plugin version for org.apache.maven.plugins:maven-war-plugin to 3.1.0 from repository nexus-aliyun (http://maven.aliyun.com/nexus /content/groups/public, default, releases) [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-cla sses, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prep are-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Using mirror nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) for spring-ext (http://repo.spring.io/ext-release-local/). [DEBUG] Using mirror nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) for spring-milestones (http://repo.spring.io/milestone). [DEBUG] Using mirror nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) for spring-snapshots (http://repo.spring.io/snapshot). [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-cla sses, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prep are-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-cla sses, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prep are-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-cla sses, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prep are-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-cla sses, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prep are-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] === PROJECT BUILD PLAN ================================================ [DEBUG] Project: me.j360.boot.microservice:j360-deliver:1.0-SNAPSHOT [DEBUG] Dependencies (collect): [] [DEBUG] Dependencies (resolve): [compile] [DEBUG] Repositories (dependencies): [nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public, default, releases)] [DEBUG] Repositories (plugins) : [nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public, default, releases)] [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?> <configuration> <directory default-value="${project.build.directory}"/> <excludeDefaultDirectories default-value="false">${clean.excludeDefaultDirectories}</excludeDefaultDirectories> <failOnError default-value="true">${maven.clean.failOnError}</failOnError> <followSymLinks default-value="false">${clean.followSymLinks}</followSymLinks> <outputDirectory default-value="${project.build.outputDirectory}"/> <reportDirectory default-value="${project.reporting.outputDirectory}"/> <retryOnError default-value="true">${maven.clean.retryOnError}</retryOnError> <skip default-value="false">${clean.skip}</skip> <testOutputDirectory default-value="${project.build.testOutputDirectory}"/> <verbose>${clean.verbose}</verbose> </configuration> [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-resources-plugin:2.6:resources (default-resources) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?> <configuration> <buildFilters default-value="${project.build.filters}"/> <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding> <escapeString>${maven.resources.escapeString}</escapeString> <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths> <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs> <outputDirectory default-value="${project.build.outputDirectory}"/> <overwrite default-value="false">${maven.resources.overwrite}</overwrite> <project default-value="${project}"/> <resources default-value="${project.resources}"/> <session default-value="${session}"/> <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering> <useBuildFilters default-value="true"/> <useDefaultDelimiters default-value="true"/> </configuration> [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?> <configuration> <basedir default-value="${basedir}"/> <buildDirectory default-value="${project.build.directory}"/> <classpathElements default-value="${project.compileClasspathElements}"/> <compileSourceRoots default-value="${project.compileSourceRoots}"/> <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId> <compilerReuseStrategy default-value="${reuseCreated}">${maven.compiler.compilerReuseStrategy}</compilerReuseStrategy> <compilerVersion>${maven.compiler.compilerVersion}</compilerVersion> <debug default-value="true">${maven.compiler.debug}</debug> <debuglevel>${maven.compiler.debuglevel}</debuglevel> <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding> <executable>${maven.compiler.executable}</executable> <failOnError default-value="true">${maven.compiler.failOnError}</failOnError> <forceJavacCompilerUse default-value="false">${maven.compiler.forceJavacCompilerUse}</forceJavacCompilerUse> <fork default-value="false">${maven.compiler.fork}</fork> <generatedSourcesDirectory default-value="${project.build.directory}/generated-sources/annotations"/> <maxmem>${maven.compiler.maxmem}</maxmem> <meminitial>${maven.compiler.meminitial}</meminitial> <mojoExecution>${mojoExecution}</mojoExecution> <optimize default-value="false">${maven.compiler.optimize}</optimize> <outputDirectory default-value="${project.build.outputDirectory}"/> <projectArtifact default-value="${project.artifact}"/> <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation> <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings> <skipMain>${maven.main.skip}</skipMain> <skipMultiThreadWarning default-value="false">${maven.compiler.skipMultiThreadWarning}</skipMultiThreadWarning> <source default-value="1.5">${maven.compiler.source}</source> <staleMillis default-value="0">${lastModGranularityMs}</staleMillis> <target default-value="1.5">${maven.compiler.target}</target> <useIncrementalCompilation default-value="true">${maven.compiler.useIncrementalCompilation}</useIncrementalCompilation> <verbose default-value="false">${maven.compiler.verbose}</verbose> <mavenSession default-value="${session}"/> <session default-value="${session}"/> </configuration> [DEBUG] ======================================================================= [DEBUG] Using mirror nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) for sonatype-nexus-snapshots (https://oss.sonatype.org/con tent/repositories/snapshots). [DEBUG] Could not find metadata com.netflix.rxjava:rxjava-core/maven-metadata.xml in local (C:\\Users\\Administrator\\.m2\\repository) [DEBUG] Skipped remote request for com.netflix.rxjava:rxjava-core/maven-metadata.xml, locally cached metadata up-to-date. [DEBUG] Using mirror nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) for apache-snapshots (http://people.apache.org/repo/m2-sna pshot-repository). [DEBUG] Using mirror nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) for apache-incubator (http://people.apache.org/repo/m2-inc ubating-repository/). [DEBUG] Using mirror nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) for codehaus-snapshots (http://snapshots.repository.codeha us.org). [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=0, ConflictMarker.nodeCount=143, ConflictIdSorter.grap hTime=0, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=62, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime= 7, ConflictResolver.conflictItemCount=120, DefaultDependencyCollector.collectTime=540, DefaultDependencyCollector.transformTime=7} [DEBUG] me.j360.boot.microservice:j360-deliver:jar:1.0-SNAPSHOT [DEBUG] org.springframework.boot:spring-boot-starter-web:jar:1.3.5.RELEASE:compile [DEBUG] org.springframework.boot:spring-boot-starter:jar:1.3.5.RELEASE:compile (version managed from 1.3.5.RELEASE) (optionality managed fro m false) (exclusions managed) [DEBUG] org.springframework.boot:spring-boot-starter-logging:jar:1.3.5.RELEASE:compile (version managed from 1.3.5.RELEASE) (optionality managed from false) [DEBUG] ch.qos.logback:logback-classic:jar:1.1.7:compile (version managed from 1.1.7) (optionality managed from false) [DEBUG] ch.qos.logback:logback-core:jar:1.1.7:compile (version managed from 1.1.7) (optionality managed from false) [DEBUG] org.slf4j:jcl-over-slf4j:jar:1.7.21:compile (version managed from 1.7.21) (optionality managed from false) [DEBUG] org.slf4j:jul-to-slf4j:jar:1.7.21:compile (version managed from 1.7.21) (optionality managed from false) [DEBUG] org.slf4j:log4j-over-slf4j:jar:1.7.21:compile (version managed from 1.7.21) (optionality managed from false) [DEBUG] org.yaml:snakeyaml:jar:1.16:runtime (version managed from 1.16) (optionality managed from false) [DEBUG] org.springframework.boot:spring-boot-starter-tomcat:jar:1.3.5.RELEASE:compile (version managed from 1.3.5.RELEASE) (optionality mana ged from false) [DEBUG] org.apache.tomcat.embed:tomcat-embed-logging-juli:jar:8.0.33:compile (version managed from 8.0.33) (optionality managed from fals e) [DEBUG] org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.0.33:compile (version managed from 8.0.33) (optionality managed from false) [DEBUG] org.springframework.boot:spring-boot-starter-validation:jar:1.3.5.RELEASE:compile (version managed from 1.3.5.RELEASE) (optionality managed from false) [DEBUG] org.hibernate:hibernate-validator:jar:5.2.4.Final:compile (version managed from 5.2.4.Final) (optionality managed from false) [DEBUG] javax.validation:validation-api:jar:1.1.0.Final:compile [DEBUG] org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile (version managed from 3.2.1.Final) (optionality managed from false) [DEBUG] com.fasterxml:classmate:jar:1.1.0:compile [DEBUG] com.fasterxml.jackson.core:jackson-databind:jar:2.6.6:compile (version managed from 2.6.6) (optionality managed from false) [DEBUG] com.fasterxml.jackson.core:jackson-annotations:jar:2.6.6:compile (version managed from 2.6.0) (optionality managed from false) [DEBUG] com.fasterxml.jackson.core:jackson-core:jar:2.6.6:compile (version managed from 2.6.6) (optionality managed from false) [DEBUG] org.springframework:spring-web:jar:4.2.6.RELEASE:compile (version managed from 4.2.6.RELEASE) (optionality managed from false) [DEBUG] org.springframework:spring-webmvc:jar:4.2.6.RELEASE:compile (version managed from 4.2.6.RELEASE) (optionality managed from false) [DEBUG] org.springframework:spring-expression:jar:4.2.6.RELEASE:compile (version managed from 4.2.6.RELEASE) (optionality managed from fa lse) [DEBUG] com.netflix.hystrix:hystrix-core:jar:1.3.9:compile [DEBUG] com.netflix.rxjava:rxjava-core:jar:0.14.11:compile [DEBUG] org.slf4j:slf4j-api:jar:1.7.21:compile (version managed from 1.7.0) (optionality managed from false) [DEBUG] com.netflix.archaius:archaius-core:jar:0.4.1:compile [DEBUG] commons-configuration:commons-configuration:jar:1.8:compile [DEBUG] commons-lang:commons-lang:jar:2.6:compile [DEBUG] com.google.code.findbugs:jsr305:jar:2.0.0:compile [DEBUG] org.springframework:spring-jms:jar:4.2.6.RELEASE:compile [DEBUG] org.springframework:spring-aop:jar:4.2.6.RELEASE:compile (version managed from以上是关于IDEA Maven项目 编译的问题的主要内容,如果未能解决你的问题,请参考以下文章将IDEA maven项目中src源代码下的xml等资源文件编译进classes文件夹