Hermod's Weblog
Maven-Proxy
Because we are behind a firewall at work and we also have a local repository here, I downloaded maven proxy to get around the issue of not being able to run with both internal and external repositories when you are behind a proxy. So with great enthusiasme I DROPped the maven-proxy war file into our local Tomcat. But no cigar. It did not even start up. Looking throgh the logs I found that the first issue was that the required maven-proxy jar file: maven-proxy-core-SNAPSHOT.jar was not included in th distro. Why on earth should this file not be included when all the other .jar files where there. So I downloaded the maven-proxy-core-SNAPSHOT.jar and DROPped that one into the WEB-INF/lib directory and tried again. This time a got en error stating that it could not load the IOUtility class. Further investigation showed that it was referring to the wrong package. So next step was to get the CVS head and build from scratch. Now that one was gone, but it was now complaining about some Velocity macros. So I took the ones from the CORE and DROPped them into the WEB-INF/classes directory and now that issue was fixed. The final issue was that it could not find the maven-proxy.porperties, so I searched for that one and found it learking in the standalone source. I DROPped that one into WEB-INF/classes and beeing a bit wiser I took a look at the web.xml file. Sure enough there was a referance to it there. So I altered the context-param so that it pointed to my maven-proxy.porperties, and finally I opened up maven-proxy.porperties and went through it to ensure that all the settings there where correct. Wham!! It started to work. If you are interrested, you can download it from here. Be sure to alter the web.xml file and also maven-proxy.porperties to suit your installation.
Posted at 07:57PM nov 08, 2005 by Hermod in Java |