I am having problems setting up the maven-proxy as a web application. I have maven-proxy deployed in tomcat and it seems to be up and running. I can navigate config and repository screens. If I copy files into the local repository it uses I can also search for them.
I removed the Jakarta commons http-client v3.0 from my local repository and tried to run my unit tests via maven. I assumed that the proxy would download the missing jar and pom and then pass them to my maven client. I should then see the http-client v3 dir and files in the maven-proxy repository. However, when I try to build something in maven, it doesn't seem to download any required dependencies. It just 404s. Any ideas? I pasted the relevant messages and configs from maven, tomcat and maven-proxy.properties. Carlos #########Excerpts from "mvn test" on the CL. >>>It seems to be looking for the file from the proxy - and the URL should be correct. When I check it firefox, it pulls up a 404. Downloading: http://localhost:8008/maven-proxy-webapp/repository/commons-httpclient/c ommons-httpclient/3.0/commons-httpclient-3.0.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) >>>Error message 1) commons-httpclient:commons-httpclient:jar:3.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=commons-httpclient -DartifactId=commons -httpclient \ -Dversion=3.0 -Dpackaging=jar -Dfile=/path/to/file #####################3Tomcat logs 2006-06-12 08:32:32,866 [INFO ] proxy.servlets.RepositoryServlet - Received req uest: /commons-httpclient/commons-httpclient/3.0/commons-httpclient-3.0.jar 2006-06-12 08:32:32,866 [DEBUG] proxy.engine.DownloadEngine - Request: source=1 27.0.0.1, path=/commons-httpclient/commons-httpclient/3.0/commons-httpclient-3.0 .jar, lastModified=-1, headOnly=false, ifModifiedSince=-1 2006-06-12 08:32:32,866 [DEBUG] proxy.config.FileRepoConfiguration - Repo[globa l]: Checking last modified time for C:\tools\maven-proxy\repo\commons-httpclient \commons-httpclient\3.0\commons-httpclient-3.0.jar 2006-06-12 08:32:32,866 [DEBUG] proxy.config.FileRepoConfiguration - Repo[local -repo]: Checking last modified time for C:\tools\maven-proxy\repo\commons-httpcl ient\commons-httpclient\3.0\commons-httpclient-3.0.jar 2006-06-12 08:32:32,866 [INFO ] components.impl.DefaultSnapshotCache - Updating /commons-httpclient/commons-httpclient/3.0/commons-httpclient-3.0.jar in snapsh ot cache 2006-06-12 08:32:32,866 [INFO ] components.impl.DefaultSnapshotCache - Updating /commons-httpclient/commons-httpclient/3.0/commons-httpclient-3.0.jar in snapsh ot cache ##################maven-proxy config #These are just some default properties for testing with. ################ GLOBAL SETTINGS # This is where maven-proxy stores files it has downloaded repo.local.store=C:\\tools\\maven-proxy\\repo #The port to listen on #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 #prefix=maven-proxy-webapp #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 #snapshot.update=false ################ 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:8008/maven-proxy-webapp/ #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=false #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:///C:\\tools\\maven-proxy\\repo repo.local-repo.description=Local 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=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 #Cache this repository for 1 hour repo.dist-codehaus-org.cache.period=3600 repo.dist-codehaus-org.cache.failures=true #private.example.com #repo.private-example-com.url=http://private.example.com/internal #repo.private-example-com.description=Commercial In Confidence Repository #repo.private-example-com.username=username1 #repo.private-example-com.password=password1 #repo.private-example-com.proxy=three #repo.private-example-com.cache.period=3600 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]