jpress mvn package失败,求大神指导

报错代码如下:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:codegen:jar:1.0
[WARNING] 'version' contains an expression but should be a constant. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 10, column 14
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:jpress-commons:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:jpress-core:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:jpress-core:[unknown-version], D:\Program Files\jpress\jpress-core\pom.xml, line 55, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:jpress-web:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:jpress-service-api:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:jpress-service-provider:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:jpress-model:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:jpress-template:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-article-model:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-article-web:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-article-service-api:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-article-service-provider:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-article:pom:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-page-model:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-page-web:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-page-service-api:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-page-service-provider:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:module-page:pom:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:starter:jar:1.0
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-remote-resources-plugin @ io.jpress:starter:[unknown-version], D:\Program Files\jpress\starter\pom.xml, line 203, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:starter:[unknown-version], D:\Program Files\jpress\starter\pom.xml, line 142, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:starter-tomcat:war:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:starter-tomcat:[unknown-version], D:\Program Files\jpress\starter-tomcat\pom.xml, line 164, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ io.jpress:starter-tomcat:[unknown-version], D:\Program Files\jpress\starter-tomcat\pom.xml, line 221, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.jpress:parent:pom:1.0
[WARNING] 'version' contains an expression but should be a constant. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 10, column 14
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ io.jpress:parent:${jpress.version}, D:\Program Files\jpress\pom.xml, line 146, 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] parent [pom]
[INFO] codegen [jar]
[INFO] jpress-commons [jar]
[INFO] jpress-model [jar]
[INFO] jpress-service-api [jar]
[INFO] jpress-core [jar]
[INFO] jpress-web [jar]
[INFO] jpress-service-provider [jar]
[INFO] jpress-template [jar]
[INFO] module-article [pom]
[INFO] module-article-model [jar]
[INFO] module-article-service-api [jar]
[INFO] module-article-service-provider [jar]
[INFO] module-article-web [jar]
[INFO] module-page [pom]
[INFO] module-page-model [jar]
[INFO] module-page-service-api [jar]
[INFO] module-page-service-provider [jar]
[INFO] module-page-web [jar]
[INFO] starter [jar]
[INFO] starter-tomcat [war]
[INFO]
[INFO] --------------------------< io.jpress:parent >--------------------------
[INFO] Building parent 1.0 [1/21]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] -------------------------< io.jpress:codegen >--------------------------
[INFO] Building codegen 1.0 [2/21]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ codegen ---
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 9 resources
[INFO] skip non existing resourceDirectory D:\Program Files\jpress\codegen\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ codegen ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to D:\Program Files\jpress\codegen\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] parent 1.0 ......................................... SUCCESS [ 0.228 s]
[INFO] codegen ............................................ FAILURE [ 4.318 s]
[INFO] jpress-commons ..................................... SKIPPED
[INFO] jpress-model ....................................... SKIPPED
[INFO] jpress-service-api ................................. SKIPPED
[INFO] jpress-core ........................................ SKIPPED
[INFO] jpress-web ......................................... SKIPPED
[INFO] jpress-service-provider ............................ SKIPPED
[INFO] jpress-template .................................... SKIPPED
[INFO] module-article ..................................... SKIPPED
[INFO] module-article-model ............................... SKIPPED
[INFO] module-article-service-api ......................... SKIPPED
[INFO] module-article-service-provider .................... SKIPPED
[INFO] module-article-web ................................. SKIPPED
[INFO] module-page ........................................ SKIPPED
[INFO] module-page-model .................................. SKIPPED
[INFO] module-page-service-api ............................ SKIPPED
[INFO] module-page-service-provider ....................... SKIPPED
[INFO] module-page-web .................................... SKIPPED
[INFO] starter ............................................ SKIPPED
[INFO] starter-tomcat 1.0 ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.688 s
[INFO] Finished at: 2018-10-27T17:50:59+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project codegen: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :codegen

mvn -version运行正常:
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-18T02:33:14+08:00)
Maven home: D:\Program Files\Apache\maven3.5.4\bin..
Java version: 1.8.0_141, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jre1.8.0_141
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

阿里云镜像配置没问题:

<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|

mirrorId
repositoryId
Human Readable Name for this Mirror.
http://my.repository.com/repo/path

-->


alimaven

aliyun maven

http://maven.aliyun.com/nexus/content/groups/public/

central


1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
mvn package不执行,请大神指点

![图片说明](https://img-ask.csdn.net/upload/201806/27/1530065900_801856.png) 说明: 已经配置了 MAVEN_HOME 和 path ,

关于maven的问题 mvn package时出现的错误

[root@localhost storm-starter-master]# mvn -f m2-pom.xml package [INFO] Scanning for projects... Downloading: http://repo.maven.apache.org/maven2/com/theoryinpractise/clojure-maven-plugin/1.3.8/clojure-maven-plugin-1.3.8.pom [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project storm.starter:storm-starter:0.0.1-SNAPSHOT (/home/lmy/storm-starter-master/m2-pom.xml) has 1 error [ERROR] Unresolveable build extension: Plugin com.theoryinpractise:clojure-maven-plugin:1.3.8 or one of its dependencies could not be resolved: Failed to collect dependencies for com.theoryinpractise:clojure-maven-plugin:jar:1.3.8 (): Failed to read artifact descriptor for com.theoryinpractise:clojure-maven-plugin:jar:1.3.8: Could not transfer artifact com.theoryinpractise:clojure-maven-plugin:pom:1.3.8 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org: Name or service not known: Unknown host repo.maven.apache.org: Name or service not known -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

maven打包报错,用命令打包的mvn package 接着报这个错,急等

![图片说明](https://img-ask.csdn.net/upload/201802/02/1517553010_852643.png) ![图片说明](https://img-ask.csdn.net/upload/201802/02/1517553902_211162.png) jdk用的1.8 pom.xml配置maven之后 ``` <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.3</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build> ``` 又报错 ![图片说明](https://img-ask.csdn.net/upload/201802/02/1517557255_958482.png) 通过 ``` <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.3</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> <compilerArguments> <verbose /> <bootclasspath>${java.home}\lib\rt.jar;${java.home}\lib\jce.jar</bootclasspath> </compilerArguments> </configuration> </plugin> </plugins> </build> ``` 解决 现在发布又出现了新问题 ![图片说明](https://img-ask.csdn.net/upload/201802/02/1517560036_768869.png)

maven执行mvn package时,找不到相应的jar,请提供相应的中央库配置

请必须按下面的格式提供中央库,我复制过去就能用 <repository> <id>maven.oracle.com</id> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> <url>https://maven.oracle.com</url> <layout>default</layout> </repository> ================= [ERROR] Failed to execute goal on project automan-base: Could not resolve depend encies for project com.ailk.automan:automan-base:jar:0.0.1-SNAPSHOT: Failed to c ollect dependencies for [org.apache.ant:ant:jar:1.8.2 (compile), org.testng:test ng:jar:6.8.5 (compile), org.testmp:testsync:jar:1.0.0 (compile), commons-beanuti ls:commons-beanutils:jar:1.8.3 (compile), org.seleniumhq.selenium:selenium-serve r:jar:2.26.0 (compile), org.dbunit:dbunit:jar:2.2 (compile), dom4j:dom4j:jar:1.6 .1 (compile), joda-time:joda-time:jar:2.1 (compile), org.slf4j:slf4j-api:jar:1.7 .5 (compile), org.slf4j:slf4j-log4j12:pom:1.4.2 (compile), log4j:log4j:jar:1.2.1 7 (compile), ailk:jxl:jar:1.0 (compile), com.oracle:oracle:jar:10.2.0.1.0 (compi le), org.testmp:datastore-client:jar:1.0.0 (compile)]: Failed to read artifact d escriptor for com.oracle:oracle:jar:10.2.0.1.0: Could not transfer artifact com. oracle:oracle:pom:10.2.0.1.0 from/to maven.oracle.com (https://maven.oracle.com) : sun.security.validator.ValidatorException: PKIX path building failed: sun.secu rity.provider.certpath.SunCertPathBuilderException: unable to find valid certifi cation path to requested target -> [Help 1]

mvn install后为何还需要package,而之后为何又要tar解压缩呢?

最近在学Apache的一个开源框架,按照Apache官方的教程,我在ubuntu的命令行内安装配置该框架需要大概如下几步: 1.用git clone获取源码 2.执行mvn clean install将源码存入本地仓库(编译在这一步吗?) 3.用mvn clean package -Pdist将文件打包 4.执行tar *.tar.gz解压文件 5.配置 我的疑问就是:第三步和第四步不是矛盾的吗?package打包后,为什么第四步又要解压? 另外,其实每一步的内涵我也不是特别懂, 1.比如第一步是下载源码吗?还是下载二进制文件? 2.第二步有没有除了下载很多依赖的包以外,有编译的过程吗? 3.第三步和第四步为何是矛盾的? 求助各位,谢谢

打包mvn package -Pdist,native -DskipTests -Dtar时出现问题,求大神解决

直接上图 ![图片说明](https://img-ask.csdn.net/upload/201908/10/1565415435_575252.png) ![图片说明](https://img-ask.csdn.net/upload/201908/10/1565415356_732073.png) 请问是Maven不对吗,cmake错误是什么意思? 跪谢

maven package遇到问题

首先,idea的lifecycle package可以成功,但是在上面执行maven命令中一直失败,因为要用jenkins所以要用到命令。报错如下: Failed to execute goal on project xiaowo_user: Could not resolve dependencies for project com.gzhdexiaowo:xiaowo_user:jar:1.0-SNAPSHOT: Failure to find com.gzhdexiaowo:xiaowo_common:jar:1.0-SNAPSHOT in https://repo.spring.io/snapshot was cached in the local repository, resolution will not be reattempted until the update interval of spring-snapshots has elapsed or updates are forced -> [Help 1] 问题是common是项目中的其他包,父包和common都已经install了。.m2也清除了,就一直很奇怪为什么他一直要去https://repo.spring...... 里面找这个common包。如何设置本地找?求解啊

mvn help:system报错,求大神解决

[INFO] Scanning for projects... [WARNING] The POM for org.apache.maven.plugins:maven-deploy-plugin:jar:2.7 is missing, no dependency information available Downloading: http://acooly.wicp.net/nexus/content/groups/public/org/apache/maven/plugins/maven-site-plugin/3.3/maven-site-plugin-3.3.pom 还有一系列与这个类似的警告,最后build failuer

mvn install离线使用不了,离线还是需要下载一堆东西

办公室电脑不能连外网,需要把jar包添加到本地maven仓库,网上查到可以使用mvn -install命令,如: ``` mvn install:install-file -Dfile=e:/it-blacklist-0.0.1-SNAPSHOT.jar -DgroupId=cn.blacklist -DartifactId=it-blacklist -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar ``` 该命令我笔记本测试联网可用,但在台式机离线使用的时候,会尝试下载install的一些插件,但是因为台式机是离线的,导致下载不到就报错: No plugin found for prefix 'install' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories. 如附图所示。 ![图片说明](https://img-ask.csdn.net/upload/201911/25/1574679537_745197.jpg) 我想了一些办法解决,就是把笔记本上行mvn install执行过后的缓存文件复制到台式机上。即把笔记本上的maven仓库C:\Users\用户名\.m2\repository整个复制到台式机上覆盖响应文件夹,但是台式机仍然会尝试下载。 我在笔记本上的相应文件夹中是可以看到尝试下载的那些文件的。但是就是无法让台式机在离线的时候使用它。不知道有没有大佬知道应该怎么操作解决这个问题。

maven命令在cmd中无反应(mvn clean) 急求 在线等 谢谢

C:\Users\Administrator>mvn -v Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 21:51: 28+0800) Maven home: D:\apache-maven-3.0.5 Java version: 1.6.0_20, vendor: Sun Microsystems Inc. Java home: C:\Program Files (x86)\Java\jdk1.6.0_20\jre Default locale: zh_CN, platform encoding: GBK OS name: "windows 7", version: "6.1", arch: "x86", family: "windows" C:\Users\Administrator>mvn clean .....然后它就一直这样无反应了,也不可以输入了。 C:\Users\Administrator>mvn -help 这个也可以执行 就是mvn打包编译发布命令不能执行一直无反应 求解

mac os maven 项目打包

平时都在wins上开发,maven打包项目没有问题,现在移到mac os上开发,mvn package打包后,发现每个目录下都多处以"._"开头的文件,例如总目录下有 a,b两个文件夹,则打出来以后多出._a,._b两个文件,有人遇到过吗?是不是maven在mac os上使用有一些不同

单元测试编译通过,mvn 打包却通过不了

本地写的单元测试,怎么测试都能通过,可是一打包就出错 执行此条命令:mvn clean install 通过不了啊,老是报409错误, ![自己测试通过](https://img-ask.csdn.net/upload/201605/15/1463306847_726085.png) ![打包就报409](https://img-ask.csdn.net/upload/201605/15/1463306887_266386.png)

docker maven,使用部署时出现错误!

这是报错的信息。 ![图片说明](https://img-ask.csdn.net/upload/201904/13/1555126901_51792.png) 首先为了确保宿主机可以远程访问,我已经修改了ExecStart=后添加配置 ‐H tcp://0.0.0.0:2375 ‐H unix:///var/run/docker.sock 然后添加了 相关依赖 然后敲击命令mvn clean package docker:build ‐DpushImage,上传的时候就报这个错了,有知道怎么解决的大神吗。

intelliji maven package 报错,求解

![图片说明](https://img-ask.csdn.net/upload/201706/02/1496412274_450472.png) maven parent 中有一些子 module, 在parent pom.xml 执行 maven package时,报找不到storm core 包,storm core 在parent 的pom.xml中有依赖,如下: <dependencyManagement> <dependencies> <dependency> <groupId>org.apache.storm</groupId> <artifactId>storm-core</artifactId> <version>${storm.version}</version> <scope>provided</scope> </dependency> </dependencies> </dependencyManagement>

centos7编译maven出错

编译hadoop源码,开始就出错 [root@hadoop101 hadoop-2.7.2-src]#mvn package -Pdist,native -DskipTests -Dtar ``` [root@hadoop104 hadoop-2.7.2-src]# mvn package -Pdist,native -DskipTests -Dtar [INFO] Scanning for projects... Downloading: http://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/2.5.0/maven-bundle-plugin-2.5.0.pom [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.apache.hadoop:hadoop-main:2.7.2 (/opt/hadoop-2.7.2-src/pom.xml) has 1 error [ERROR] Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.5.0 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.felix:maven-bundle-plugin:jar:2.5.0 (): Failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin:jar:2.5.0: Could not transfer artifact org.apache.felix:maven-bundle-plugin:pom:2.5.0 from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/2.5.0/maven-bundle-plugin-2.5.0.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException ``` 小白学生一个,求各位大神指导,谢谢

Springboot maven filter 打包命令不加 -Pprod 调用生产环境的配置数据吗

springboot 项目中配置了maven filter 在打包的时候,不使用 mvn clean package -Dmaven.test.skip=true -P prod 打包命令(不包含-P prod)的时候。 如何只通过修改 ![图片说明](https://img-ask.csdn.net/upload/201903/21/1553151806_920395.jpg) 就能调用到所需要的数据。 下面是POM文件的配置 ``` <profiles><!-- 配置maven filter --> <profile> <id>dev</id> <properties> <profiles.active>dev</profiles.active> </properties> <activation> <activeByDefault>true</activeByDefault> </activation> </profile> <profile> <id>test</id> <properties> <profiles.active>test</profiles.active> </properties> </profile> <profile> <id>production</id> <properties> <profiles.active>prod</profiles.active> </properties> </profile> </profiles> ``` ``` <build> <filters> <filter>${project.basedir}/src/main/filters/filter-${profiles.active}.properties</filter> </filters> <resources> <resource> <directory>${project.basedir}/src/main/resources</directory> <excludes> <exclude>**/*.woff</exclude> <exclude>**/*.woff2</exclude> <exclude>**/*.ttf</exclude> </excludes> <filtering>true</filtering> </resource> ```

运行maven命令:mvn clean compile liquibase:update 出现下面错误怎么解决?

我在运行maven命令:mvn clean compile liquibase:update 时报了这个错,怎么解决?![图片说明](https://img-ask.csdn.net/upload/201906/23/1561290584_513383.png)

mvn打包报错:Failed to load ApplicationContext

![图片说明](https://img-ask.csdn.net/upload/201605/12/1463049953_501952.png) ApplicationContext中扫描的包: <context:component-scan base-package="com.iquant.simulated.*"> <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/> </context:component-scan> springmvc.xml中扫描的包: <context:component-scan base-package="com.aa.controller" />

maven下载之后,在cmd输入命令,mvn报错

maven下载之后,在cmd输入命令,mvn报错。已经配置好本地仓库和镜像。 ![错误截图](https://img-ask.csdn.net/upload/201911/20/1574220070_29967.png) ``` C:\Users\Administrator>mvn [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.056 s [INFO] Finished at: 2019-11-20T11:13:44+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException C:\Users\Administrator>mvn -v Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T03:00:29+08:00) Maven home: D:\soft\maven\apache-maven-3.6.1\bin\.. Java version: 1.8.0_121, vendor: Oracle Corporation, runtime: D:\jdk\jre Default locale: zh_CN, platform encoding: GBK OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows" ```

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

点沙成金:英特尔芯片制造全过程揭密

“亚马逊丛林里的蝴蝶扇动几下翅膀就可能引起两周后美国德州的一次飓风……” 这句人人皆知的话最初用来描述非线性系统中微小参数的变化所引起的系统极大变化。 而在更长的时间尺度内,我们所生活的这个世界就是这样一个异常复杂的非线性系统…… 水泥、穹顶、透视——关于时间与技艺的蝴蝶效应 公元前3000年,古埃及人将尼罗河中挖出的泥浆与纳特龙盐湖中的矿物盐混合,再掺入煅烧石灰石制成的石灰,由此得来了人...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

外包程序员的幸福生活

今天给你们讲述一个外包程序员的幸福生活。男主是Z哥,不是在外包公司上班的那种,是一名自由职业者,接外包项目自己干。接下来讲的都是真人真事。 先给大家介绍一下男主,Z哥,老程序员,是我十多年前的老同事,技术大牛,当过CTO,也创过业。因为我俩都爱好喝酒、踢球,再加上住的距离不算远,所以一直也断断续续的联系着,我对Z哥的状况也有大概了解。 Z哥几年前创业失败,后来他开始干起了外包,利用自己的技术能...

C++11:一些微小的变化(新的数据类型、template表达式内的空格、nullptr、std::nullptr_t)

本文介绍一些C++的两个新特性,它们虽然微小,但对你的编程十分重要 一、Template表达式内的空格 C++11标准之前建议在“在两个template表达式的闭符之间放一个空格”的要求已经过时了 例如: vector&lt;list&lt;int&gt; &gt;; //C++11之前 vector&lt;list&lt;int&gt;&gt;; //C++11 二、nullptr ...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

深入剖析Springboot启动原理的底层源码,再也不怕面试官问了!

大家现在应该都对Springboot很熟悉,但是你对他的启动原理了解吗?

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

【阿里P6面经】二本,curd两年,疯狂复习,拿下阿里offer

二本的读者,在老东家不断学习,最后逆袭

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

微软为一人收购一公司?破解索尼程序、写黑客小说,看他彪悍的程序人生!...

作者 | 伍杏玲出品 | CSDN(ID:CSDNnews)格子衬衫、常掉发、双肩包、修电脑、加班多……这些似乎成了大众给程序员的固定标签。近几年流行的“跨界风”开始刷新人们对程序员的...

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

我说我懂多线程,面试官立马给我发了offer

不小心拿了几个offer,有点烦

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

立即提问
相关内容推荐