Hi Siegfried,
Thanks for your guidance. Can u please let me know how exactly I should
and what URL I should use in my project.xml
I downloaded the commens-codec.zip file and placed it in my local hard
disk, now I want maven to look for this file under my local hard disk.

In my project.xml  I added the following lines
        <dependency>
        <groupId>commons-codec</groupId>
              <artifactId>commons-codec</artifactId>
      </dependency>
And in build.properties file, I added the following line

maven.repo.remote=\ ${user.home}/.maven/repository,
http://www.ibiblio.org/maven


But still it does not work, am getting the following error

Attempting to download commons-codec-.jar.
Error retrieving artifact from [C:\Documents and
Settings\JGokulam/.maven/repository/commons-co
dec/jars/commons-codec-.jar]: java.net.MalformedURLException: unknown
protocol: c
Error retrieving artifact from [
/commons-codec/jars/commons-codec-.jar]: java.net.MalformedURL
Exception: no protocol:  /commons-codec/jars/commons-codec-.jar
WARNING: Failed to download commons-codec-.jar.
The build cannot continue because of the following unsatisfied
dependency:

commons-codec-.jar

Total time: 3 seconds
Finished at: Wed Mar 02 09:49:01 IST 2005

Please guide me how I should come out of this error.

Thanks in advance,
Jayaram

-----Original Message-----
From: Siegfried Goeschl [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 7:48 PM
To: Maven Users List
Subject: Re: Maven Petstore

It seems that commons-codec is not defined in your project.xml

Siegfried Goeschl

GOKULAM Jayaram wrote:

>Hi am trying to compile petstore example application provided by sun.
>
>And am getting the following errors, Please help me to overcome this
>problem. Also let me know if I can set a classpath from maven to
compile
>these files.
>
> 
>
>Thanks in advance,
>
>Jayaram
>
> 
>
>    [javac] Compiling 282 source files to C:\Maven
>1.0.2\bin\target\classes\classes
>
>C:\Maven
>1.0.2\bin\target\classes\checkouts\petstore\src\waf\src\controller\com\
s
>un\j2ee\bluepr
>
>ints\waf\controller\web\flow\handlers\ClientStateFlowHandler.java:47:
>package org.apache.common
>
>s.codec.base64 does not exist
>
>import org.apache.commons.codec.base64.Base64;
>
>                                       ^
>
>C:\Maven
>1.0.2\bin\target\classes\checkouts\petstore\src\waf\src\view\taglibs\co
m
>\sun\j2ee\blue
>
>prints\taglibs\smart\ClientStateTag.java:52: package
>org.apache.commons.codec.base64 does not e
>
>xist
>
>import org.apache.commons.codec.base64.Base64;
>
>                                       ^
>
>C:\Maven
>1.0.2\bin\target\classes\checkouts\petstore\src\waf\src\controller\com\
s
>un\j2ee\bluepr
>
>ints\waf\controller\web\flow\handlers\ClientStateFlowHandler.java:83:
>cannot resolve symbol
>
>symbol  : variable Base64
>
>location: class
>com.sun.j2ee.blueprints.waf.controller.web.flow.handlers.ClientStateFlo
w
>Handler
>
> 
>
>                    byte[] bytes  =
>Base64.decode(valueString.getBytes());
>
>                                    ^
>
>C:\Maven
>1.0.2\bin\target\classes\checkouts\petstore\src\waf\src\view\taglibs\co
m
>\sun\j2ee\blue
>
>prints\taglibs\smart\ClientStateTag.java:203: cannot resolve symbol
>
>symbol  : variable Base64
>
>location: class
>com.sun.j2ee.blueprints.waf.view.taglibs.smart.ClientStateTag
>
>                                       new
>String(Base64.encode(bos.toByteArray()), "ISO-8859-1
>
>")  + "\" />");
>
>                                                  ^
>
>Note: Some input files use or override a deprecated API.
>
>Note: Recompile with -deprecation for details.
>
>4 errors
>
> 
>
>BUILD FAILED
>
>File...... C:\Documents and
>Settings\JGokulam\.maven\cache\maven-java-plugin-1.5\plugin.jelly
>
>Element... ant:javac
>
>Line...... 63
>
>Column.... 48
>
>Compile failed; see the compiler error output for details.
>
>Total time: 5 seconds
>
>Finished at: Tue Mar 01 19:11:01 IST 2005
>
>Confidentiality Statement:
>
>This message is intended only for the individual or entity to which it
is addressed. It may contain privileged, confidential information which
is exempt from disclosure under applicable laws. If you are not the
intended recipient, please note that you are strictly prohibited from
disseminating or distributing this information (other than to the
intended recipient) or copying this information. If you have received
this communication in error, please notify us immediately by return
email.
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Confidentiality Statement:

This message is intended only for the individual or entity to which it is 
addressed. It may contain privileged, confidential information which is exempt 
from disclosure under applicable laws. If you are not the intended recipient, 
please note that you are strictly prohibited from disseminating or distributing 
this information (other than to the intended recipient) or copying this 
information. If you have received this communication in error, please notify us 
immediately by return email.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to