前提・実現したいこと
初質問です。
eclipseにてMaven projectを新規に作成しpomを設定しているのですがpom設定画面にて一行目
の最後の部分 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0.xsdのところにエラーが発生しました。
その後
パッケージ・エクスプローラー画面で「Maven依存関係」の中に「mysql-connector-java-5.1.45.jar」が格納されません
どう解決すればよろしいでしょうか
何卒よろしくお願いいたします。
発生している問題・エラーメッセージ
Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:testResources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: The following artifacts could not be resolved: classworlds:classworlds:jar:1.1, org.codehaus.plexus:plexus-utils:jar:2.0.5, org.apache.maven.shared:maven-filtering:jar:1.1, org.codehaus.plexus:plexus-interpolation:jar:1.13: Failure to transfer classworlds:classworlds:jar:1.1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact classworlds:classworlds:jar:1.1 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org (org.apache.maven.plugins:maven-resources-plugin:2.6:testResources:default-testResources:process-test-resources) org.apache.maven.plugin.PluginExecutionException: Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:testResources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: The following artifacts could not be resolved: classworlds:classworlds:jar:1.1, org.codehaus.plexus:plexus-utils:jar:2.0.5, org.apache.maven.shared:maven-filtering:jar:1.1, org.codehaus.plexus:plexus-interpolation:jar:1.13: Failure to transfer classworlds:classworlds:jar:1.1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact classworlds:classworlds:jar:1.1 from/to central (https://repo.maven.apache.org/maven2):
該当のソースコード
Java
1<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 2 <modelVersion>4.0.0</modelVersion> 3 <groupId>jp.example</groupId> 4 <artifactId>techacademy_jdbc</artifactId> 5 <version>0.0.1-SNAPSHOT</version> 6 <build> 7 <sourceDirectory>src</sourceDirectory> 8 <plugins> 9 <plugin> 10 <artifactId>maven-compiler-plugin</artifactId> 11 <version>3.5.1</version> 12 <configuration> 13 <source>1.8</source> 14 <target>1.8</target> 15 </configuration> 16 </plugin> 17 </plugins> 18 </build> 19 <dependencies> 20 <dependency> 21 <groupId>mysql</groupId> 22 <artifactId>mysql-connector-java</artifactId> 23 <version>5.1.45</version> 24 </dependency> 25 </dependencies> 26</project> 27
試したこと
補足情報(FW/ツールのバージョンなど)
回答1件
あなたの回答
tips
プレビュー