-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EnerNOC/oadr2-ven Java example unable to compile #3
Comments
@icue11 looks to me like the problem is a networking error: |
Any alternative method for this I got following error D:\i_test\oadr2-ven>curl -v http://download.java.net
|
Do you get the same error if you try http://download.java.net/maven/2/ ? If so then your solution would be to remove that repo from the POM and I just tried again and the URL still works for me.
|
Thanks :) It was connection problem.. |
I am also trying to compile this but artifact are no longer available in the server. |
I 'm compiling OpenADR java client so I used your code from https://github.com/enernoc/oadr2-ven I'm not able to compile code some java error
..
attached error below
D:\i_test\oadr2-ven>mvn compile -X
Apache Maven 3.1.0 (893ca28a1da9d5f51ac03827af98bb730128f9f2; 2013-06-28 07:45:3
2+0530)
Maven home: D:\i_test\apache-maven\bin..
Java version: 1.7.0_25, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_25\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from D:\i_test\apache-maven\bin..\conf\settings
.xml
[DEBUG] Reading user settings from C:\Users\vhpple.m2\settings.xml
[DEBUG] Using local repository at C:\Users\vhpple.m2\repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for C:\U
sers\vhpple.m2\repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project com.enernoc.open.oadr2:oadr2-parent:pom:0.3
-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.co
re, parent: null]
[DEBUG] Extension realms for project com.enernoc.open.oadr2:oadr2-model:jar:0.3-
SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.co
re, parent: null]
[DEBUG] Extension realms for project com.enernoc.open.oadr2:oadr2-xmpp:jar:0.3-S
NAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.co
re, parent: null]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] OpenADR2 Open Reference Implementation
[INFO] OpenADR2 Open Reference Implementation Model
[INFO] OpenADR2 Open Reference Implementation for XMPP
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: com.enernoc.open.oadr2:oadr2-parent:pom:0.3-SNAPSHOT
[DEBUG] Tasks: [compile]
[DEBUG] Style: Regular
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Project: com.enernoc.open.oadr2:oadr2-model:jar:0.3-SNAPSHOT
[DEBUG] Tasks: [compile]
[DEBUG] Style: Regular
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Project: com.enernoc.open.oadr2:oadr2-xmpp:jar:0.3-SNAPSHOT
[DEBUG] Tasks: [compile]
[DEBUG] Style: Regular
[DEBUG] =======================================================================
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenADR2 Open Reference Implementation 0.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-so
urces, generate-resources, process-resources, compile, process-classes, generate
-test-sources, process-test-sources, generate-test-resources, process-test-resou
rces, test-compile, process-test-classes, test, prepare-package, package, pre-in
tegration-test, integration-test, post-integration-test, verify, install, deploy
]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project: com.enernoc.open.oadr2:oadr2-parent:0.3-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] Repositories (dependencies): [maven2-repository.dev.java.net (http://dow
nload.java.net/maven/2, releases+snapshots), Codehaus (http://repository.codehau
s.org, releases+snapshots), Codehaus.Snapshots (http://snapshots.repository.code
haus.org, releases+snapshots), central (http://repo.maven.apache.org/maven2, rel
eases)]
[DEBUG] Repositories (plugins) : [maven2-repository.dev.java.net (http://dow
nload.java.net/maven/2, releases+snapshots), central (http://repo.maven.apache.o
rg/maven2, releases)]
[DEBUG] =======================================================================
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenADR2 Open Reference Implementation Model 0.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-so
urces, generate-resources, process-resources, compile, process-classes, generate
-test-sources, process-test-sources, generate-test-resources, process-test-resou
rces, test-compile, process-test-classes, test, prepare-package, package, pre-in
tegration-test, integration-test, post-integration-test, verify, install, deploy
]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Using connector WagonRepositoryConnector with priority 0.0 for http://do
wnload.java.net/maven/2
Downloading: http://download.java.net/maven/2/org/jvnet/jaxb2/maven2/maven-jaxb2
-plugin/0.7.5/maven-jaxb2-plugin-0.7.5.pom
[DEBUG] Writing tracking file C:\Users\vhpple.m2\repository\org\jvnet\jaxb2\mav
en2\maven-jaxb2-plugin\0.7.5\maven-jaxb2-plugin-0.7.5.pom.lastUpdated
[DEBUG] Using connector WagonRepositoryConnector with priority 0.0 for http://re
po.maven.apache.org/maven2
Downloading: http://repo.maven.apache.org/maven2/org/jvnet/jaxb2/maven2/maven-ja
xb2-plugin/0.7.5/maven-jaxb2-plugin-0.7.5.pom
[DEBUG] Writing tracking file C:\Users\vhpple.m2\repository\org\jvnet\jaxb2\mav
en2\maven-jaxb2-plugin\0.7.5\maven-jaxb2-plugin-0.7.5.pom.lastUpdated
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] OpenADR2 Open Reference Implementation ............ SUCCESS [0.005s]
[INFO] OpenADR2 Open Reference Implementation Model ...... FAILURE [1:03.466s]
[INFO] OpenADR2 Open Reference Implementation for XMPP ... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:03.601s
[INFO] Finished at: Thu Sep 12 15:58:19 IST 2013
[INFO] Final Memory: 6M/122M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.7.5 or one of its dep
endencies could not be resolved: Failed to read artifact descriptor for org.jvne
t.jaxb2.maven2:maven-jaxb2-plugin:jar:0.7.5: Could not transfer artifact org.jvn
et.jaxb2.maven2:maven-jaxb2-plugin:pom:0.7.5 from/to maven2-repository.dev.java.
net (http://download.java.net/maven/2): Connection to http://download.java.net r
efused: Connection timed out: connect -> [Help 1]
org.apache.maven.plugin.PluginResolutionException: Plugin org.jvnet.jaxb2.maven2
:maven-jaxb2-plugin:0.7.5 or one of its dependencies could not be resolved: Fail
ed to read artifact descriptor for org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:jar
:0.7.5
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.re
solve(DefaultPluginDependenciesResolver.java:122)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginD
escriptor(DefaultMavenPluginManager.java:146)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDes
criptor(DefaultMavenPluginManager.java:265)
at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(D
efaultBuildPluginManager.java:190)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalc
ulator.calculateLifecycleMappings(DefaultLifecycleExecutionPlanCalculator.java:2
84)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalc
ulator.calculateMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:198)
ulator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:117)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalc
ulator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:134)
at org.apache.maven.lifecycle.internal.BuilderCommon.resolveBuildPlan(Bu
ilderCommon.java:92)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:414)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
357)
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to
read artifact descriptor for org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:jar:0.7.5
loadPom(DefaultArtifactDescriptorReader.java:329)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.
readArtifactDescriptor(DefaultArtifactDescriptorReader.java:217)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifact
Descriptor(DefaultRepositorySystem.java:288)
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.re
solve(DefaultPluginDependenciesResolver.java:108)
... 25 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not
transfer artifact org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:pom:0.7.5 from/to ma
ven2-repository.dev.java.net (http://download.java.net/maven/2): Connection to h
ttp://download.java.net refused
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(Defa
ultArtifactResolver.java:459)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtif
acts(DefaultArtifactResolver.java:262)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtif
act(DefaultArtifactResolver.java:239)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.
loadPom(DefaultArtifactDescriptorReader.java:314)
... 28 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not tran
sfer artifact org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:pom:0.7.5 from/to maven2
-repository.dev.java.net (http://download.java.net/maven/2): Connection to http:
//download.java.net refused
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(Wa
gonRepositoryConnector.java:1016)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(Wa
gonRepositoryConnector.java:1004)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.r
un(WagonRepositoryConnector.java:725)
at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(Runn
ableErrorForwarder.java:67)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.apache.maven.wagon.TransferFailedException: Connection to http://
download.java.net refused
at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInput
Data(AbstractHttpClientWagon.java:892)
at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:11
6)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.r
un(WagonRepositoryConnector.java:660)
... 4 more
Caused by: org.apache.maven.wagon.providers.http.httpclient.conn.HttpHostConnect
Exception: Connection to http://download.java.net refused
at org.apache.maven.wagon.providers.http.httpclient.impl.conn.DefaultCli
entConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
at org.apache.maven.wagon.providers.http.httpclient.impl.conn.ManagedCli
entConnectionImpl.open(ManagedClientConnectionImpl.java:294)
at org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultR
equestDirector.tryConnect(DefaultRequestDirector.java:645)
at org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultR
equestDirector.execute(DefaultRequestDirector.java:480)
at org.apache.maven.wagon.providers.http.httpclient.impl.client.Abstract
HttpClient.execute(AbstractHttpClient.java:906)
at org.apache.maven.wagon.providers.http.httpclient.impl.client.Abstract
HttpClient.execute(AbstractHttpClient.java:805)
at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.execute(A
bstractHttpClientWagon.java:746)
at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInput
Data(AbstractHttpClientWagon.java:886)
... 8 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketI
mpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.ja
va:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocket
Impl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java
:182)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at org.apache.maven.wagon.providers.http.httpclient.conn.scheme.PlainSoc
ketFactory.connectSocket(PlainSocketFactory.java:127)
at org.apache.maven.wagon.providers.http.httpclient.impl.conn.DefaultCli
entConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
... 15 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException
The text was updated successfully, but these errors were encountered: