You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ben Short <be...@nexusalpha.com> on 2006/04/25 12:00:17 UTC
Maven Proxy
Hi,
I am trying to setup maven-proxy on my network and make all my clients
connect to it rather than go to the internet. But when I run mvn complie it
always connect to the internet server first. If maven can't find a
dependency on the internet server then it tries my maven-proxy.
I have added the following to my pom.
<repositories>
<repository>
<id>internal</id>
<name>Internal Repos</name>
<layout>default</layout>
<url>http://internalhost:9999</url>
</repository>
</repositories>
I have also set the id element to central but it still uses the internet
server first.
Any ideas?
Ben
Re: Maven Proxy
Posted by Alexandre Poitras <al...@gmail.com>.
haha I think you're right. I have had a very very thought week so far
so forget it!
On 4/26/06, Wayne Fay <wa...@gmail.com> wrote:
> Actually I don't think his question was "what is JIRA" instead it was
> "what is the JIRA number for this bug, so I can track/vote/comment on
> it"... Could be wrong tho. ;-)
>
> Wayne
>
> On 4/26/06, Alexandre Poitras <al...@gmail.com> wrote:
> > An issue tracker system, the one used by Maven community.
> >
> > On 4/26/06, Alex Mayorga Adame <al...@yahoo.com> wrote:
> > >
> > > Just for the record, what's the JIRA?
> > > --
> > > View this message in context: http://www.nabble.com/Maven-Proxy-t1504552.html#a4110268
> > > Sent from the Maven - Users forum at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Wayne Fay <wa...@gmail.com>.
Actually I don't think his question was "what is JIRA" instead it was
"what is the JIRA number for this bug, so I can track/vote/comment on
it"... Could be wrong tho. ;-)
Wayne
On 4/26/06, Alexandre Poitras <al...@gmail.com> wrote:
> An issue tracker system, the one used by Maven community.
>
> On 4/26/06, Alex Mayorga Adame <al...@yahoo.com> wrote:
> >
> > Just for the record, what's the JIRA?
> > --
> > View this message in context: http://www.nabble.com/Maven-Proxy-t1504552.html#a4110268
> > Sent from the Maven - Users forum at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Maven Proxy
Posted by Alexandre Poitras <al...@gmail.com>.
An issue tracker system, the one used by Maven community.
On 4/26/06, Alex Mayorga Adame <al...@yahoo.com> wrote:
>
> Just for the record, what's the JIRA?
> --
> View this message in context: http://www.nabble.com/Maven-Proxy-t1504552.html#a4110268
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Clifton Craig <cc...@icsaward.com>.
On Wednesday 26 April 2006 5:41 pm, Alex Mayorga Adame wrote:
> Just for the record, what's the JIRA?
I submitted mavenproxy-46 for this bug.
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Alex Mayorga Adame <al...@yahoo.com>.
Just for the record, what's the JIRA?
--
View this message in context: http://www.nabble.com/Maven-Proxy-t1504552.html#a4110268
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Clifton Craig <cc...@gbg.com>.
On Wednesday 26 April 2006 4:15 pm, Wayne Fay wrote:
> I hope you file this as a JIRA bug and include details for fixing it
> etc... Great job tracking down the problem.
>
> Wayne
Thanx Wayne. The issue is filed. I hope it doesn't bite anyone else too hard.
I've already had discussion with at least one other person on IRC who gave up
on Maven proxy because they couldn't get it set up correctly. I'd love to
supply some additional documentation for the project if only to help others
who may be suffering as I was.
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Wayne Fay <wa...@gmail.com>.
I hope you file this as a JIRA bug and include details for fixing it
etc... Great job tracking down the problem.
Wayne
On 4/26/06, Clifton Craig <cc...@icsaward.com> wrote:
> On Wednesday 26 April 2006 11:42 am, Ben Short wrote:
> > Craig,
> >
> > I will post my setup to see if it helps you.
>
> I got it! I figured out the problem and I fixed it!! The problem was
> commons-httpclient. Maven-proxy ships with an older version than current.
> What I did was fire up groovyConsole and prototype the code that I found in
> maven-proxy's source base. I passed httpclient a URL to the offending pom
> from Ibiblio and I got a status code of 200 in my console. I then noted the
> different version of the httpclient api distributed with groovy vs. that
> which was found in the maven-proxy war file. I replaced my groovy httpclient
> jar with the exact one I found in the maven-proxy war and then I started
> getting the same "missing HTTP header" error I was getting in my Jetty logs.
> I then switched back to the later version (3.0-rc3) of HTTP client in both
> Groovy and maven-proxy and viola! The error went away! Thank you Ben and
> thank you Tom for all of your help!
>
> ---------------------------------------------------
> Clifton C. Craig, Software Engineer
> Intelligent Computer Systems - A Division of GBG
> ccc@icsaward.com
> ccraig@gbg.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Maven Proxy
Posted by Clifton Craig <cc...@icsaward.com>.
On Wednesday 26 April 2006 11:42 am, Ben Short wrote:
> Craig,
>
> I will post my setup to see if it helps you.
I got it! I figured out the problem and I fixed it!! The problem was
commons-httpclient. Maven-proxy ships with an older version than current.
What I did was fire up groovyConsole and prototype the code that I found in
maven-proxy's source base. I passed httpclient a URL to the offending pom
from Ibiblio and I got a status code of 200 in my console. I then noted the
different version of the httpclient api distributed with groovy vs. that
which was found in the maven-proxy war file. I replaced my groovy httpclient
jar with the exact one I found in the maven-proxy war and then I started
getting the same "missing HTTP header" error I was getting in my Jetty logs.
I then switched back to the later version (3.0-rc3) of HTTP client in both
Groovy and maven-proxy and viola! The error went away! Thank you Ben and
thank you Tom for all of your help!
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Clifton Craig <cc...@gbg.com>.
I think I'm done now. I don't quite understand some of the quirks of maven2
with maven-proxy but in time I guess I'll learn them. After updating the
HTTPClient to work through our HTTP proxy I set my settings.xml to use
maven-proxy for both artifacts and plugins. I started getting the following
error again:
'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid
version could be found
I couldn't understand this one because it looked like the proxy was getting no
activity. I fumbled a bit then decided to delete the maven-resources-plugin
from my repository. Once I did that, then things started working again. I
could've sworn I had a similar problem a while ago and took the same steps to
resolve it. It seems like once the maven-resources-plugin is downloaded from
a the official repository you can't get maven to use the local repo without
deleting it and having it re-fetched. In hind-site I probably could've used
the -U switch or something to force it to download again.anyhow I think all
is good now. Thank you everybody for your help!
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven Proxy
Posted by Ben Short <be...@nexusalpha.com>.
Craig,
I will post my setup to see if it helps you.
There are two differences that I can see, you are using the webapp
maven-proxy but I am running the stand alone maven-proxy. Also I don't have
an internet proxy.
My maven-proxy.properties
################ GLOBAL SETTINGS
# This is where maven-proxy stores files it has downloaded
repo.local.store=./repo
#The port to listen on - not used if loaded as a webapp
port=9999
#This is the base area that all files are loaded from. While it is possible
to leave this blank, this behaviour
#is deprecated and will be disabled in version 2.0. There are too many
namespace conflicts caused by not using
#a prefix.
#The repository will be shown at http://localhost:9999/repository/
#for the .war loaded into a webapp server, the default prefix is
"repository" (edit the web.xml to change)
# As maven doesn't like a trailing slash, this address shouldn't have one
either.
prefix=repository
#This is the simple date format used to display the last modified date while
browsing the repository.
lastModifiedDateFormat=yyyy/MM/dd HH:mm:ss
################ SNAPSHOT HANDLING
#If you want the proxy to look for newer snapshots, set to true
snapshot.update=true
################ M2 METADATA HANDLING
#If you want the proxy to prevent looking for newer metadata, set to false
(default is true)
#metadata.update=false
################ M2 POM HANDLING
#If you want the proxy to look for newer POMs, set to true (default is
false)
pom.update=true
################ PROMOTION HANDLING
# ***** NOT CURRENTLY IMPLEMENTED *****
#Promotion describes the process by which new artifacts are loaded to global
maven-proxy repository. It
# is designed to be used by "higher security installations" that do not want
to acquire artifacts from
# remote repositories without approval.
#
#If promotion handling is enabled, then the proxy will not download remote
artifacts without permission
# (local repositories with copy=false are considered to be local)
#
#Permission to download is granted via the Promotion menu which will be
enabled
# when promotion handling is enabled.
#
#If promotion is false, artifacts are sourced from any repository as per
normal.
#
#Promotion and snapshots: If promotion is enabled, snapshots are not
downloadable. The concept of using
# a snapshot in a production build (which is primarily what promotion is
for) is counterintuitive.
##
promotion=false
################ WEB INTERFACE
# This defines the absolute URL the server should use to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
# The prefix will be added to this for the actual repository
# i.e. proxy available at http://localhost:9999/, repository at
http://localhost:9999/repository
serverName=http://localhost:9999
#If true, the repository can be browsed
browsable=true
#If true, the repository can be searched
searchable=true
#Not currently implemented. Will allow webdav access to the repository at
some point.
webdav=true
#Stylesheet - if configured, will override the default stylesheet shipped
with maven-proxy - absolute URLs only
#eg. /maven-proxy/style.css, http://www.example.com/style.css
stylesheet=/maven-proxy/style.css
#bgColor / bgColorHighlight are replaced in the built in stylesheet to
produce a simple color scheme.
#If a stylesheet is set, these are not used.
bgColor=#14B
bgColorHighlight=#94B
#rowColor / rowColorHighlight are replaced in the built in stylesheet to
produce a simple color scheme.
#If a stylesheet is set, these are not used.
rowColor=#CCF
rowColorHighlight=#DDF
################ PROXIES
#This is just a hack, it should auto discover them
#proxy.list=one,two,three
#Unauthenticated proxy
#proxy.one.host=proxy1.example.com
#proxy.one.port=3128
#Authenticated proxy
#proxy.two.host=proxy2.example.org
#proxy.two.port=80
#proxy.two.username=username2
#proxy.two.password=password2
#Authenticated proxy
#proxy.three.host=proxy3.example.net
#proxy.three.port=3129
#proxy.three.username=username3
#proxy.three.password=password3
################# REPOSITORIES
#This is not just a hack, it specifies the order repositories should be
checked
#Note that the proxy adds a "/" which is why the urls aren't suffixed with a
"/"
repo.list=local-repo,www-ibiblio-org,dist-codehaus-org
#local-store
# The local store represents a location that local jars you host can be
located.
# This could also be achieved by having a local http repository, but this is
less cumbersome
repo.local-repo.url=file:///./repo-local
repo.local-repo.description=Super Secret Custom Repository
#If copy is true, jars are copied from the store to the proxy-repo. Only
configurable for file:/// repos
repo.local-repo.copy=false
#If hardfail is true, any unexpected errors from the repository will cause
#the client download to fail (typically with a 500 error)
repo.local-repo.hardfail=true
#Don't cache a file repository
repo.local-repo.cache.period=0
#www.ibiblio.org
repo.www-ibiblio-org.url=http://www.ibiblio.org/maven2
repo.www-ibiblio-org.description=www.ibiblio.org
#repo.www-ibiblio-org.proxy=one
repo.www-ibiblio-org.hardfail=true
#Cache this repository for 1 hour
repo.www-ibiblio-org.cache.period=3600
repo.www-ibiblio-org.cache.failures=true
#dist.codehaus.org
repo.dist-codehaus-org.url=http://dist.codehaus.org
#repo.dist-codehaus-org.proxy=two
repo.dist-codehaus-org.hardfail=false
repo.dist-codehaus-org.cache.period=3600
repo.dist-codehaus-org.cache.failures=true
-----Original Message-----
From: Clifton Craig [mailto:ccc@icsaward.com]
Sent: 26 April 2006 16:25
To: Maven Users List
Subject: Re: Maven Proxy
Aww nuts. That didn't fix it. There's definitely something wrong with
maven-proxy's ability to access the net, though I can't narrow it. I get
these logs when I run my Maven build now:
<snip>
2006-04-26 10:09:21,251 [INFO ] components.impl.DefaultSnapshotCache -
Updating /jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.pom in snapshot cache
2006-04-26 10:09:21,251 [INFO ] proxy.engine.DownloadEngine -
Repo[www-ibiblio-org]: /jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.pom last
modified 1132809499000
2006-04-26 10:09:21,251 [INFO ] components.impl.DefaultSnapshotCache -
Updating /jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.pom in snapshot cache
2006-04-26 10:09:21,251 [INFO ] proxy.engine.DownloadEngine -
Repo[www-ibiblio-org]: Found most up-to-date version
of /jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.pom
2006-04-26 10:09:21,251 [INFO ] proxy.engine.DownloadEngine -
Repo[www-ibiblio-org]: Copying /jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.pom
to Repo[global]
2006-04-26 10:09:21,251 [INFO ] proxy.config.HttpRepoConfiguration -
Retrieving /jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.pom
2006-04-26 10:09:21,260 [INFO ] commons.httpclient.HttpMethodBase -
Recoverable exception caught when processing request
2006-04-26 10:09:21,260 [WARN ] commons.httpclient.HttpMethodBase -
Recoverable exception caught but MethodRetryHandler.retryMethod() returned
false, rethrowing exception
2006-04-26 10:09:21,260 [ERROR] proxy.engine.DownloadEngine -
org.apache.commons.httpclient.HttpRecoverableException:
org.apache.commons.httpclient.HttpRecoverableException: Error in parsing the
status line from the response: unable to find line starting with "HTTP"
</snip>
I've had problems with HttpClient under Ivy/Ant in the past so this feels
familiar. Back then I configured Ivy to use a the normal java.net.URL
connection method while I set a custom authenticator for the JVM in my build
using an embedded beanshell script. I'm wondereing if this is not related.
I'm sure that my proxy info is correct, and at this point I'm pretty
confident I've configured it in the maven-proxy settings the right way. I
may
try running some simple unit tests with HttpClient if I get a free moment.
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
On Wednesday 26 April 2006 10:26 am, Clifton Craig wrote:
> Tom,
>
> I think I found something! I just noticed that my maven-proxy configs were
> pointing to the maven1 repository instead of the maven2 repository. I'm
> restarting my proxy right now and will get right back to let you know if
it
> changes anything...
>
> ---------------------------------------------------
> Clifton C. Craig, Software Engineer
> Intelligent Computer Systems - A Division of GBG
> ccc@icsaward.com
> ccraig@gbg.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Clifton Craig <cc...@icsaward.com>.
Aww nuts. That didn't fix it. There's definitely something wrong with
maven-proxy's ability to access the net, though I can't narrow it. I get
these logs when I run my Maven build now:
<snip>
2006-04-26 10:09:21,251 [INFO ] components.impl.DefaultSnapshotCache -
Updating /jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.pom in snapshot cache
2006-04-26 10:09:21,251 [INFO ] proxy.engine.DownloadEngine -
Repo[www-ibiblio-org]: /jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.pom last
modified 1132809499000
2006-04-26 10:09:21,251 [INFO ] components.impl.DefaultSnapshotCache -
Updating /jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.pom in snapshot cache
2006-04-26 10:09:21,251 [INFO ] proxy.engine.DownloadEngine -
Repo[www-ibiblio-org]: Found most up-to-date version
of /jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.pom
2006-04-26 10:09:21,251 [INFO ] proxy.engine.DownloadEngine -
Repo[www-ibiblio-org]: Copying /jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.pom
to Repo[global]
2006-04-26 10:09:21,251 [INFO ] proxy.config.HttpRepoConfiguration -
Retrieving /jaxen/jaxen/1.1-beta-8/jaxen-1.1-beta-8.pom
2006-04-26 10:09:21,260 [INFO ] commons.httpclient.HttpMethodBase -
Recoverable exception caught when processing request
2006-04-26 10:09:21,260 [WARN ] commons.httpclient.HttpMethodBase -
Recoverable exception caught but MethodRetryHandler.retryMethod() returned
false, rethrowing exception
2006-04-26 10:09:21,260 [ERROR] proxy.engine.DownloadEngine -
org.apache.commons.httpclient.HttpRecoverableException:
org.apache.commons.httpclient.HttpRecoverableException: Error in parsing the
status line from the response: unable to find line starting with "HTTP"
</snip>
I've had problems with HttpClient under Ivy/Ant in the past so this feels
familiar. Back then I configured Ivy to use a the normal java.net.URL
connection method while I set a custom authenticator for the JVM in my build
using an embedded beanshell script. I'm wondereing if this is not related.
I'm sure that my proxy info is correct, and at this point I'm pretty
confident I've configured it in the maven-proxy settings the right way. I may
try running some simple unit tests with HttpClient if I get a free moment.
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
On Wednesday 26 April 2006 10:26 am, Clifton Craig wrote:
> Tom,
>
> I think I found something! I just noticed that my maven-proxy configs were
> pointing to the maven1 repository instead of the maven2 repository. I'm
> restarting my proxy right now and will get right back to let you know if it
> changes anything...
>
> ---------------------------------------------------
> Clifton C. Craig, Software Engineer
> Intelligent Computer Systems - A Division of GBG
> ccc@icsaward.com
> ccraig@gbg.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Clifton Craig <cc...@gbg.com>.
Ben,
You're welcome! I only wish I could help myself just as easily.. I think my
problem stems from HttpClient.
On Wednesday 26 April 2006 11:20 am, Ben Short wrote:
> Craig,
>
> This fixed my maven-proxy too!!
>
> Many thanks
>
> Ben
>
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven Proxy
Posted by Ben Short <be...@nexusalpha.com>.
Craig,
This fixed my maven-proxy too!!
Many thanks
Ben
-----Original Message-----
From: Clifton Craig [mailto:ccc@icsaward.com]
Sent: 26 April 2006 15:26
To: Maven Users List
Subject: Re: Maven Proxy
Tom,
I think I found something! I just noticed that my maven-proxy configs were
pointing to the maven1 repository instead of the maven2 repository. I'm
restarting my proxy right now and will get right back to let you know if it
changes anything...
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Clifton Craig <cc...@icsaward.com>.
Tom,
I think I found something! I just noticed that my maven-proxy configs were
pointing to the maven1 repository instead of the maven2 repository. I'm
restarting my proxy right now and will get right back to let you know if it
changes anything...
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Clifton Craig <cc...@icsaward.com>.
Thank you much Tom,
I'm getting there but still stuck. So far I can get maven to pull artifacts
from maven-proxy while it pulls plugins from the official repo thanx to your
help. I still can't get the plugins to serve from maven-proxy. I have
confirmed that maven proxy still is not able to download artifacts from
Ibiblio. To confirm this I renamed the jaxen folder in maven-proxy's local
repo and ran my maven build on my client. It pull all of the rest of the
stuff from maven-proxy and failed when it tried to pull down jaxen. So in
summary, artifacts placed in maven-proxy's local repo folder can be served
while remote stuff from Ibiblio cannot be found. Also, my local maven build
has a problem finding the maven-resource-plugin when I clean my
~/.m2/repository. Even after using your profiles settings suggestions it
won't find the plugin. I have confirmed the plugin exists in the maven-proxy
repo too.
More info that may shed light on things: To load maven-proxy's local repo
folder I opened a split screen in (KDE) Konqueror and just dragged everything
from under my ~/.m2/repository folder into the maven-proxy local repository
folder. I understand there is a difference between maven-proxy's local store
and the local repository configured for it. The local store is the place
where it caches artifacts it finds on the internet and the local repository
is just an extra repository it can go for artifacts. I dropped my
~/.m2/repository stuff into the local repository not the local store. I also
noticed the hard fail property on the local repository is configured to true.
I'm wondering if that is somehow causing maven-proxy to not consider the
other repositories configured, Ibiblio and codehaus. I might try switchin the
order of the list to see if that helps any.
If you have any other ideas I could try I'd be more than appreciative. Thanx
again for all of your help!
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
On Wednesday 26 April 2006 3:51 am, Tom Joad wrote:
> <profiles>
> <profile>
> <id>default-profile</id>
> <activation>
> <activeByDefault>TRUE</activeByDefault>
> </activation>
> <pluginRepositories>
> <pluginRepository>
> <name>*******</name>
> <url>******</url>
> <id>*******</id>
> <snapshots>
> <enabled>TRUE</enabled>
> </snapshots>
> </pluginRepository>
> </pluginRepositories>
> </profile>
> </profiles>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Alexandre Poitras <al...@gmail.com>.
On 4/26/06, Tom Joad <tj...@gmail.com> wrote:
> Hi Clifton,
> From repository point of view , plugin is an artifact as another. So I
> don't understand why
> it can be downloaded. I use maven proxy standalone version and until
> know i don'have to declare something special about pluginrepository.
> But last week , I needed to use a snaphot version of
> maven-tomcat-plugin , I have to add profile like below in my
> settings.xml. So My maven-proxy is also a pluginrepository. (Don't ask
> me what is difference betwenn repository and pluginrepository, i
> have no answer now) .
A repository is only used for dependencies while a plugin repository
is only used for plugins. Those categories are used mainly to restrict
the use of a given repository, it doesn't change anything in the
repository implementation.
> I suggest you
> first if you have M2_HOME/conf/pluginregistry.xml file to rename it.
> It seems I already have problem with it.
> Second add lines like this on your settings.xml
> <profiles>
> <profile>
> <id>default-profile</id>
> <activation>
> <activeByDefault>TRUE</activeByDefault>
> </activation>
> <pluginRepositories>
> <pluginRepository>
> <name>*******</name>
> <url>******</url>
> <id>*******</id>
> <snapshots>
> <enabled>TRUE</enabled>
> </snapshots>
> </pluginRepository>
> </pluginRepositories>
> </profile>
> </profiles>
> Wher name url and id match same values as under mirrors one.
>
> Tom.
>
>
> 2006/4/25, Clifton Craig <cc...@gbg.com>:
> > Tom,
> >
> > Ok I got some better info. I was naming the maven-proxy mirror wrong in my
> > settings.xml. After I fixed up the settings.xml (I added /repository to the
> > end of my internal mirror URL) it looked like it was working a litlle better.
> > For one reason or another I am not able to download plugins from the proxy. I
> > think I can get everything else ok. Also I'm still not confident of the
> > proxies ability to download from the internet. I still need help. Thanx for
> > your consideration.
> >
> > ---------------------------------------------------
> > Clifton C. Craig, Software Engineer
> > Intelligent Computer Systems - A Division of GBG
> > ccc@icsaward.com
> > ccraig@gbg.com
> >
> > On Tuesday 25 April 2006 11:44 am, Tom Joad wrote:
> > > I didn't ask so many questions about maven-proxy when I configure it
> > > and perhaps I miss something on the deep way it works. So I suggest
> > > you to reconfigure completely the proxy from the one provided by
> > > archive . you only change values which are your owns like proxy .
> > > I think your proxy and public repository connexion are wright.
> > > Delete local-repo from repo.list.
> > > Simply browse repository doesn't download artifact or pom file.
> > > You have to declare it as a dependency on a project and for example
> > > compile project
> > >
> > > Tom.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Tom Joad <tj...@gmail.com>.
Hi Clifton,
>From repository point of view , plugin is an artifact as another. So I
don't understand why
it can be downloaded. I use maven proxy standalone version and until
know i don'have to declare something special about pluginrepository.
But last week , I needed to use a snaphot version of
maven-tomcat-plugin , I have to add profile like below in my
settings.xml. So My maven-proxy is also a pluginrepository. (Don't ask
me what is difference betwenn repository and pluginrepository, i
have no answer now) .
I suggest you
first if you have M2_HOME/conf/pluginregistry.xml file to rename it.
It seems I already have problem with it.
Second add lines like this on your settings.xml
<profiles>
<profile>
<id>default-profile</id>
<activation>
<activeByDefault>TRUE</activeByDefault>
</activation>
<pluginRepositories>
<pluginRepository>
<name>*******</name>
<url>******</url>
<id>*******</id>
<snapshots>
<enabled>TRUE</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
Wher name url and id match same values as under mirrors one.
Tom.
2006/4/25, Clifton Craig <cc...@gbg.com>:
> Tom,
>
> Ok I got some better info. I was naming the maven-proxy mirror wrong in my
> settings.xml. After I fixed up the settings.xml (I added /repository to the
> end of my internal mirror URL) it looked like it was working a litlle better.
> For one reason or another I am not able to download plugins from the proxy. I
> think I can get everything else ok. Also I'm still not confident of the
> proxies ability to download from the internet. I still need help. Thanx for
> your consideration.
>
> ---------------------------------------------------
> Clifton C. Craig, Software Engineer
> Intelligent Computer Systems - A Division of GBG
> ccc@icsaward.com
> ccraig@gbg.com
>
> On Tuesday 25 April 2006 11:44 am, Tom Joad wrote:
> > I didn't ask so many questions about maven-proxy when I configure it
> > and perhaps I miss something on the deep way it works. So I suggest
> > you to reconfigure completely the proxy from the one provided by
> > archive . you only change values which are your owns like proxy .
> > I think your proxy and public repository connexion are wright.
> > Delete local-repo from repo.list.
> > Simply browse repository doesn't download artifact or pom file.
> > You have to declare it as a dependency on a project and for example
> > compile project
> >
> > Tom.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Clifton Craig <cc...@gbg.com>.
Tom,
Ok I got some better info. I was naming the maven-proxy mirror wrong in my
settings.xml. After I fixed up the settings.xml (I added /repository to the
end of my internal mirror URL) it looked like it was working a litlle better.
For one reason or another I am not able to download plugins from the proxy. I
think I can get everything else ok. Also I'm still not confident of the
proxies ability to download from the internet. I still need help. Thanx for
your consideration.
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
On Tuesday 25 April 2006 11:44 am, Tom Joad wrote:
> I didn't ask so many questions about maven-proxy when I configure it
> and perhaps I miss something on the deep way it works. So I suggest
> you to reconfigure completely the proxy from the one provided by
> archive . you only change values which are your owns like proxy .
> I think your proxy and public repository connexion are wright.
> Delete local-repo from repo.list.
> Simply browse repository doesn't download artifact or pom file.
> You have to declare it as a dependency on a project and for example
> compile project
>
> Tom.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Alexandre Poitras <al...@gmail.com>.
By the way, if you want to be 100% sure Maven would never go on
ibiblio when it doesn't find a dependency, add this to your
setting.xml
<repositories>
<repository>
<releases>
<enabled>false</enabled>
</releases>
<id>central</id>
<name>Maven Repository Switchboard</name>
<layout>default</layout>
<url>http://repo1.maven.org/maven2</url>
</repository>
</repositories>
On 4/25/06, Clifton Craig <cc...@gbg.com> wrote:
> Tom,
>
> Thank you so much for your help! :) I'm still having a heck of a time getting
> things working though. I did configure my proxy completely from the one
> provided by the web-site. I'm now trying to test the proxy's ability to
> download from ibilio on demand. I dropped the following in my settings xml:
>
> <mirrors>
> <mirror>
> <mirrorOf>central</mirrorOf>
> <name>Optimus Repo</name>
> <url>http://maven-proxy-host:8080/mvnrepo</url>
> <id>local-proxy</id>
> </mirror>
> </mirrors>
> ..right after the http proxy settings. (Should I remove the http proxy
> settings now that I'm using a local mirror and should not need to go out
> through the internet?) Here's a complete copy of my maven-proxy configs:
>
> <snip>
>
> ################ GLOBAL SETTINGS
> # This is where maven-proxy stores files it has downloaded
> repo.local.store=./maven/repo
>
> #The port to listen on - not used if loaded as a webapp
> port=8080
>
> #This is the base area that all files are loaded from. While it is possible to
> leave this blank, this behaviour
> #is deprecated and will be disabled in version 2.0. There are too many
> namespace conflicts caused by not using
> #a prefix.
> #The repository will be shown at http://localhost:9999/repository/
> #for the .war loaded into a webapp server, the default prefix is
> "repository" (edit the web.xml to change)
> # As maven doesn't like a trailing slash, this address shouldn't have one
> either.
> prefix=mvnrepo
>
> #This is the simple date format used to display the last modified date while
> browsing the repository.
> lastModifiedDateFormat=yyyy/MM/dd HH:mm:ss
>
> ################ SNAPSHOT HANDLING
> #If you want the proxy to look for newer snapshots, set to true
> snapshot.update=true
>
> ################ M2 METADATA HANDLING
> #If you want the proxy to prevent looking for newer metadata, set to false
> (default is true)
> #metadata.update=false
>
> ################ M2 POM HANDLING
> #If you want the proxy to look for newer POMs, set to true (default is false)
> pom.update=true
>
> ################ PROMOTION HANDLING
> # ***** NOT CURRENTLY IMPLEMENTED *****
> #Promotion describes the process by which new artifacts are loaded to global
> maven-proxy repository. It
> # is designed to be used by "higher security installations" that do not want
> to acquire artifacts from
> # remote repositories without approval.
> #
> #If promotion handling is enabled, then the proxy will not download remote
> artifacts without permission
> # (local repositories with copy=false are considered to be local)
> #
> #Permission to download is granted via the Promotion menu which will be
> enabled
> # when promotion handling is enabled.
> #
> #If promotion is false, artifacts are sourced from any repository as per
> normal.
> #
> #Promotion and snapshots: If promotion is enabled, snapshots are not
> downloadable. The concept of using
> # a snapshot in a production build (which is primarily what promotion is for)
> is counterintuitive.
> ##
> promotion=false
>
> ################ WEB INTERFACE
> # This defines the absolute URL the server should use to identify itself.
> # This can often be determined automatically, but we recommend you specify
> # it explicitly to prevent problems during startup.
> # The prefix will be added to this for the actual repository
> # i.e. proxy available at http://localhost:9999/, repository at
> http://localhost:9999/repository
> serverName=http://localhost:8080
>
> #If true, the repository can be browsed
> browsable=true
>
> #If true, the repository can be searched
> searchable=true
>
> #Not currently implemented. Will allow webdav access to the repository at some
> point.
> webdav=true
>
> #Stylesheet - if configured, will override the default stylesheet shipped with
> maven-proxy - absolute URLs only
> #eg. /maven-proxy/style.css, http://www.example.com/style.css
> stylesheet=/maven-proxy/style.css
>
> #bgColor / bgColorHighlight are replaced in the built in stylesheet to produce
> a simple color scheme.
> #If a stylesheet is set, these are not used.
> bgColor=#14B
> bgColorHighlight=#94B
>
> #rowColor / rowColorHighlight are replaced in the built in stylesheet to
> produce a simple color scheme.
> #If a stylesheet is set, these are not used.
> rowColor=#CCF
> rowColorHighlight=#DDF
>
>
> ################ PROXIES
> #This is just a hack, it should auto discover them
> proxy.list=instagate
>
> #Authenticated proxy
> proxy.instagate.host=192.168.99.1
> proxy.instagate.port=8080
> proxy.instagate.username=***
> proxy.instagate.password=*****
>
> ################# REPOSITORIES
> #This is not just a hack, it specifies the order repositories should be
> checked
> #Note that the proxy adds a "/" which is why the urls aren't suffixed with a
> "/"
> repo.list=local-repo,www-ibiblio-org,dist-codehaus-org
>
> #local-store
> # The local store represents a location that local jars you host can be
> located.
> # This could also be achieved by having a local http repository, but this is
> less cumbersome
> repo.local-repo.url=file:///./maven/repo-local
> repo.local-repo.description=Neware In-office Maven Repository
> #If copy is true, jars are copied from the store to the proxy-repo. Only
> configurable for file:/// repos
> repo.local-repo.copy=false
> #If hardfail is true, any unexpected errors from the repository will cause
> #the client download to fail (typically with a 500 error)
> repo.local-repo.hardfail=true
> #Don't cache a file repository
> repo.local-repo.cache.period=0
>
>
> #www.ibiblio.org
> repo.www-ibiblio-org.url=http://www.ibiblio.org/maven
> repo.www-ibiblio-org.description=www.ibiblio.org
> repo.www-ibiblio-org.proxy=instagate
> repo.www-ibiblio-org.hardfail=true
> #Cache this repository for 1 hour
> repo.www-ibiblio-org.cache.period=3600
> repo.www-ibiblio-org.cache.failures=true
>
> #dist.codehaus.org
> repo.dist-codehaus-org.url=http://dist.codehaus.org
> repo.dist-codehaus-org.proxy=instagate
> repo.dist-codehaus-org.hardfail=false
> repo.dist-codehaus-org.cache.period=3600
> repo.dist-codehaus-org.cache.failures=true
>
> </snip>
>
> I deployed into a Jetty instance and then pointed my browser at an arbitrary
> file that I know is hosted on ibilio and not on the proxy. in the logs I get
> messages indicating some attempt at retrieving the file but then I get either
> a 500 error or bounced back to the config screen depending on how I form the
> URL request.
> http://maven-proxy-host:8080/mvnrepo/repository/cglib/poms/cglib-2.1_3.pom
> gives the 500 error while
> http://maven-proxy-host:8080/mvnrepo/cglib/poms/cglib-2.1_3.pom
> bounces me back to the config screen. I believe the second form is the right
> form but you can correct me if I'm wrong. I know you said it only downloads
> when the request is made from the maven builder but I can't see how the
> request would be any different. Are there extra params included?
>
> Anyhow, I tried temporarily renaming my ~/.m2/repository and running a mvn
> build to see if it would work that way. I got an error something like
> "remote = '<?xml' when I did so. I then noticed the maven-metadata-central
> file under my ~/.m2/repository had HTML contents. I deleted it, removed the
> internal proxy from my settings XML and generated a fresh maven
> metadata-central.xml and retried with the internal proxy set again. I got a
> bunch of checksum errors. I'm now working on deleting everything under ~/.m2
> and starting fresh with the proxy set in my settings xml and will get back
> with the results. in the interim anything you could do to help I'd greatly
> appreciate!
>
> ---------------------------------------------------
> Clifton C. Craig, Software Engineer
> Intelligent Computer Systems - A Division of GBG
> ccc@icsaward.com
> ccraig@gbg.com
>
> On Tuesday 25 April 2006 11:44 am, Tom Joad wrote:
> > I didn't ask so many questions about maven-proxy when I configure it
> > and perhaps I miss something on the deep way it works. So I suggest
> > you to reconfigure completely the proxy from the one provided by
> > archive . you only change values which are your owns like proxy .
> > I think your proxy and public repository connexion are wright.
> > Delete local-repo from repo.list.
> > Simply browse repository doesn't download artifact or pom file.
> > You have to declare it as a dependency on a project and for example
> > compile project
> >
> > Tom.
> >
> > 2006/4/25, Clifton Craig <cc...@icsaward.com>:
> > > On Tuesday 25 April 2006 9:51 am, Tom Joad wrote:
> > > > How do you copy stuff to your maven-proxy repository?
> > > > and what is value for
> > > > pom.update key on your config properties?
> > > >
> > > > Tom
> > >
> > > Tom,
> > >
> > > Thanx for your quick reply. So far so good. I set the proxy on both the
> > > ibiblio.org and codehaus.org repository settings and now I can download
> > > the pom.xml files from my maven-proxy instance. I configured a local repo
> > > for the proxy which is pointed to a folder under
> > > $JETTY_HOME/maven/repo-local. I understand this is different from the
> > > actual proxy cache which I point to $JETTY_HOME/maven/repo. Is that
> > > correct? Anyway, it looks like it's not having trouble getting out to the
> > > net at least to check for updates to the pom files. I tried testing to
> > > see if I could get the proxy to auto-download the pom for jaxen by
> > > pointing my browser to:
> > > http://maven-proxy-host:8080/mvnrepo/repository/jaxen/poms/jaxen-1.1-beta
> > >-8.pom After doing that I got another error 500. Here's a snippet of my
> > > log file:
> > >
> > > 2006-04-25 09:38:10,954 [INFO ] proxy.servlets.RepositoryServlet -
> > > Received request: /jaxen/poms/jaxen-1.1-beta-8.pom
> > > 2006-04-25 09:38:10,955 [DEBUG] proxy.engine.DownloadEngine - Request:
> > > source=192.168.99.15, path=/jaxen/poms/jaxen-1.1-beta-8.pom,
> > > lastModified=-1, headOnly=false, ifModifiedSince=1132809499000
> > > 2006-04-25 09:38:10,956 [DEBUG] proxy.config.FileRepoConfiguration -
> > > Repo[global]: Checking last modified time
> > > for ./maven/repo/jaxen/poms/jaxen-1.1-beta-8.pom
> > > 2006-04-25 09:38:10,956 [DEBUG] proxy.config.FileRepoConfiguration -
> > > Repo[local-repo]: Checking last modified time
> > > for ./maven/repo-local/jaxen/poms/jaxen-1.1-beta-8.pom
> > > 2006-04-25 09:38:10,956 [INFO ] components.impl.DefaultSnapshotCache -
> > > Updating /jaxen/poms/jaxen-1.1-beta-8.pom in snapshot cache
> > > 2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
> > > Repo[www-ibiblio-org]: /jaxen/poms/jaxen-1.1-beta-8.pom last modified
> > > 1132809499000
> > > 2006-04-25 09:38:10,956 [INFO ] components.impl.DefaultSnapshotCache -
> > > Updating /jaxen/poms/jaxen-1.1-beta-8.pom in snapshot cache
> > > 2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
> > > Repo[dist-codehaus-org]: /jaxen/poms/jaxen-1.1-beta-8.pom last modified
> > > 1127681978000
> > > 2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
> > > Repo[www-ibiblio-org]: Found most up-to-date version
> > > of /jaxen/poms/jaxen-1.1-beta-8.pom
> > > 2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
> > > Repo[www-ibiblio-org]: Sending NOT-MODIFIED response
> > >
> > > There's more before that indicating it tried to look first in the cache
> > > but couldn't find jaxen. I'm not sure what's going on but it does look a
> > > little like it can get out to the net now. I'll write more in a few if I
> > > can make heads or tails of things. In the meantime can you help me
> > > figureout what's wrong? I will add that our http proxy has been
> > > responding slow so maybe it's a timeout?
> > >
> > > ---------------------------------------------------
> > > Clifton C. Craig, Software Engineer
> > > Intelligent Computer Systems - A Division of GBG
> > > ccc@icsaward.com
> > > ccraig@gbg.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> >
> > I l
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Clifton Craig <cc...@gbg.com>.
Tom,
Thank you so much for your help! :) I'm still having a heck of a time getting
things working though. I did configure my proxy completely from the one
provided by the web-site. I'm now trying to test the proxy's ability to
download from ibilio on demand. I dropped the following in my settings xml:
<mirrors>
<mirror>
<mirrorOf>central</mirrorOf>
<name>Optimus Repo</name>
<url>http://maven-proxy-host:8080/mvnrepo</url>
<id>local-proxy</id>
</mirror>
</mirrors>
..right after the http proxy settings. (Should I remove the http proxy
settings now that I'm using a local mirror and should not need to go out
through the internet?) Here's a complete copy of my maven-proxy configs:
<snip>
################ GLOBAL SETTINGS
# This is where maven-proxy stores files it has downloaded
repo.local.store=./maven/repo
#The port to listen on - not used if loaded as a webapp
port=8080
#This is the base area that all files are loaded from. While it is possible to
leave this blank, this behaviour
#is deprecated and will be disabled in version 2.0. There are too many
namespace conflicts caused by not using
#a prefix.
#The repository will be shown at http://localhost:9999/repository/
#for the .war loaded into a webapp server, the default prefix is
"repository" (edit the web.xml to change)
# As maven doesn't like a trailing slash, this address shouldn't have one
either.
prefix=mvnrepo
#This is the simple date format used to display the last modified date while
browsing the repository.
lastModifiedDateFormat=yyyy/MM/dd HH:mm:ss
################ SNAPSHOT HANDLING
#If you want the proxy to look for newer snapshots, set to true
snapshot.update=true
################ M2 METADATA HANDLING
#If you want the proxy to prevent looking for newer metadata, set to false
(default is true)
#metadata.update=false
################ M2 POM HANDLING
#If you want the proxy to look for newer POMs, set to true (default is false)
pom.update=true
################ PROMOTION HANDLING
# ***** NOT CURRENTLY IMPLEMENTED *****
#Promotion describes the process by which new artifacts are loaded to global
maven-proxy repository. It
# is designed to be used by "higher security installations" that do not want
to acquire artifacts from
# remote repositories without approval.
#
#If promotion handling is enabled, then the proxy will not download remote
artifacts without permission
# (local repositories with copy=false are considered to be local)
#
#Permission to download is granted via the Promotion menu which will be
enabled
# when promotion handling is enabled.
#
#If promotion is false, artifacts are sourced from any repository as per
normal.
#
#Promotion and snapshots: If promotion is enabled, snapshots are not
downloadable. The concept of using
# a snapshot in a production build (which is primarily what promotion is for)
is counterintuitive.
##
promotion=false
################ WEB INTERFACE
# This defines the absolute URL the server should use to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
# The prefix will be added to this for the actual repository
# i.e. proxy available at http://localhost:9999/, repository at
http://localhost:9999/repository
serverName=http://localhost:8080
#If true, the repository can be browsed
browsable=true
#If true, the repository can be searched
searchable=true
#Not currently implemented. Will allow webdav access to the repository at some
point.
webdav=true
#Stylesheet - if configured, will override the default stylesheet shipped with
maven-proxy - absolute URLs only
#eg. /maven-proxy/style.css, http://www.example.com/style.css
stylesheet=/maven-proxy/style.css
#bgColor / bgColorHighlight are replaced in the built in stylesheet to produce
a simple color scheme.
#If a stylesheet is set, these are not used.
bgColor=#14B
bgColorHighlight=#94B
#rowColor / rowColorHighlight are replaced in the built in stylesheet to
produce a simple color scheme.
#If a stylesheet is set, these are not used.
rowColor=#CCF
rowColorHighlight=#DDF
################ PROXIES
#This is just a hack, it should auto discover them
proxy.list=instagate
#Authenticated proxy
proxy.instagate.host=192.168.99.1
proxy.instagate.port=8080
proxy.instagate.username=***
proxy.instagate.password=*****
################# REPOSITORIES
#This is not just a hack, it specifies the order repositories should be
checked
#Note that the proxy adds a "/" which is why the urls aren't suffixed with a
"/"
repo.list=local-repo,www-ibiblio-org,dist-codehaus-org
#local-store
# The local store represents a location that local jars you host can be
located.
# This could also be achieved by having a local http repository, but this is
less cumbersome
repo.local-repo.url=file:///./maven/repo-local
repo.local-repo.description=Neware In-office Maven Repository
#If copy is true, jars are copied from the store to the proxy-repo. Only
configurable for file:/// repos
repo.local-repo.copy=false
#If hardfail is true, any unexpected errors from the repository will cause
#the client download to fail (typically with a 500 error)
repo.local-repo.hardfail=true
#Don't cache a file repository
repo.local-repo.cache.period=0
#www.ibiblio.org
repo.www-ibiblio-org.url=http://www.ibiblio.org/maven
repo.www-ibiblio-org.description=www.ibiblio.org
repo.www-ibiblio-org.proxy=instagate
repo.www-ibiblio-org.hardfail=true
#Cache this repository for 1 hour
repo.www-ibiblio-org.cache.period=3600
repo.www-ibiblio-org.cache.failures=true
#dist.codehaus.org
repo.dist-codehaus-org.url=http://dist.codehaus.org
repo.dist-codehaus-org.proxy=instagate
repo.dist-codehaus-org.hardfail=false
repo.dist-codehaus-org.cache.period=3600
repo.dist-codehaus-org.cache.failures=true
</snip>
I deployed into a Jetty instance and then pointed my browser at an arbitrary
file that I know is hosted on ibilio and not on the proxy. in the logs I get
messages indicating some attempt at retrieving the file but then I get either
a 500 error or bounced back to the config screen depending on how I form the
URL request.
http://maven-proxy-host:8080/mvnrepo/repository/cglib/poms/cglib-2.1_3.pom
gives the 500 error while
http://maven-proxy-host:8080/mvnrepo/cglib/poms/cglib-2.1_3.pom
bounces me back to the config screen. I believe the second form is the right
form but you can correct me if I'm wrong. I know you said it only downloads
when the request is made from the maven builder but I can't see how the
request would be any different. Are there extra params included?
Anyhow, I tried temporarily renaming my ~/.m2/repository and running a mvn
build to see if it would work that way. I got an error something like
"remote = '<?xml' when I did so. I then noticed the maven-metadata-central
file under my ~/.m2/repository had HTML contents. I deleted it, removed the
internal proxy from my settings XML and generated a fresh maven
metadata-central.xml and retried with the internal proxy set again. I got a
bunch of checksum errors. I'm now working on deleting everything under ~/.m2
and starting fresh with the proxy set in my settings xml and will get back
with the results. in the interim anything you could do to help I'd greatly
appreciate!
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
On Tuesday 25 April 2006 11:44 am, Tom Joad wrote:
> I didn't ask so many questions about maven-proxy when I configure it
> and perhaps I miss something on the deep way it works. So I suggest
> you to reconfigure completely the proxy from the one provided by
> archive . you only change values which are your owns like proxy .
> I think your proxy and public repository connexion are wright.
> Delete local-repo from repo.list.
> Simply browse repository doesn't download artifact or pom file.
> You have to declare it as a dependency on a project and for example
> compile project
>
> Tom.
>
> 2006/4/25, Clifton Craig <cc...@icsaward.com>:
> > On Tuesday 25 April 2006 9:51 am, Tom Joad wrote:
> > > How do you copy stuff to your maven-proxy repository?
> > > and what is value for
> > > pom.update key on your config properties?
> > >
> > > Tom
> >
> > Tom,
> >
> > Thanx for your quick reply. So far so good. I set the proxy on both the
> > ibiblio.org and codehaus.org repository settings and now I can download
> > the pom.xml files from my maven-proxy instance. I configured a local repo
> > for the proxy which is pointed to a folder under
> > $JETTY_HOME/maven/repo-local. I understand this is different from the
> > actual proxy cache which I point to $JETTY_HOME/maven/repo. Is that
> > correct? Anyway, it looks like it's not having trouble getting out to the
> > net at least to check for updates to the pom files. I tried testing to
> > see if I could get the proxy to auto-download the pom for jaxen by
> > pointing my browser to:
> > http://maven-proxy-host:8080/mvnrepo/repository/jaxen/poms/jaxen-1.1-beta
> >-8.pom After doing that I got another error 500. Here's a snippet of my
> > log file:
> >
> > 2006-04-25 09:38:10,954 [INFO ] proxy.servlets.RepositoryServlet -
> > Received request: /jaxen/poms/jaxen-1.1-beta-8.pom
> > 2006-04-25 09:38:10,955 [DEBUG] proxy.engine.DownloadEngine - Request:
> > source=192.168.99.15, path=/jaxen/poms/jaxen-1.1-beta-8.pom,
> > lastModified=-1, headOnly=false, ifModifiedSince=1132809499000
> > 2006-04-25 09:38:10,956 [DEBUG] proxy.config.FileRepoConfiguration -
> > Repo[global]: Checking last modified time
> > for ./maven/repo/jaxen/poms/jaxen-1.1-beta-8.pom
> > 2006-04-25 09:38:10,956 [DEBUG] proxy.config.FileRepoConfiguration -
> > Repo[local-repo]: Checking last modified time
> > for ./maven/repo-local/jaxen/poms/jaxen-1.1-beta-8.pom
> > 2006-04-25 09:38:10,956 [INFO ] components.impl.DefaultSnapshotCache -
> > Updating /jaxen/poms/jaxen-1.1-beta-8.pom in snapshot cache
> > 2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
> > Repo[www-ibiblio-org]: /jaxen/poms/jaxen-1.1-beta-8.pom last modified
> > 1132809499000
> > 2006-04-25 09:38:10,956 [INFO ] components.impl.DefaultSnapshotCache -
> > Updating /jaxen/poms/jaxen-1.1-beta-8.pom in snapshot cache
> > 2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
> > Repo[dist-codehaus-org]: /jaxen/poms/jaxen-1.1-beta-8.pom last modified
> > 1127681978000
> > 2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
> > Repo[www-ibiblio-org]: Found most up-to-date version
> > of /jaxen/poms/jaxen-1.1-beta-8.pom
> > 2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
> > Repo[www-ibiblio-org]: Sending NOT-MODIFIED response
> >
> > There's more before that indicating it tried to look first in the cache
> > but couldn't find jaxen. I'm not sure what's going on but it does look a
> > little like it can get out to the net now. I'll write more in a few if I
> > can make heads or tails of things. In the meantime can you help me
> > figureout what's wrong? I will add that our http proxy has been
> > responding slow so maybe it's a timeout?
> >
> > ---------------------------------------------------
> > Clifton C. Craig, Software Engineer
> > Intelligent Computer Systems - A Division of GBG
> > ccc@icsaward.com
> > ccraig@gbg.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
> I l
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Tom Joad <tj...@gmail.com>.
I didn't ask so many questions about maven-proxy when I configure it
and perhaps I miss something on the deep way it works. So I suggest
you to reconfigure completely the proxy from the one provided by
archive . you only change values which are your owns like proxy .
I think your proxy and public repository connexion are wright.
Delete local-repo from repo.list.
Simply browse repository doesn't download artifact or pom file.
You have to declare it as a dependency on a project and for example
compile project
Tom.
2006/4/25, Clifton Craig <cc...@icsaward.com>:
> On Tuesday 25 April 2006 9:51 am, Tom Joad wrote:
> > How do you copy stuff to your maven-proxy repository?
> > and what is value for
> > pom.update key on your config properties?
> >
> > Tom
>
> Tom,
>
> Thanx for your quick reply. So far so good. I set the proxy on both the
> ibiblio.org and codehaus.org repository settings and now I can download the
> pom.xml files from my maven-proxy instance. I configured a local repo for the
> proxy which is pointed to a folder under $JETTY_HOME/maven/repo-local. I
> understand this is different from the actual proxy cache which I point to
> $JETTY_HOME/maven/repo. Is that correct? Anyway, it looks like it's not
> having trouble getting out to the net at least to check for updates to the
> pom files. I tried testing to see if I could get the proxy to auto-download
> the pom for jaxen by pointing my browser to:
> http://maven-proxy-host:8080/mvnrepo/repository/jaxen/poms/jaxen-1.1-beta-8.pom
> After doing that I got another error 500. Here's a snippet of my log file:
>
> 2006-04-25 09:38:10,954 [INFO ] proxy.servlets.RepositoryServlet - Received
> request: /jaxen/poms/jaxen-1.1-beta-8.pom
> 2006-04-25 09:38:10,955 [DEBUG] proxy.engine.DownloadEngine - Request:
> source=192.168.99.15, path=/jaxen/poms/jaxen-1.1-beta-8.pom, lastModified=-1,
> headOnly=false, ifModifiedSince=1132809499000
> 2006-04-25 09:38:10,956 [DEBUG] proxy.config.FileRepoConfiguration -
> Repo[global]: Checking last modified time
> for ./maven/repo/jaxen/poms/jaxen-1.1-beta-8.pom
> 2006-04-25 09:38:10,956 [DEBUG] proxy.config.FileRepoConfiguration -
> Repo[local-repo]: Checking last modified time
> for ./maven/repo-local/jaxen/poms/jaxen-1.1-beta-8.pom
> 2006-04-25 09:38:10,956 [INFO ] components.impl.DefaultSnapshotCache -
> Updating /jaxen/poms/jaxen-1.1-beta-8.pom in snapshot cache
> 2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
> Repo[www-ibiblio-org]: /jaxen/poms/jaxen-1.1-beta-8.pom last modified
> 1132809499000
> 2006-04-25 09:38:10,956 [INFO ] components.impl.DefaultSnapshotCache -
> Updating /jaxen/poms/jaxen-1.1-beta-8.pom in snapshot cache
> 2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
> Repo[dist-codehaus-org]: /jaxen/poms/jaxen-1.1-beta-8.pom last modified
> 1127681978000
> 2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
> Repo[www-ibiblio-org]: Found most up-to-date version
> of /jaxen/poms/jaxen-1.1-beta-8.pom
> 2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
> Repo[www-ibiblio-org]: Sending NOT-MODIFIED response
>
> There's more before that indicating it tried to look first in the cache but
> couldn't find jaxen. I'm not sure what's going on but it does look a little
> like it can get out to the net now. I'll write more in a few if I can make
> heads or tails of things. In the meantime can you help me figureout what's
> wrong? I will add that our http proxy has been responding slow so maybe it's
> a timeout?
>
> ---------------------------------------------------
> Clifton C. Craig, Software Engineer
> Intelligent Computer Systems - A Division of GBG
> ccc@icsaward.com
> ccraig@gbg.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
I l
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Clifton Craig <cc...@icsaward.com>.
On Tuesday 25 April 2006 9:51 am, Tom Joad wrote:
> How do you copy stuff to your maven-proxy repository?
> and what is value for
> pom.update key on your config properties?
>
> Tom
Tom,
Thanx for your quick reply. So far so good. I set the proxy on both the
ibiblio.org and codehaus.org repository settings and now I can download the
pom.xml files from my maven-proxy instance. I configured a local repo for the
proxy which is pointed to a folder under $JETTY_HOME/maven/repo-local. I
understand this is different from the actual proxy cache which I point to
$JETTY_HOME/maven/repo. Is that correct? Anyway, it looks like it's not
having trouble getting out to the net at least to check for updates to the
pom files. I tried testing to see if I could get the proxy to auto-download
the pom for jaxen by pointing my browser to:
http://maven-proxy-host:8080/mvnrepo/repository/jaxen/poms/jaxen-1.1-beta-8.pom
After doing that I got another error 500. Here's a snippet of my log file:
2006-04-25 09:38:10,954 [INFO ] proxy.servlets.RepositoryServlet - Received
request: /jaxen/poms/jaxen-1.1-beta-8.pom
2006-04-25 09:38:10,955 [DEBUG] proxy.engine.DownloadEngine - Request:
source=192.168.99.15, path=/jaxen/poms/jaxen-1.1-beta-8.pom, lastModified=-1,
headOnly=false, ifModifiedSince=1132809499000
2006-04-25 09:38:10,956 [DEBUG] proxy.config.FileRepoConfiguration -
Repo[global]: Checking last modified time
for ./maven/repo/jaxen/poms/jaxen-1.1-beta-8.pom
2006-04-25 09:38:10,956 [DEBUG] proxy.config.FileRepoConfiguration -
Repo[local-repo]: Checking last modified time
for ./maven/repo-local/jaxen/poms/jaxen-1.1-beta-8.pom
2006-04-25 09:38:10,956 [INFO ] components.impl.DefaultSnapshotCache -
Updating /jaxen/poms/jaxen-1.1-beta-8.pom in snapshot cache
2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
Repo[www-ibiblio-org]: /jaxen/poms/jaxen-1.1-beta-8.pom last modified
1132809499000
2006-04-25 09:38:10,956 [INFO ] components.impl.DefaultSnapshotCache -
Updating /jaxen/poms/jaxen-1.1-beta-8.pom in snapshot cache
2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
Repo[dist-codehaus-org]: /jaxen/poms/jaxen-1.1-beta-8.pom last modified
1127681978000
2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
Repo[www-ibiblio-org]: Found most up-to-date version
of /jaxen/poms/jaxen-1.1-beta-8.pom
2006-04-25 09:38:10,956 [INFO ] proxy.engine.DownloadEngine -
Repo[www-ibiblio-org]: Sending NOT-MODIFIED response
There's more before that indicating it tried to look first in the cache but
couldn't find jaxen. I'm not sure what's going on but it does look a little
like it can get out to the net now. I'll write more in a few if I can make
heads or tails of things. In the meantime can you help me figureout what's
wrong? I will add that our http proxy has been responding slow so maybe it's
a timeout?
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Tom Joad <tj...@gmail.com>.
On maven proxy config , you must set a proxy value to
repo.THE_MVNPUBLIC_REPOS.proxy key.
for instance
#www.ibiblio.org
repo.www-ibiblio-org.url=http://www.ibiblio.org/maven2
repo.www-ibiblio-org.description=www.ibiblio.org
repo.www-ibiblio-org.proxy=instagate
repo.www-ibiblio-org.hardfail=true
#Cache this repository for 1 hour
repo.www-ibiblio-org.cache.period=3600
repo.www-ibiblio-org.cache.failures=true
Tom,
2006/4/25, Ben Short <be...@nexusalpha.com>:
> Tom,
>
> I would be interested in this also.
>
> When I run a mvn clean with I get the flowing.
>
> D:\Personal\SourceCode\my-app>mvn clean
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Maven Quick Start Archetype
> [INFO] task-segment: [clean]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for
> updates from central
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '28d81deaa7c41e6f2d6f9eb6db76c44069b72b53'; remote = '<?xml' - RETRYING
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '28d81deaa7c41e6f2d6f9eb6db76c44069b72b53'; remote = '<?xml' - IGNORING
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not
> exist or no valid version could be found
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Tue Apr 25 14:34:47 BST 2006
> [INFO] Final Memory: 1M/2M
> [INFO]
> ------------------------------------------------------------------------
>
> Ben
>
> -----Original Message-----
> From: Clifton Craig [mailto:ccraig@gbg.com]
> Sent: 25 April 2006 14:11
> To: Maven Users List
> Subject: Re: Maven Proxy
>
> Tom,
>
> Could you help get me started with Maven proxy? I've been trying to get it
> working in our office but I've been unsuccessful. It (the proxy) seems to
> have a problem getting out to the internet through our in office http proxy.
>
> I have the following in my Maven-proxy config properties file:
>
> ################ PROXIES
> #This is just a hack, it should auto discover them
> proxy.list=instagate
>
> #Authenticated proxy
> proxy.instagate.host=instagate.icsaward.com
> proxy.instagate.port=8080
> proxy.instagate.username=***
> proxy.instagate.password=*****
>
> When I copy stuff from my local ~/.m2 repository to the maven-proxy
> repository
> I am able to download only the jar files and not the .pom files as it gives
> an error 500. When I try downloading the pom files I see it going out to the
>
> internet to retrieve the latest copy but failing. Can you (or anyone else)
> help?
>
> ---------------------------------------------------
> Clifton C. Craig, Software Engineer
> Intelligent Computer Systems - A Division of GBG
> ccc@icsaward.com
> ccraig@gbg.com
>
> On Tuesday 25 April 2006 6:20 am, Tom Joad wrote:
> > Maven always go to internal repository which connects to all maven
> > public repository you declare on your maven proxy configuration file.
> > The order of checking artifact is always
> > local repository -->internal repository --> maven public repositories.
> >
> > Tom.
> >
> > 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > > Tom,
> > >
> > > Thanks for replying. Will maven then always go to the internal one or
> > > only when it cant connect to the internet server?
> > >
> > > Ben
> > >
> > > -----Original Message-----
> > > From: Tom Joad [mailto:tjoad9@gmail.com]
> > > Sent: 25 April 2006 11:05
> > > To: Maven Users List; ben.short@nexusalpha.com
> > > Subject: Re: Maven Proxy
> > >
> > > HI,
> > > You configure connexion on settings.xml file with mirrors tag.
> > > <mirrors>
> > > <mirror>
> > > <mirrorOf>central</mirrorOf>
> > > <name>Internal Repos</name>
> > > <url>http://internalhost:9999</url>
> > > <id>local-proxy</id>
> > > </mirror>
> > > </mirrors>
> > > Tom.
> > >
> > > 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > > > Hi,
> > > >
> > > > I am trying to setup maven-proxy on my network and make all my clients
> > > > connect to it rather than go to the internet. But when I run mvn
> > > > complie
> > >
> > > it
> > >
> > > > always connect to the internet server first. If maven can't find a
> > > > dependency on the internet server then it tries my maven-proxy.
> > > >
> > > > I have added the following to my pom.
> > > >
> > > > <repositories>
> > > > <repository>
> > > > <id>internal</id>
> > > > <name>Internal Repos</name>
> > > > <layout>default</layout>
> > > > <url>http://internalhost:9999</url>
> > > > </repository>
> > > > </repositories>
> > > >
> > > > I have also set the id element to central but it still uses the
> > > > internet server first.
> > > >
> > > > Any ideas?
> > > >
> > > > Ben
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Tom Joad <tj...@gmail.com>.
Maven proxy works exactly as your local repository , so transitive
dependency concept is
implemented. All compile scope dependency declared on pom.xml of
artifact will be downloaded.
It is possible to deploy your jar by deploy:deploy-file
you just need to add inside settings.xml
<servers>
<server>
<id>YOURSERVER</id>
<username>*****</username>
<password>****</password>
<filePermissions>664</filePermissions>
<directoryPermissions>775</directoryPermissions>
<privateKey>.ssh/known_hosts</privateKey>
</server>
</servers>
Here is an example of command line I take on thread
mvn -X -P UnixServ deploy:deploy-file
-DgroupId=weblogic
-DartifactId=ejbgen
-Dversion=SNAPSHOT
-Dpackaging=jar
-Dfile=ejbgen.jar
-DrepositoryId=UnixServ-FTP
-Durl=scp://myserver.com
where repositoryId must be mapped on the <id> under <server>(here
YOURSERVER) section of settings.xml.
please see
http://maven.apache.org/guides/mini/guide-deploying-3rd-party-jars.html
For me it never works because of ssh conexion to my repository but i
saw on threads about it but it works fine. deploy:deploy-file create
.sha and .md5 files .
I ask value of pom update for clifton . I suggest him to put the value
to false so maven proxy doesn' t try to look for newer pom.
Tom,
> Tom,
>
> I'm still trying to get it all up and running.
>
> I am lead to believe that maven-proxy automatically downloads dependencies
> from internet repositories if it dose not have them.
>
> As for deploying(?) my own projects to it, I'm not sure.
>
> My pom.update is set to true
>
> Ben
>
> -----Original Message-----
> From: Tom Joad [mailto:tjoad9@gmail.com]
> Sent: 25 April 2006 14:51
> To: Maven Users List
> Subject: Re: Maven Proxy
>
> How do you copy stuff to your maven-proxy repository?
> and what is value for
> pom.update key on your config properties?
>
> Tom
>
>
>
> 2006/4/25, Clifton Craig <cc...@gbg.com>:
> > Tom,
> >
> > Could you help get me started with Maven proxy? I've been trying to get it
> > working in our office but I've been unsuccessful. It (the proxy) seems to
> > have a problem getting out to the internet through our in office http
> proxy.
> > I have the following in my Maven-proxy config properties file:
> >
> > ################ PROXIES
> > #This is just a hack, it should auto discover them
> > proxy.list=instagate
> >
> > #Authenticated proxy
> > proxy.instagate.host=instagate.icsaward.com
> > proxy.instagate.port=8080
> > proxy.instagate.username=***
> > proxy.instagate.password=*****
> >
> > When I copy stuff from my local ~/.m2 repository to the maven-proxy
> repository
> > I am able to download only the jar files and not the .pom files as it
> gives
> > an error 500. When I try downloading the pom files I see it going out to
> the
> > internet to retrieve the latest copy but failing. Can you (or anyone else)
> > help?
> >
> > ---------------------------------------------------
> > Clifton C. Craig, Software Engineer
> > Intelligent Computer Systems - A Division of GBG
> > ccc@icsaward.com
> > ccraig@gbg.com
> >
> > On Tuesday 25 April 2006 6:20 am, Tom Joad wrote:
> > > Maven always go to internal repository which connects to all maven
> > > public repository you declare on your maven proxy configuration file.
> > > The order of checking artifact is always
> > > local repository -->internal repository --> maven public repositories.
> > >
> > > Tom.
> > >
> > > 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > > > Tom,
> > > >
> > > > Thanks for replying. Will maven then always go to the internal one or
> > > > only when it cant connect to the internet server?
> > > >
> > > > Ben
> > > >
> > > > -----Original Message-----
> > > > From: Tom Joad [mailto:tjoad9@gmail.com]
> > > > Sent: 25 April 2006 11:05
> > > > To: Maven Users List; ben.short@nexusalpha.com
> > > > Subject: Re: Maven Proxy
> > > >
> > > > HI,
> > > > You configure connexion on settings.xml file with mirrors tag.
> > > > <mirrors>
> > > > <mirror>
> > > > <mirrorOf>central</mirrorOf>
> > > > <name>Internal Repos</name>
> > > > <url>http://internalhost:9999</url>
> > > > <id>local-proxy</id>
> > > > </mirror>
> > > > </mirrors>
> > > > Tom.
> > > >
> > > > 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > > > > Hi,
> > > > >
> > > > > I am trying to setup maven-proxy on my network and make all my
> clients
> > > > > connect to it rather than go to the internet. But when I run mvn
> > > > > complie
> > > >
> > > > it
> > > >
> > > > > always connect to the internet server first. If maven can't find a
> > > > > dependency on the internet server then it tries my maven-proxy.
> > > > >
> > > > > I have added the following to my pom.
> > > > >
> > > > > <repositories>
> > > > > <repository>
> > > > > <id>internal</id>
> > > > > <name>Internal Repos</name>
> > > > > <layout>default</layout>
> > > > > <url>http://internalhost:9999</url>
> > > > > </repository>
> > > > > </repositories>
> > > > >
> > > > > I have also set the id element to central but it still uses the
> > > > > internet server first.
> > > > >
> > > > > Any ideas?
> > > > >
> > > > > Ben
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven Proxy
Posted by Ben Short <be...@nexusalpha.com>.
Tom,
I'm still trying to get it all up and running.
I am lead to believe that maven-proxy automatically downloads dependencies
from internet repositories if it dose not have them.
As for deploying(?) my own projects to it, I'm not sure.
My pom.update is set to true
Ben
-----Original Message-----
From: Tom Joad [mailto:tjoad9@gmail.com]
Sent: 25 April 2006 14:51
To: Maven Users List
Subject: Re: Maven Proxy
How do you copy stuff to your maven-proxy repository?
and what is value for
pom.update key on your config properties?
Tom
2006/4/25, Clifton Craig <cc...@gbg.com>:
> Tom,
>
> Could you help get me started with Maven proxy? I've been trying to get it
> working in our office but I've been unsuccessful. It (the proxy) seems to
> have a problem getting out to the internet through our in office http
proxy.
> I have the following in my Maven-proxy config properties file:
>
> ################ PROXIES
> #This is just a hack, it should auto discover them
> proxy.list=instagate
>
> #Authenticated proxy
> proxy.instagate.host=instagate.icsaward.com
> proxy.instagate.port=8080
> proxy.instagate.username=***
> proxy.instagate.password=*****
>
> When I copy stuff from my local ~/.m2 repository to the maven-proxy
repository
> I am able to download only the jar files and not the .pom files as it
gives
> an error 500. When I try downloading the pom files I see it going out to
the
> internet to retrieve the latest copy but failing. Can you (or anyone else)
> help?
>
> ---------------------------------------------------
> Clifton C. Craig, Software Engineer
> Intelligent Computer Systems - A Division of GBG
> ccc@icsaward.com
> ccraig@gbg.com
>
> On Tuesday 25 April 2006 6:20 am, Tom Joad wrote:
> > Maven always go to internal repository which connects to all maven
> > public repository you declare on your maven proxy configuration file.
> > The order of checking artifact is always
> > local repository -->internal repository --> maven public repositories.
> >
> > Tom.
> >
> > 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > > Tom,
> > >
> > > Thanks for replying. Will maven then always go to the internal one or
> > > only when it cant connect to the internet server?
> > >
> > > Ben
> > >
> > > -----Original Message-----
> > > From: Tom Joad [mailto:tjoad9@gmail.com]
> > > Sent: 25 April 2006 11:05
> > > To: Maven Users List; ben.short@nexusalpha.com
> > > Subject: Re: Maven Proxy
> > >
> > > HI,
> > > You configure connexion on settings.xml file with mirrors tag.
> > > <mirrors>
> > > <mirror>
> > > <mirrorOf>central</mirrorOf>
> > > <name>Internal Repos</name>
> > > <url>http://internalhost:9999</url>
> > > <id>local-proxy</id>
> > > </mirror>
> > > </mirrors>
> > > Tom.
> > >
> > > 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > > > Hi,
> > > >
> > > > I am trying to setup maven-proxy on my network and make all my
clients
> > > > connect to it rather than go to the internet. But when I run mvn
> > > > complie
> > >
> > > it
> > >
> > > > always connect to the internet server first. If maven can't find a
> > > > dependency on the internet server then it tries my maven-proxy.
> > > >
> > > > I have added the following to my pom.
> > > >
> > > > <repositories>
> > > > <repository>
> > > > <id>internal</id>
> > > > <name>Internal Repos</name>
> > > > <layout>default</layout>
> > > > <url>http://internalhost:9999</url>
> > > > </repository>
> > > > </repositories>
> > > >
> > > > I have also set the id element to central but it still uses the
> > > > internet server first.
> > > >
> > > > Any ideas?
> > > >
> > > > Ben
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Tom Joad <tj...@gmail.com>.
How do you copy stuff to your maven-proxy repository?
and what is value for
pom.update key on your config properties?
Tom
2006/4/25, Clifton Craig <cc...@gbg.com>:
> Tom,
>
> Could you help get me started with Maven proxy? I've been trying to get it
> working in our office but I've been unsuccessful. It (the proxy) seems to
> have a problem getting out to the internet through our in office http proxy.
> I have the following in my Maven-proxy config properties file:
>
> ################ PROXIES
> #This is just a hack, it should auto discover them
> proxy.list=instagate
>
> #Authenticated proxy
> proxy.instagate.host=instagate.icsaward.com
> proxy.instagate.port=8080
> proxy.instagate.username=***
> proxy.instagate.password=*****
>
> When I copy stuff from my local ~/.m2 repository to the maven-proxy repository
> I am able to download only the jar files and not the .pom files as it gives
> an error 500. When I try downloading the pom files I see it going out to the
> internet to retrieve the latest copy but failing. Can you (or anyone else)
> help?
>
> ---------------------------------------------------
> Clifton C. Craig, Software Engineer
> Intelligent Computer Systems - A Division of GBG
> ccc@icsaward.com
> ccraig@gbg.com
>
> On Tuesday 25 April 2006 6:20 am, Tom Joad wrote:
> > Maven always go to internal repository which connects to all maven
> > public repository you declare on your maven proxy configuration file.
> > The order of checking artifact is always
> > local repository -->internal repository --> maven public repositories.
> >
> > Tom.
> >
> > 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > > Tom,
> > >
> > > Thanks for replying. Will maven then always go to the internal one or
> > > only when it cant connect to the internet server?
> > >
> > > Ben
> > >
> > > -----Original Message-----
> > > From: Tom Joad [mailto:tjoad9@gmail.com]
> > > Sent: 25 April 2006 11:05
> > > To: Maven Users List; ben.short@nexusalpha.com
> > > Subject: Re: Maven Proxy
> > >
> > > HI,
> > > You configure connexion on settings.xml file with mirrors tag.
> > > <mirrors>
> > > <mirror>
> > > <mirrorOf>central</mirrorOf>
> > > <name>Internal Repos</name>
> > > <url>http://internalhost:9999</url>
> > > <id>local-proxy</id>
> > > </mirror>
> > > </mirrors>
> > > Tom.
> > >
> > > 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > > > Hi,
> > > >
> > > > I am trying to setup maven-proxy on my network and make all my clients
> > > > connect to it rather than go to the internet. But when I run mvn
> > > > complie
> > >
> > > it
> > >
> > > > always connect to the internet server first. If maven can't find a
> > > > dependency on the internet server then it tries my maven-proxy.
> > > >
> > > > I have added the following to my pom.
> > > >
> > > > <repositories>
> > > > <repository>
> > > > <id>internal</id>
> > > > <name>Internal Repos</name>
> > > > <layout>default</layout>
> > > > <url>http://internalhost:9999</url>
> > > > </repository>
> > > > </repositories>
> > > >
> > > > I have also set the id element to central but it still uses the
> > > > internet server first.
> > > >
> > > > Any ideas?
> > > >
> > > > Ben
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven Proxy
Posted by Ben Short <be...@nexusalpha.com>.
My mistake, I didn't add repository to the end of the url.
Eg :
<mirrors>
<mirror>
<mirrorOf>central</mirrorOf>
<name>Internal Repos</name>
<url>http://internalhost:9999/repository</url>
<id>local-proxy</id>
</mirror>
</mirrors>
-----Original Message-----
From: Ben Short [mailto:ben.short@nexusalpha.com]
Sent: 25 April 2006 14:36
To: 'Maven Users List'
Subject: RE: Maven Proxy
Tom,
I would be interested in this also.
When I run a mvn clean with I get the flowing.
D:\Personal\SourceCode\my-app>mvn clean
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO] task-segment: [clean]
[INFO]
----------------------------------------------------------------------------
[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for
updates from central
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'28d81deaa7c41e6f2d6f9eb6db76c44069b72b53'; remote = '<?xml' - RETRYING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'28d81deaa7c41e6f2d6f9eb6db76c44069b72b53'; remote = '<?xml' - IGNORING
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not
exist or no valid version could be found
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Apr 25 14:34:47 BST 2006
[INFO] Final Memory: 1M/2M
[INFO]
------------------------------------------------------------------------
Ben
-----Original Message-----
From: Clifton Craig [mailto:ccraig@gbg.com]
Sent: 25 April 2006 14:11
To: Maven Users List
Subject: Re: Maven Proxy
Tom,
Could you help get me started with Maven proxy? I've been trying to get it
working in our office but I've been unsuccessful. It (the proxy) seems to
have a problem getting out to the internet through our in office http proxy.
I have the following in my Maven-proxy config properties file:
################ PROXIES
#This is just a hack, it should auto discover them
proxy.list=instagate
#Authenticated proxy
proxy.instagate.host=instagate.icsaward.com
proxy.instagate.port=8080
proxy.instagate.username=***
proxy.instagate.password=*****
When I copy stuff from my local ~/.m2 repository to the maven-proxy
repository
I am able to download only the jar files and not the .pom files as it gives
an error 500. When I try downloading the pom files I see it going out to the
internet to retrieve the latest copy but failing. Can you (or anyone else)
help?
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
On Tuesday 25 April 2006 6:20 am, Tom Joad wrote:
> Maven always go to internal repository which connects to all maven
> public repository you declare on your maven proxy configuration file.
> The order of checking artifact is always
> local repository -->internal repository --> maven public repositories.
>
> Tom.
>
> 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > Tom,
> >
> > Thanks for replying. Will maven then always go to the internal one or
> > only when it cant connect to the internet server?
> >
> > Ben
> >
> > -----Original Message-----
> > From: Tom Joad [mailto:tjoad9@gmail.com]
> > Sent: 25 April 2006 11:05
> > To: Maven Users List; ben.short@nexusalpha.com
> > Subject: Re: Maven Proxy
> >
> > HI,
> > You configure connexion on settings.xml file with mirrors tag.
> > <mirrors>
> > <mirror>
> > <mirrorOf>central</mirrorOf>
> > <name>Internal Repos</name>
> > <url>http://internalhost:9999</url>
> > <id>local-proxy</id>
> > </mirror>
> > </mirrors>
> > Tom.
> >
> > 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > > Hi,
> > >
> > > I am trying to setup maven-proxy on my network and make all my clients
> > > connect to it rather than go to the internet. But when I run mvn
> > > complie
> >
> > it
> >
> > > always connect to the internet server first. If maven can't find a
> > > dependency on the internet server then it tries my maven-proxy.
> > >
> > > I have added the following to my pom.
> > >
> > > <repositories>
> > > <repository>
> > > <id>internal</id>
> > > <name>Internal Repos</name>
> > > <layout>default</layout>
> > > <url>http://internalhost:9999</url>
> > > </repository>
> > > </repositories>
> > >
> > > I have also set the id element to central but it still uses the
> > > internet server first.
> > >
> > > Any ideas?
> > >
> > > Ben
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven Proxy
Posted by Ben Short <be...@nexusalpha.com>.
Tom,
I would be interested in this also.
When I run a mvn clean with I get the flowing.
D:\Personal\SourceCode\my-app>mvn clean
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO] task-segment: [clean]
[INFO]
----------------------------------------------------------------------------
[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for
updates from central
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'28d81deaa7c41e6f2d6f9eb6db76c44069b72b53'; remote = '<?xml' - RETRYING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'28d81deaa7c41e6f2d6f9eb6db76c44069b72b53'; remote = '<?xml' - IGNORING
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not
exist or no valid version could be found
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Apr 25 14:34:47 BST 2006
[INFO] Final Memory: 1M/2M
[INFO]
------------------------------------------------------------------------
Ben
-----Original Message-----
From: Clifton Craig [mailto:ccraig@gbg.com]
Sent: 25 April 2006 14:11
To: Maven Users List
Subject: Re: Maven Proxy
Tom,
Could you help get me started with Maven proxy? I've been trying to get it
working in our office but I've been unsuccessful. It (the proxy) seems to
have a problem getting out to the internet through our in office http proxy.
I have the following in my Maven-proxy config properties file:
################ PROXIES
#This is just a hack, it should auto discover them
proxy.list=instagate
#Authenticated proxy
proxy.instagate.host=instagate.icsaward.com
proxy.instagate.port=8080
proxy.instagate.username=***
proxy.instagate.password=*****
When I copy stuff from my local ~/.m2 repository to the maven-proxy
repository
I am able to download only the jar files and not the .pom files as it gives
an error 500. When I try downloading the pom files I see it going out to the
internet to retrieve the latest copy but failing. Can you (or anyone else)
help?
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
On Tuesday 25 April 2006 6:20 am, Tom Joad wrote:
> Maven always go to internal repository which connects to all maven
> public repository you declare on your maven proxy configuration file.
> The order of checking artifact is always
> local repository -->internal repository --> maven public repositories.
>
> Tom.
>
> 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > Tom,
> >
> > Thanks for replying. Will maven then always go to the internal one or
> > only when it cant connect to the internet server?
> >
> > Ben
> >
> > -----Original Message-----
> > From: Tom Joad [mailto:tjoad9@gmail.com]
> > Sent: 25 April 2006 11:05
> > To: Maven Users List; ben.short@nexusalpha.com
> > Subject: Re: Maven Proxy
> >
> > HI,
> > You configure connexion on settings.xml file with mirrors tag.
> > <mirrors>
> > <mirror>
> > <mirrorOf>central</mirrorOf>
> > <name>Internal Repos</name>
> > <url>http://internalhost:9999</url>
> > <id>local-proxy</id>
> > </mirror>
> > </mirrors>
> > Tom.
> >
> > 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > > Hi,
> > >
> > > I am trying to setup maven-proxy on my network and make all my clients
> > > connect to it rather than go to the internet. But when I run mvn
> > > complie
> >
> > it
> >
> > > always connect to the internet server first. If maven can't find a
> > > dependency on the internet server then it tries my maven-proxy.
> > >
> > > I have added the following to my pom.
> > >
> > > <repositories>
> > > <repository>
> > > <id>internal</id>
> > > <name>Internal Repos</name>
> > > <layout>default</layout>
> > > <url>http://internalhost:9999</url>
> > > </repository>
> > > </repositories>
> > >
> > > I have also set the id element to central but it still uses the
> > > internet server first.
> > >
> > > Any ideas?
> > >
> > > Ben
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Clifton Craig <cc...@gbg.com>.
Tom,
Could you help get me started with Maven proxy? I've been trying to get it
working in our office but I've been unsuccessful. It (the proxy) seems to
have a problem getting out to the internet through our in office http proxy.
I have the following in my Maven-proxy config properties file:
################ PROXIES
#This is just a hack, it should auto discover them
proxy.list=instagate
#Authenticated proxy
proxy.instagate.host=instagate.icsaward.com
proxy.instagate.port=8080
proxy.instagate.username=***
proxy.instagate.password=*****
When I copy stuff from my local ~/.m2 repository to the maven-proxy repository
I am able to download only the jar files and not the .pom files as it gives
an error 500. When I try downloading the pom files I see it going out to the
internet to retrieve the latest copy but failing. Can you (or anyone else)
help?
---------------------------------------------------
Clifton C. Craig, Software Engineer
Intelligent Computer Systems - A Division of GBG
ccc@icsaward.com
ccraig@gbg.com
On Tuesday 25 April 2006 6:20 am, Tom Joad wrote:
> Maven always go to internal repository which connects to all maven
> public repository you declare on your maven proxy configuration file.
> The order of checking artifact is always
> local repository -->internal repository --> maven public repositories.
>
> Tom.
>
> 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > Tom,
> >
> > Thanks for replying. Will maven then always go to the internal one or
> > only when it cant connect to the internet server?
> >
> > Ben
> >
> > -----Original Message-----
> > From: Tom Joad [mailto:tjoad9@gmail.com]
> > Sent: 25 April 2006 11:05
> > To: Maven Users List; ben.short@nexusalpha.com
> > Subject: Re: Maven Proxy
> >
> > HI,
> > You configure connexion on settings.xml file with mirrors tag.
> > <mirrors>
> > <mirror>
> > <mirrorOf>central</mirrorOf>
> > <name>Internal Repos</name>
> > <url>http://internalhost:9999</url>
> > <id>local-proxy</id>
> > </mirror>
> > </mirrors>
> > Tom.
> >
> > 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > > Hi,
> > >
> > > I am trying to setup maven-proxy on my network and make all my clients
> > > connect to it rather than go to the internet. But when I run mvn
> > > complie
> >
> > it
> >
> > > always connect to the internet server first. If maven can't find a
> > > dependency on the internet server then it tries my maven-proxy.
> > >
> > > I have added the following to my pom.
> > >
> > > <repositories>
> > > <repository>
> > > <id>internal</id>
> > > <name>Internal Repos</name>
> > > <layout>default</layout>
> > > <url>http://internalhost:9999</url>
> > > </repository>
> > > </repositories>
> > >
> > > I have also set the id element to central but it still uses the
> > > internet server first.
> > >
> > > Any ideas?
> > >
> > > Ben
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven Proxy
Posted by Ben Short <be...@nexusalpha.com>.
Tom,
Just tried that out and it works.
Many thanks.
Ben
-----Original Message-----
From: Tom Joad [mailto:tjoad9@gmail.com]
Sent: 25 April 2006 11:21
To: Maven Users List; ben.short@nexusalpha.com
Subject: Re: Maven Proxy
Maven always go to internal repository which connects to all maven
public repository you declare on your maven proxy configuration file.
The order of checking artifact is always
local repository -->internal repository --> maven public repositories.
Tom.
2006/4/25, Ben Short <be...@nexusalpha.com>:
> Tom,
>
> Thanks for replying. Will maven then always go to the internal one or only
> when it cant connect to the internet server?
>
> Ben
>
> -----Original Message-----
> From: Tom Joad [mailto:tjoad9@gmail.com]
> Sent: 25 April 2006 11:05
> To: Maven Users List; ben.short@nexusalpha.com
> Subject: Re: Maven Proxy
>
> HI,
> You configure connexion on settings.xml file with mirrors tag.
> <mirrors>
> <mirror>
> <mirrorOf>central</mirrorOf>
> <name>Internal Repos</name>
> <url>http://internalhost:9999</url>
> <id>local-proxy</id>
> </mirror>
> </mirrors>
> Tom.
> 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > Hi,
> >
> > I am trying to setup maven-proxy on my network and make all my clients
> > connect to it rather than go to the internet. But when I run mvn complie
> it
> > always connect to the internet server first. If maven can't find a
> > dependency on the internet server then it tries my maven-proxy.
> >
> > I have added the following to my pom.
> >
> > <repositories>
> > <repository>
> > <id>internal</id>
> > <name>Internal Repos</name>
> > <layout>default</layout>
> > <url>http://internalhost:9999</url>
> > </repository>
> > </repositories>
> >
> > I have also set the id element to central but it still uses the internet
> > server first.
> >
> > Any ideas?
> >
> > Ben
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Tom Joad <tj...@gmail.com>.
Maven always go to internal repository which connects to all maven
public repository you declare on your maven proxy configuration file.
The order of checking artifact is always
local repository -->internal repository --> maven public repositories.
Tom.
2006/4/25, Ben Short <be...@nexusalpha.com>:
> Tom,
>
> Thanks for replying. Will maven then always go to the internal one or only
> when it cant connect to the internet server?
>
> Ben
>
> -----Original Message-----
> From: Tom Joad [mailto:tjoad9@gmail.com]
> Sent: 25 April 2006 11:05
> To: Maven Users List; ben.short@nexusalpha.com
> Subject: Re: Maven Proxy
>
> HI,
> You configure connexion on settings.xml file with mirrors tag.
> <mirrors>
> <mirror>
> <mirrorOf>central</mirrorOf>
> <name>Internal Repos</name>
> <url>http://internalhost:9999</url>
> <id>local-proxy</id>
> </mirror>
> </mirrors>
> Tom.
> 2006/4/25, Ben Short <be...@nexusalpha.com>:
> > Hi,
> >
> > I am trying to setup maven-proxy on my network and make all my clients
> > connect to it rather than go to the internet. But when I run mvn complie
> it
> > always connect to the internet server first. If maven can't find a
> > dependency on the internet server then it tries my maven-proxy.
> >
> > I have added the following to my pom.
> >
> > <repositories>
> > <repository>
> > <id>internal</id>
> > <name>Internal Repos</name>
> > <layout>default</layout>
> > <url>http://internalhost:9999</url>
> > </repository>
> > </repositories>
> >
> > I have also set the id element to central but it still uses the internet
> > server first.
> >
> > Any ideas?
> >
> > Ben
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven Proxy
Posted by Ben Short <be...@nexusalpha.com>.
Tom,
Thanks for replying. Will maven then always go to the internal one or only
when it cant connect to the internet server?
Ben
-----Original Message-----
From: Tom Joad [mailto:tjoad9@gmail.com]
Sent: 25 April 2006 11:05
To: Maven Users List; ben.short@nexusalpha.com
Subject: Re: Maven Proxy
HI,
You configure connexion on settings.xml file with mirrors tag.
<mirrors>
<mirror>
<mirrorOf>central</mirrorOf>
<name>Internal Repos</name>
<url>http://internalhost:9999</url>
<id>local-proxy</id>
</mirror>
</mirrors>
Tom.
2006/4/25, Ben Short <be...@nexusalpha.com>:
> Hi,
>
> I am trying to setup maven-proxy on my network and make all my clients
> connect to it rather than go to the internet. But when I run mvn complie
it
> always connect to the internet server first. If maven can't find a
> dependency on the internet server then it tries my maven-proxy.
>
> I have added the following to my pom.
>
> <repositories>
> <repository>
> <id>internal</id>
> <name>Internal Repos</name>
> <layout>default</layout>
> <url>http://internalhost:9999</url>
> </repository>
> </repositories>
>
> I have also set the id element to central but it still uses the internet
> server first.
>
> Any ideas?
>
> Ben
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Proxy
Posted by Tom Joad <tj...@gmail.com>.
HI,
You configure connexion on settings.xml file with mirrors tag.
<mirrors>
<mirror>
<mirrorOf>central</mirrorOf>
<name>Internal Repos</name>
<url>http://internalhost:9999</url>
<id>local-proxy</id>
</mirror>
</mirrors>
Tom.
2006/4/25, Ben Short <be...@nexusalpha.com>:
> Hi,
>
> I am trying to setup maven-proxy on my network and make all my clients
> connect to it rather than go to the internet. But when I run mvn complie it
> always connect to the internet server first. If maven can't find a
> dependency on the internet server then it tries my maven-proxy.
>
> I have added the following to my pom.
>
> <repositories>
> <repository>
> <id>internal</id>
> <name>Internal Repos</name>
> <layout>default</layout>
> <url>http://internalhost:9999</url>
> </repository>
> </repositories>
>
> I have also set the id element to central but it still uses the internet
> server first.
>
> Any ideas?
>
> Ben
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org