Thanks for the support Arnaud. But still it did not work.
Though it downloaded the commons-codec jar file it again got into my earlier 
problem, as stated below.

Compiling shows error again. Should I set some classpath or path from the 
command prompt?Please guide me on this.
Thanks in advance,
Jayaram

This is the console output:

Attempting to download commons-codec-1.3.jar.
45K downloaded
build:start:

java:prepare-filesystem:

java:compile:
    [echo] Compiling to C:\Maven 1.0.2\bin/target/classes/classes
    [echo]
==========================================================

  NOTE: Targetting JVM 1.4, classes
  will not run on earlier JVMs

==========================================================

    [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\sun\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\com\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\sun\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.ClientStateFlowHandler

                    byte[] bytes  = Base64.decode(valueString.getBytes());
                                    ^
C:\Maven 
1.0.2\bin\target\classes\checkouts\petstore\src\waf\src\view\taglibs\com\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: 9 seconds
Finished at: Wed Mar 02 12:48:46 IST 2005
-----Original Message-----
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 11:43 AM
To: 'Maven Users List'
Subject: RE: Maven Petstore

You must add this in your POM :

<dependency>
        <groupId>commons-codec</groupId>
      <artifactId>commons-codec</artifactId>
      <version>1.3</version>
</dependency>

You do not need to modify your repository and manually download commons-codec.
The jar will be downloaded from : 
http://www.ibiblio.org/maven/commons-codec/jars/


Arnaud


> -----Message d'origine-----
> De : GOKULAM Jayaram [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 2 mars 2005 05:30
> À : Maven Users List; [EMAIL PROTECTED]
> Objet : RE: Maven Petstore
> 
> 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\contr
> oller\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\contr
> oller\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.Clie
> ntStateFlo
> 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]
> 




---------------------------------------------------------------------
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