pom.xml - Maven and and Eclipse integration -
i have few questions maven , eclipse not know them. i'm new these tools. let me describe i've done:
1 - installed apache-maven-3.3.9 on window , placed @ "c:\program files (x86)\apache-maven-3.3.9".
2 - added maven_home (and m2_home) environment variables.
3 - added "c:\program files (x86)\apache-maven-3.3.9\bin" path environment variable.
4 - set proxy maven download creating xml file under ${user.home".m2]settings.xml. content of settings.xml is:
<settings> <proxies> <proxy> <active>true</active> <protocol>https</protocol> <host>www.github.com</host> <port>8080</port> <nonproxyhosts>www.google.com</nonproxyhosts> </proxy> </proxies> </settings>
5 - tested , see if maven installed:
c:\>mvn --version c:\ apache maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5 2015-11-10t11:41:47-05:00) maven home: c:\program files (x86)\apache-maven-3.3.9 java version: 1.8.0_101, vendor: oracle corporation java home: c:\program files (x86)\java\jdk1.8.0_101\jrr default locale: en_us, platform encoding: cp1252 os name: "windows server 2008 r2", version: "6.1", arch: "x86", family: "dos"
6 - tried generate archetype , got bunch of errors. 1 error shown below. basically, maven tries download plugin fails. doubt errors caused internet connection, don't know else need in order fix issue. reason said doubted internet connection issue because configure pom file external jars on web , downloaded correctly.
c:\>mvn archetype:generate c:\ [info] scanning projects... downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven -clean-plugin/2.5/maven-clean-plugin-2.5.pom [warning] failed retrieve plugin descriptor org.apache.maven.plugins:mave n-clean-plugin:2.5: plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or on e of dependencies not resolved: failed read artifact descriptor org.apache.maven.plugins:maven-clean-plugin:jar:2.5 downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven -install-plugin/2.4/maven-install-plugin-2.4.pom terminate batch job (y/n)? y c:\>
so... maven plugins downloading problem.
and here eclipse problem:
1 - installed eclipse neon.
2 - tried add maven plugins , maven plugins installed. did maven plugins before installed neon. deleted neon eclipse because fails create simple maven-archetype project. re-installed neon eclipse. before re-installed eclipse deleted previously-installed eclipse folders not know eclipse keeps of maven info. when newly-installed eclipse tries download maven plugins, recognized of maven plugins installed. have no ideas eclipse keeps info maven plugins?
3 - tried again create simple maven-archetype project, got error message: not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 of configured repositories. not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out
so.. basically, same error message maven has.
questions:
1 - things need maven plugins download via command line?
2 - similarly, things need eclipse create simple maven-archetype project?
i did checked out of questions , answers issues of maven not being able download plugins. did try in last several days no prevail. understand answers/solutions not work me. maybe need other things don't know else need for?
3 - let after these efforts fail, can manually download maven plugins , configure them via pom.xml? checked apache maven website , seems answer "yes" not provide "how". know not best solution maven plugins download if couldn't fix download issue, have resort manual download , configure pom file.
would please show me how configure pom.xml file maven plugins?
sorry long questions, i'm new these tools , i'm trying simple java project built maven via eclipse.