I am running it behind firewall actually. I followed the instructions on:
http://maven.apache.org/guides/mini/guide-proxies.html
but it didn't work.
I may have to uninstall everything I guess.
Cheers,
Adit
-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Sent: 25 October 2006 19:39
To: Adit Santokhee
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] compiling GeoServer using maven-2.0.4
Looking at the log maven fails immediately because it could not
download the "clean" plugin.
Is there anything that may be stopping maven from being able to download
dependencies, like a firewall perhaps?
If not, perhaps your maven installation is corrupt. The only other thing
I can think of is blow away your existing installation and try again.
-Justin
Adit Santokhee wrote:
Hi Justin,
The log is attached.
Cheers,
Adit
-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Sent: 25 October 2006 19:05
To: Adit Santokhee
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] compiling GeoServer using maven-2.0.4
Hmmm, strange. There must be an issue with your repository. Can you
build if you turn of tests, ie:
mvn -Dmaven.test.skip=true clean install ?
If that doesn't work, and you have deleted the
~/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin
directory from your local repository then log the result of the command
with debugging on (-X) and send it over, I will take a closer look at it.
-Justin
Adit Santokhee wrote:
Hi Justin,
I have tried this many times. It still gives me same errors.
I have also removed the plugin and unsuccessfully tried.
Cheers,
Adit
-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Sent: 25 October 2006 16:31
To: Adit Santokhee
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] compiling GeoServer using maven-2.0.4
Can you reproduce this error over and over? Maven often produces errors
due to servers being overloaded, and running the same command again may
work.
Downloading maven dependencies manually is tricky because you have to
deal with transitive dependencies and timestamps, i don't really
recommend it, although it might just work.
I would recommend removing any versions of the plugin you currently have
in your maven repository and see what happens. If the problems persists
let us know.
-Justin
Adit Santokhee wrote:
Hello,
I am trying to compile GeoServer 1.4.0-M2-WCS using mvn compile.
I am obtaining the following error message:
C:\GeoServerWCS>mvn -e compile
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] GeoServer
[INFO] Core Platform Module
[INFO] Data Module
[INFO] Main Module
[INFO] Web Coverage Service Module
[INFO] Validation Module
[INFO] Web Feature Service Module
[INFO] Web Map Service Module
[INFO] GeoServer Maven Plugins
[INFO] Configuration Deployment PlugIn
[INFO] Web Application Module
[INFO] Artifact Merger PlugIn
[INFO] Test Module
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building GeoServer
[INFO] task-segment: [compile]
[INFO]
-------------------------------------------------------------------------
---
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking
for upd
ates from central
[WARNING] repository metadata for: 'artifact
org.apache.maven.plugins:maven-sure
fire-plugin' could not be retrieved from repository: central due to an
error: Er
ror transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-surefire-plugin' does
not exis
t or no valid version could be found
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.m
aven.plugins:maven-surefire-plugin' does not exist or no valid version
could be
found
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1281)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifec
ycle(DefaultLifecycleExecutor.java:1216)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycl
eMappings(DefaultLifecycleExecutor.java:982)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:453)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by:
org.apache.maven.plugin.version.PluginVersionNotFoundException: The p
lugin 'org.apache.maven.plugins:maven-surefire-plugin' does not exist or
no vali
d version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:225)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:87)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:158)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1252)
... 17 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 22 seconds
[INFO] Finished at: Wed Oct 25 14:56:47 BST 2006
[INFO] Final Memory: 2M/4M
[INFO]
------------------------------------------------------------------------
It is unsuccessfully trying to download the maven-surefire-plugin. I can
manually download it but where should I copy the file and which
configuration file should I change so that it doesn't try to download it
again.
Cheers,
Adit
------------------------------------------------------------------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
!DSPAM:1004,453f6e11127581116498154!
------------------------------------------------------------------------
C:\GeoServerWCS>mvn -X -Dmaven.test.skip=true clean install
+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
Settin
gs\ads\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\maven\maven-2.0.4\
bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] GeoServer
[INFO] Core Platform Module
[INFO] Data Module
[INFO] Main Module
[INFO] Web Coverage Service Module
[INFO] Validation Module
[INFO] Web Feature Service Module
[INFO] Web Map Service Module
[INFO] GeoServer Maven Plugins
[INFO] Configuration Deployment PlugIn
[INFO] Web Application Module
[INFO] Artifact Merger PlugIn
[INFO] Test Module
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building GeoServer
[INFO] task-segment: [clean, install]
[INFO]
-------------------------------------------------------------------------
---
[DEBUG] Skipping disabled repository codehaus-snapshot-plugins
[DEBUG] Trying repository central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.1/maven-clean-plugin-2.1.pom
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-clean-plugin
Reason: Error getting POM for
'org.apache.maven.plugins:maven-clean-plugin' from
the repository: Error transferring file
org.apache.maven.plugins:maven-clean-plugin:pom:2.1
from the specified remote repositories:
ibiblio (http://www.ibiblio.org/maven2),
central (http://repo1.maven.org/maven2),
refractions (http://lists.refractions.net/m2/),
espace (http://maven.espace.ird.nc),
codehaus-snapshot-plugins (http://snapshots.repository.codehaus.org/),
geotools (http://maven.geotools.fr/repository/)
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build
project
for plugin 'org.apache.maven.plugins:maven-clean-plugin': Error getting
POM for
'org.apache.maven.plugins:maven-clean-plugin' from the repository: Error
transfe
rring file
org.apache.maven.plugins:maven-clean-plugin:pom:2.1
from the specified remote repositories:
ibiblio (http://www.ibiblio.org/maven2),
central (http://repo1.maven.org/maven2),
refractions (http://lists.refractions.net/m2/),
espace (http://maven.espace.ird.nc),
codehaus-snapshot-plugins (http://snapshots.repository.codehaus.org/),
geotools (http://maven.geotools.fr/repository/)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1269)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1517)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForP
ackaging(DefaultLifecycleExecutor.java:1011)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycl
eMappings(DefaultLifecycleExecutor.java:975)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:453)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build
proje
ct for plugin 'org.apache.maven.plugins:maven-clean-plugin': Error getting
POM f
or 'org.apache.maven.plugins:maven-clean-plugin' from the repository:
Error tran
sferring file
org.apache.maven.plugins:maven-clean-plugin:pom:2.1
from the specified remote repositories:
ibiblio (http://www.ibiblio.org/maven2),
central (http://repo1.maven.org/maven2),
refractions (http://lists.refractions.net/m2/),
espace (http://maven.espace.ird.nc),
codehaus-snapshot-plugins (http://snapshots.repository.codehaus.org/),
geotools (http://maven.geotools.fr/repository/)
at
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersio
n(DefaultPluginManager.java:265)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(De
faultPluginManager.java:183)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:163)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1252)
... 18 more
Caused by: org.apache.maven.project.ProjectBuildingException: Error
getting POM
for 'org.apache.maven.plugins:maven-clean-plugin' from the repository:
Error tra
nsferring file
org.apache.maven.plugins:maven-clean-plugin:pom:2.1
from the specified remote repositories:
ibiblio (http://www.ibiblio.org/maven2),
central (http://repo1.maven.org/maven2),
refractions (http://lists.refractions.net/m2/),
espace (http://maven.espace.ird.nc),
codehaus-snapshot-plugins (http://snapshots.repository.codehaus.org/),
geotools (http://maven.geotools.fr/repository/)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:501)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromReposito
ry(DefaultMavenProjectBuilder.java:225)
at
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersio
n(DefaultPluginManager.java:249)
... 21 more
Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException:
Error
transferring file
org.apache.maven.plugins:maven-clean-plugin:pom:2.1
from the specified remote repositories:
ibiblio (http://www.ibiblio.org/maven2),
central (http://repo1.maven.org/maven2),
refractions (http://lists.refractions.net/m2/),
espace (http://maven.espace.ird.nc),
codehaus-snapshot-plugins (http://snapshots.repository.codehaus.org/),
geotools (http://maven.geotools.fr/repository/)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:140)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:63)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:467)
... 23 more
Caused by: org.apache.maven.wagon.TransferFailedException: Error
transferring fi
le
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
ata(LightweightHttpWagon.java:99)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(D
efaultWagonManager.java:369)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
aultWagonManager.java:282)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
aultWagonManager.java:244)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:124)
... 25 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:320)
at sun.net.www.http.HttpClient.New(HttpClient.java:315)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:521)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:498)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:626)
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
ata(LightweightHttpWagon.java:85)
... 30 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 21 seconds
[INFO] Finished at: Wed Oct 25 19:08:23 BST 2006
[INFO] Final Memory: 2M/4M
[INFO]
------------------------------------------------------------------------
C:\GeoServerWCS>
------------------------------------------------------------------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
!DSPAM:1004,453fac26161741460912952!
------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
!DSPAM:1004,453fac26161741460912952!
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com