私はmvn archetype:create-from-project
を使用して、既存のプロジェクトから原型を作成しようとしているが、私は、私はファイアウォールの背後午前Mavenのは、同じレポ
Could not transfer artifact org.apache.maven.archetype:archetype-packaging:pom:3.0.0
from/to central (https://repo.maven.apache.org/maven2):
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
を得ている上、多くの成果物の一つを転送するのに失敗したので、私はこの記事に続きますその後、https://stackoverflow.com/a/25912982/358794と実行:
$ mvn archetype:create-from-project -Djavax.net.ssl.keyStore=trustCARoot.jks
-Djavax.net.ssl.keyStorePassword=password
-Djavax.net.ssl.keyStoreType=JKS
-Djavax.net.ssl.trustStore=trustCARoot.jks
-Djavax.net.ssl.trustStorePassword=password
-Djavax.net.ssl.trustStoreType=JKS
私はまだ同じPKIXパスのビルドの失敗を取得しますが、単にarchetype-packaging
[INFO] Setting default groupId: com.domain.rozycki
[INFO] Setting default artifactId: SkillsApp
[INFO] Setting default version: 0.0.1-SNAPSHOT
[INFO] Setting default package: com.domain.skillsapp
[INFO] Scanning for projects...
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/archetype/archetype-packaging/3.0.0/archetype-packaging-3.0.0.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.apache.maven.archetype:archetype-packaging:3.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.m
aven.archetype:archetype-packaging:jar:3.0.0 @
[ERROR] Unknown packaging: maven-archetype @ line 8, column 14
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.gdeb.rozycki:SkillsApp-archetype:0.0.1-SNAPSHOT (C:\Users\jrozycki\Development\Archetype\SkillsApp\target\generated-sources\archetype\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin org.apache.maven.archetype:archetype-packaging:3.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apac
he.maven.archetype:archetype-packaging:jar:3.0.0: Could not transfer artifact org.apache.maven.archetype:archetype-packaging:pom:3.0.0 from/to central (https://repo.maven.apache.org/maven2): sun.secur
ity.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 2]
[ERROR] Unknown packaging: maven-archetype @ line 8, column 14
[ERROR]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
用
私は、私のトラストストアを設定するためのテストとして依存関係をクリアmv archetype-catalog archetype-catalog_backup
し、再実行する場合は、レポとredownloads archetype-catalog
に接続しないが、それでもarchetype-packaging
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/archetype/archetype-catalog/3.0.0/archetype-catalog-3.0.0.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/archetype/archetype-catalog/3.0.0/archetype-catalog-3.0.0.pom (2 KB at 2.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/archetype/archetype-catalog/3.0.0/archetype-catalog-3.0.0.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/archetype/archetype-catalog/3.0.0/archetype-catalog-3.0.0.jar (19 KB at 70.1 KB/sec)
[INFO] Setting default groupId: com.domain.rozycki
[INFO] Setting default artifactId: SkillsApp
[INFO] Setting default version: 0.0.1-SNAPSHOT
[INFO] Setting default package: com.domain.skillsapp
[INFO] Scanning for projects...
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/archetype/archetype-packaging/3.0.0/archetype-packaging-3.0.0.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.apache.maven.archetype:archetype-packaging:3.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.m
aven.archetype:archetype-packaging:jar:3.0.0 @
[ERROR] Unknown packaging: maven-archetype @ line 8, column 14
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.gdeb.rozycki:SkillsApp-archetype:0.0.1-SNAPSHOT (C:\Users\jrozycki\Development\Archetype\SkillsApp\target\generated-sources\archetype\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin org.apache.maven.archetype:archetype-packaging:3.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apac
he.maven.archetype:archetype-packaging:jar:3.0.0: Could not transfer artifact org.apache.maven.archetype:archetype-packaging:pom:3.0.0 from/to central (https://repo.maven.apache.org/maven2): sun.secur
ity.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 2]
[ERROR] Unknown packaging: maven-archetype @ line 8, column 14
[ERROR]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
にハングアップしますarchetype-packagingをダウンロードすると同じエラーが発生する
mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:get \
-DrepoUrl=https://repo.maven.apache.org/maven2 \
-Dartifact=org.apache.maven.archetype:archetype-packaging:3.0.0
-Djavax.net.ssl.keyStore=trustCARoot.jks -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.keyStoreType=JKS -Djavax.net.ssl.trustStore=trustCARoot.jks -Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.trustStoreType=JKS
ビルドの成功を得るためのアイデアはありますか?私は、右のブラウザで各ファイルをクリックし、ローカルリポジトリに保存することができるよ私は、目標mvn archetype:create-from-project
Mavenを実行しようとすると、まだの新しいMavenのリポジトリを追加し、ここで提供archetype-packaging
あなたは2つの応答の違いを見るためにカールのリクエストを送信してみてください、たとえばことができます:カール-v -k -xます。https:// proxyhost: proxyport -L https://repo.maven.apache.org/maven2/org/apache/maven/archetype/archetype-packaging/3.0.0/archetype-packaging-3.0.0.pomおよびcurl -v -k -x https:// proxyhost:proxyport -L https://repo.maven.apache.org/maven2/org/apache/maven/archetype/archetype-catalog/3.0.0/archetype-catalog-3.0.0.pom – htulsiani
A単純な回避策は、単にsettings.xmlのリポジトリセクション、またはあなたのpomからダウンロードしようとしているリポジトリのhttpバージョンを使用することです(http://repo.maven.apache.org/maven2のようなもの) )それは受け入れられないのですか? – Adonis
私は実際にhttp://stackoverflow.com/a/25912472/358794に従ってそれを解決し、settings.xmlにリポジトリを追加しました。奨励金を掲示してから約2時間働いています:(誰がそれを望んでいるのですか? – jeff