我需要编译jettion-1.3.8,而不是使用来自maven repo的版本。不是我的选择..。
我试着这样做,然后得到:
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/1.0.0/maven-bundle-plugin-1.0.0.pom
[ERROR]
[ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 54, column 15
[ERROR] Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin:jar:1.0.0 @
[ERROR] Unknown packaging: bundle @ line 6, column 14 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.codehaus.jettison:jettison:1.3.8 (xxx/pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin:jar:1.0.0: Could not transfer artifact org.apache.felix:maven-bundle-plugin:pom:1.0.0 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 2]
[ERROR] Unknown packaging: bundle @ line 6, column 14
[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]这完全超出了我的正常活动,所以我不知道我在哪里出错,只是它不是代理问题。
我是在linux机器上运行的,而不是windows问题,而且是从命令行运行的--在这台机器上没有图形界面。
我有一个新的jdk 1.7安装和一个新的maven-3.5.4安装。我不需要这台机器上的代理。(这是我几乎在所有搜索中找到的答案)。
我确实找到了一个答案,指出了一个显而易见的问题--我在连接http://repo1.maven.org/maven2/时遇到了一些问题。
我试图使用wget验证这一点,并收到了403个禁止错误。这听起来很奇怪。我对此进行了研究,发现一些网站会因为不完整的标头而阻塞wget。所以我又跑了一遍
wget -U 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4' http://repo1.maven.org/maven2/并能够访问回购和下载索引页。所以,同样,不是代理问题,我没有问题连接到中央回购,但我想知道我是否有问题,检索必要的插件或依赖关系,因为我被一个类似的问题阻止wget显示。
我从上面添加了User字段到我的默认wget配置中,以防它在幕后使用,但这没有帮助。
在这一点上,我完全没有想法了。看起来我应该能够连接到中央回购,得到所需的插件,并继续前进,但这是不可能的。
发布于 2018-10-27 09:53:35
您必须配置:mvn -Dhttps.protocols=TLSv1.2 clean package。原因是中环有升级到TLSv1.2。
https://stackoverflow.com/questions/53017578
复制相似问题