as I said, .m2\repository\javax exists or not will make no effect on
the mvn install. 
1. if no such directory, mvn install dailed.
2. install those directory by hand, mvn install still failed.
3. install those directory using mvn install:install-file ...., still
no luck.

the error messages are the same.
is there somebody else who followed the instructions on page 93 in the
book
"Better Builds with Maven" which can be found on 
http://www.mergere.com/m2book_download.jsp

thanks a lot. 



--- Ravi Luthra <[EMAIL PROTECTED]> wrote:

> If these artifacts are already in the main remote repository you
> didn't even
> need to touch jar/pom files relating to those artifacts. You're
> misunderstanding something.
> .m2\repository\javax.activation and .m2\repository\javax.mail
> directories
> should be removed if you made them by hand.
> 
> However don't erase anything else.
> 
> Ravi
> 
> On 5/29/07, xiaojie han <[EMAIL PROTECTED]> wrote:
> >
> > at first, I just went to
> > http://repo1.maven.org/maven2/javax/activation/activation/1.1/
> > and
> > http://repo1.maven.org/maven2/javax/mail/mail/1.4/
> > download .jar and pom.xml to the local repository.
> > mvn install failed.
> > I deleted javax folder to follow the instruction using
> > C:\maven-2.0.5\sample code\Code_Ch04\daytrader>mvn
> install:install-file
> > -Dfile=pom.xml -DgroupId=javax.activation
> > -DartifactId=activation -Dversion=1.1 -Dpackaging=jar
> > and
> > C:\maven-2.0.5\sample code\Code_Ch04\daytrader>mvn
> install:install-file
> > -Dfile=pom.xml -DgroupId=javax.mail -DartifactId=mail
> > -Dversion=1.4 -Dpackaging=jar
> >
> > successfully download the two jar file to
> > .m2\repository\javax\activation
> > and .m2\repository\javax\mail folder. however the command mvn
> install
> > still failed and error messages are the same as before.
> >
> > ******************
> > C:\maven-2.0.5\sample code\Code_Ch04\daytrader\wsappclient>mvn
> install
> > [INFO] Scanning for projects...
> > [INFO]
> ----------------------------------------------------------------
> > [INFO] Building DayTrader :: WS Application Client
> > [INFO]    task-segment: [install]
> > [INFO]
> ----------------------------------------------------------------
> > Downloading:
> > http://repo1.maven.org/maven2/javax/activation/activation/1.1/activ
> > ation-1.1.pom
> > 1K downloaded
> > Downloading:
> > http://repo1.maven.org/maven2/javax/mail/mail/1.4/mail-1.4.pom
> > 993b downloaded
> > [INFO] [axistools:wsdl2java {execution: default}]
> > [INFO] about to add compile source root
> > [INFO] processing wsdl: C:\maven-2.0.5\sample
> > code\Code_Ch04\daytrader\wsappclient\src\main\resources\
> > META-INF\wsdl\TradeServices.wsdl
> > May 29, 2007 9:56:18 AM org.apache.axis.utils.JavaUtils
> > isAttachmentSupported
> > WARNING: Unable to find required classes (
> > javax.activation.DataHandler and
> javax.mail.internet.MimeMultipart).
> > Attachment support is disabled.
> > [INFO]
> ----------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> ----------------------------------------------------------------
> > [INFO] error executing plugin
> >
> > Embedded error: WSDL2Java execution failed
> > unknown protocol: c
> > [INFO]
> ----------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> ----------------------------------------------------------------
> > [INFO] Total time: 4 seconds
> > [INFO] Finished at: Tue May 29 09:56:18 CDT 2007
> > [INFO] Final Memory: 5M/10M
> > [INFO]
> ----------------------------------------------------------------
> > ******************
> >
> > is there anything else I missed?
> > thanks.
> >
> > --- Thorsten Heit <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > >
> > > > I tried to build chapter4 daytrader example by manually adding
> > > > javax.mail and javax.activation jar to the local repository as
> > > > [..]\.m2\repository\javax\mail\mail\1.4\mail-1.4.jar
> > > > and
> > > >
> > >
> >
>
[..]\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar
> > > > However, it still said unable to find required classes.
> > >
> > > How did you add those files to your repository? By manual copying
> or
> > >
> > > via mvn install:install-file / mvn deploy:deploy-file?
> > >
> > > Have you read
> http://maven.apache.org/guides/mini/guide-coping-with-
> > > sun-jars.html?
> > >
> > >
> > > HTH
> > >
> > > Thorsten
> > >
> >
> >
> >
> >      
>
____________________________________________________________________________________Fussy?
> > Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user
> panel and
> > lay it on us.
> http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 



       
____________________________________________________________________________________Pinpoint
 customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/

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

Reply via email to