Hi! have you tried to add maven-1.0.2.jar to your dependency classpath in your jelly script? Or maybe just create a standard dependency to it in project.xml? ie <dependency> <groupId>maven</groupId> <artifactId>maven</artifactId> <version>1.0.2</version> </dependency> regards! /Ole
________________________________ From: Chris Berry [mailto:[EMAIL PROTECTED] Sent: Sun 30/01/2005 17:51 To: [email protected] Subject: Problem w/ HttpUtils Greetings, I am using HttpUtils to manually fetch dependencies. I do this because maven does not adequately chain dependencies. I.e if A depends on B, and B depends on C, then B should chain in it's own dependencies and not force A to prescribe them (since A should not know this directly) So I create a package (a tarball or a jar), for, say, B, and store a filelist in that tarball listing it's dependencies. Then A depends on B -- and B knows that it has further dependencies and manually brings them in -- using maven's HttpUtils. So far so good. I have all of this working. But when I moved the process forward to a different point in my build cycle (i.e. in my plugin) it fails. I get a "class not found" for HttpUtils. Can someone please explain how to make this work?? HttpUtils is a part of maven, and I can see it in maven.jar -- and it works at a later point in my process -- so some other plugin I'm using must set stuff up for me. I suspect that there is some magic line of jelly that I need to add, but looking thru plugins, I cannot discern what it is... BTW: The file I'm fetching exists and the maven.repo.remote is correct. I'm confused. Thanks, -- Chris Further info follows:: --------------------------------------- Here is the jelly:: <j:catch var="ex"> <j:invokeStatic var="dummy" method="getFile" className="org.apache.maven.util.HttpUtils"> <j:arg type="java.lang.String" value="${remoteFile}" /> <j:arg type="java.io.File" value="${localFile}"/> <j:arg type="boolean" value="false"/> <j:arg type="boolean" value="true"/> <j:arg type="java.lang.String" value="${maven.proxy.host}" /> <j:arg type="java.lang.String" value="${maven.proxy.port}" /> <j:arg type="java.lang.String" value="${maven.proxy.username}" /> <j:arg type="java.lang.String" value="${maven.proxy.password}" /> <j:arg type="boolean" value="false"/> </j:invokeStatic> </j:catch> ------------------------------------------------ And here is the error:: et:expand-jar-dependencies: jws:expand-jarlist-to-dir: [echo] jarsFlist= commons-logging/jars/commons-logging-1.0.3.jar,junit/jars/junit-3.8.1.jar,log4j/jars/log4j-1.2.8.jar,commons-beanutil s/jars/commons-beanutils-1.7.0.jar,commons-cli/jars/commons-cli-1.0.jar,commons-collections/jars/commons-collections-3.1.jar,commons-dbcp/ja rs/commons-dbcp-1.2.1.jar,commons-digester/jars/commons-digester-1.5.jar,commons-messenger/jars/commons-messenger-1.0-dev-14.jar,commons-poo l/jars/commons-pool-1.2.jar,jms/jars/jms-1.0.2.jar,spiritcache/jars/spirit-cache-2.0.14.jar,dom4j/jars/dom4j-1.4.jar,xalan/jars/xalan-2.5.1. jar,xerces/jars/xercesImpl-2.6.1.jar,xml-apis/jars/xml-apis-1.0.b2.jar, [echo] Trying to load localFile= C:\cberry\work\jws-engine-maven-1.2\jwseng\pkg\shared\lib\commons-logging-1.0.3.jar [echo] os.name = Windows XP [echo] isWindows = true [echo] Trying to download file:/C:/cberry/work/3rdparty-repo/commons-logging/jars/commons-logging-1.0.3.jar [echo] ex= org.apache.commons.jelly.JellyTagException: C:\cberry\.maven\cache\maven-etrade-plugin-1.0.0\plugin.jelly:547:75: <j:invok eStatic> Could not load class: org.apache.maven.util.HttpUtils. Reason: java.lang.reflect.InvocationTargetException [echo] os.name = Windows XP [echo] isWindows = true [echo] Trying to download http://svn.etrade.com/java-repo/maven/commons-logging/jars/commons-logging-1.0.3.jar [echo] ex= org.apache.commons.jelly.JellyTagException: C:\cberry\.maven\cache\maven-etrade-plugin-1.0.0\plugin.jelly:547:75: <j:invok eStatic> Could not load class: org.apache.maven.util.HttpUtils. Reason: java.lang.reflect.InvocationTargetException BUILD FAILED File...... C:\cberry\.maven\cache\maven-etrade-plugin-1.0.0\plugin.jelly Element... ant:fail Line...... 568 Column.... 52 Unable to find jar Total time: 6 seconds Finished at: Sat Jan 29 17:25:39 CST 2005 __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
