You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Th...@putnam.com on 2006/02/02 16:53:01 UTC

Re: [m202] compilation error in multiproject - dependency not loaded inclasspath? -- user error






This was a user error.

on the dependency element for servlet-api we had coded <scope>jar</scope>
instead of <type>jar</type>

Because of this, the servlet-api jar was not added to the compile
classpath, resulting in compile errors.

our fault, and something we will document for our teams.

Thanks
Tom



                                                                           
             Thomas_Perry@putn                                             
             am.com                                                        
                                                                        To 
             02/02/2006 09:07          Maven Users List                    
             AM                        <us...@maven.apache.org>            
                                                                        cc 
                                                                           
             Please respond to                                     Subject 
               "Maven Users            [m202] compilation error in         
                   List"               multiproject - dependency not       
             <users@maven.apac         loaded        inclasspath?          
                  he.org>                                                  
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           









hello,

we are running eclipse 3.1.1 and maven2 .0.2 and the maven eclipse plugin
0.0.4

we have a multiproject where a subproject has a dependency on
javax.servlet/servlet-api/2.4

The dependency appears in the Maven2 Dependencies container in eclipse and
the jar is our local repository.

When an install goal is run, a class in the subproject that needs classes
from servlet-api fails
with compilation errors due to missing classes that are present in
servlet-api

When the install goal is run with -X, the servlet-api jar is *not* in the
classpath.

Has anyone seen similar behavior? Any suggestions to correct or debug
further?

Thanks in advance for your help.
Tom




This message is intended for the recipient only and is not meant to be
forwarded or distributed in any other format. This communication is for
informational purposes only.  It is not intended as an offer or
solicitation for the purchase or sale of any financial instrument, or
security, or as an official confirmation of any transaction.  Putnam does
not accept purchase or redemptions of securities, instructions, or
authorizations that are sent via e-mail.   All market prices, data and
other information are not warranted as to completeness or accuracy and are
subject to change without notice.  Any comments or statements made herein
do not necessarily reflect those of Putnam, LLC (DBA Putnam Investments)
and its subsidiaries and affiliates.  If you are not the intended recipient
of this e-mail, please delete the e-mail.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org





 
This message is intended for the recipient only and is not meant to be forwarded or distributed in any other format. This communication is for informational purposes only.  It is not intended as an offer or solicitation for the purchase or sale of any financial instrument, or security, or as an official confirmation of any transaction.  Putnam does not accept purchase or redemptions of securities, instructions, or authorizations that are sent via e-mail.   All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice.  Any comments or statements made herein do not necessarily reflect those of Putnam, LLC (DBA Putnam Investments) and its subsidiaries and affiliates.  If you are not the intended recipient of this e-mail, please delete the e-mail.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org