I can't seem to do anything with maven because it can't download its dependencies. When I try to run a sample application from http://openejb.apache.org/ejb3-tutorial.html it gives me some errors:
D:\apache-maven-3.0.3\openejbsamples\simple-stateless>mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenEJB :: Examples :: Simple Stateless Pojo 1.0
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.454s
[INFO] Finished at: Thu Oct 13 11:47:26 CST 2011
[INFO] Final Memory: 1M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.ap
ache.maven.plugins:maven-clean-plugin:jar:2.4.1: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.4.1 from/to central (http://repo1
.maven.org/maven2): Error transferring file: repo1.maven.org: Unknown host repo1.maven.org -> [Help 1]
[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]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
Why can't I download the repositories?
UPDATE: never mind. My boss told me I can't do it because of proxy setting of the company. Anyway, I just want to study ejb the fastest way without using maven if possible?
I also struggled for weeks to fix this.... This is how I fixed...
In your
settings.xml
(underMaven_HOME\conf directory
)I added proxy entry as below
wherein,
1) "IPAddressOfYourGateway" can be obtained from IEExplorer -> Settings-> Proxy.. this is IP Address of your Proxy..
2) LocalIPAddress1|LocalIPAddress2.. "|" .. the pipe sign is used for adding multiple IP Addresses... that need to be bypassed from proxy... You need to check with your network team for the port in case it doesn't work as it is in your case...