現在TERASOLUNAを使用して開発練習をしようと試みている物です。
こちらのサイトの目次2.2.1の検証環境作成と言うことで、
java,SpringToolSuite,mavenをそれぞれインストールし、
環境変数などについても調査して、
JAVA_HOMEにJDKの参照パスを。
PATHにMAVENの実行ファイルのパスを指定し、
mvn --help でmvnコマンドのパスが通っていることは確認できました。
いざ、mvn archetype:generate使用してみたところ、
下記エラーが出力されました。
cmd
1[INFO] Scanning for projects... 2Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-depl 3oy-plugin/2.7/maven-deploy-plugin-2.7.pom 4[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-dep 5loy-plugin:2.7: Plugin org.apache.maven.plugins:maven-deploy-plugin:2.7 or one of its 6 dependencies could not be resolved: Failed to read artifact descriptor for org.apach 7e.maven.plugins:maven-deploy-plugin:jar:2.7 8Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site 9-plugin/3.3/maven-site-plugin-3.3.pom 10[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-sit 11e-plugin:3.3: Plugin org.apache.maven.plugins:maven-site-plugin:3.3 or one of its dep 12endencies could not be resolved: Failed to read artifact descriptor for org.apache.ma 13ven.plugins:maven-site-plugin:jar:3.3 14Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antr 15un-plugin/1.3/maven-antrun-plugin-1.3.pom 16[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-ant 17run-plugin:1.3: Plugin org.apache.maven.plugins:maven-antrun-plugin:1.3 or one of its 18 dependencies could not be resolved: Failed to read artifact descriptor for org.apach 19e.maven.plugins:maven-antrun-plugin:jar:1.3 20Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-asse 21mbly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.pom 22[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-ass 23embly-plugin:2.2-beta-5: Plugin org.apache.maven.plugins:maven-assembly-plugin:2.2-be 24ta-5 or one of its dependencies could not be resolved: Failed to read artifact descri 25ptor for org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5 26Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-depe 27ndency-plugin/2.8/maven-dependency-plugin-2.8.pom 28[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-dep 29endency-plugin:2.8: Plugin org.apache.maven.plugins:maven-dependency-plugin:2.8 or on 30e of its dependencies could not be resolved: Failed to read artifact descriptor for o 31rg.apache.maven.plugins:maven-dependency-plugin:jar:2.8 32Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-rele 33ase-plugin/2.3.2/maven-release-plugin-2.3.2.pom 34[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-rel 35ease-plugin:2.3.2: Plugin org.apache.maven.plugins:maven-release-plugin:2.3.2 or one 36of its dependencies could not be resolved: Failed to read artifact descriptor for org 37.apache.maven.plugins:maven-release-plugin:jar:2.3.2 38Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-meta 39data.xml 40Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xm 41l 42[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml fro 43m/to central (https://repo.maven.apache.org/maven2): Host name may not contain blanks 44 45[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to ce 46ntral (https://repo.maven.apache.org/maven2): Host name may not contain blanks 47[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from https: 48//repo.maven.apache.org/maven2 was cached in the local repository, resolution will no 49t be reattempted until the update interval of central has elapsed or updates are forc 50ed. Original error: Could not transfer metadata org.apache.maven.plugins/maven-metada 51ta.xml from/to central (https://repo.maven.apache.org/maven2): Host name may not cont 52ain blanks 53[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from https://repo. 54maven.apache.org/maven2 was cached in the local repository, resolution will not be re 55attempted until the update interval of central has elapsed or updates are forced. Ori 56ginal error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to 57 central (https://repo.maven.apache.org/maven2): Host name may not contain blanks 58[INFO] ------------------------------------------------------------------------ 59[INFO] BUILD FAILURE 60[INFO] ------------------------------------------------------------------------ 61[INFO] Total time: 1.734 s 62[INFO] Finished at: 2017-06-23T16:04:55+09:00 63[INFO] Final Memory: 9M/155M 64[INFO] ------------------------------------------------------------------------ 65[ERROR] No plugin found for prefix 'archetype' in the current project and in the plug 66in groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositori 67es [local (C:\Users\takko\.m2\repository), central (https://repo.maven.apache.org/mav 68en2)] -> [Help 1] 69[ERROR] 70[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 71[ERROR] Re-run Maven using the -X switch to enable full debug logging. 72[ERROR] 73[ERROR] For more information about the errors and possible solutions, please read the 74 following articles: 75[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPre 76fixException
上記エラーについて調べた際のサイトがこちらになります。
ここではpom.xml?がキーになっているのかと思っているのですが、
翻訳をしてみても内容がサッパリ分からず手が止まってしまっています。
どのように対処すればよろしいですか。
お願い致します。
下記調査済みのURLリンクを張っておきます。
https://stackoverflow.com/questions/16348459/error-the-goal-you-specified-requires-a-project-to-execute-but-there-is-no-pom
http://qiita.com/hide/items/6593f3f02c3f28e57f2d
http://maven.apache.org/guides/mini/guide-proxies.html
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/06/26 02:12
2017/06/26 02:14
2017/06/26 02:41
2017/06/26 04:07
2017/06/26 04:11 編集
2017/06/26 04:10
2017/06/26 04:10
2017/06/26 04:11
2017/06/26 04:13
2017/06/26 05:38
2017/06/26 05:59
2017/06/26 06:56