You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Chen, Anning" <an...@gs.com> on 2006/10/18 19:29:08 UTC

dependency question

Hi,

            I'm a newbie to Maven2 and have a simple question:

My pom.xml file for this package is here:

<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.gs.fw.web.utils.uuid</groupId>
    <artifactId>util.uuidgenerator.servlet</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>UUID Generator Servlet</name>
    <url>http://maven.apache.org</url>
    <dependencyManagement>
        <dependencies>
           <dependency>
              <groupId>com.gs.fw.web.lib</groupId>
              <artifactId>thirdparty.sun.servlet.2.3</artifactId>
              <version>1.0-SNAPSHOT</version>
           </dependency>
        </dependencies>
    </dependencyManagement>
</project>

thirdparty.sun.servlet.2.3 is a thirdparty jar from sun, which I
packaged and installed to the repository.  However, when I compile, I
get "package javax.servlet does not exist".  Is there something else I
have to setup to add the classes in the jar to my compile time
classpath?

 

Thanks


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


Re: maven2 cvs checkout

Posted by Wayne Fay <wa...@gmail.com>.
Take a look at the SCM plugin:
http://maven.apache.org/scm/plugins/examples/bootstrapping-with-pom.html

Wayne

On 10/18/06, Chen, Anning <an...@gs.com> wrote:
> Does anyone know how to checkout files from CVS in maven?  I want to
> incorporate this feature in a Maven create project script.
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


maven2 cvs checkout

Posted by "Chen, Anning" <an...@gs.com>.
Does anyone know how to checkout files from CVS in maven?  I want to
incorporate this feature in a Maven create project script.

Thanks

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


RE: dependency question

Posted by "Chen, Anning" <an...@gs.com>.
Thx.  This worked.


-----Original Message-----
From: Wendy Smoak [mailto:wsmoak@gmail.com] 
Sent: Wednesday, October 18, 2006 1:41 PM
To: Maven Users List
Subject: Re: dependency question

On 10/18/06, Chen, Anning <an...@gs.com> wrote:

> thirdparty.sun.servlet.2.3 is a thirdparty jar from sun, which I
> packaged and installed to the repository.  However, when I compile, I
> get "package javax.servlet does not exist".  Is there something else I
> have to setup to add the classes in the jar to my compile time
> classpath?

Try removing the surrounding <dependencyManagement> element.

(That element is used to control dependency versions from a top-level
pom.)

If this is a 'released' jar, you'll probably want to make up some
version number for it, and not use -SNAPSHOT.

-- 
Wendy

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

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


Re: dependency question

Posted by Wendy Smoak <ws...@gmail.com>.
On 10/18/06, Chen, Anning <an...@gs.com> wrote:

> thirdparty.sun.servlet.2.3 is a thirdparty jar from sun, which I
> packaged and installed to the repository.  However, when I compile, I
> get "package javax.servlet does not exist".  Is there something else I
> have to setup to add the classes in the jar to my compile time
> classpath?

Try removing the surrounding <dependencyManagement> element.

(That element is used to control dependency versions from a top-level pom.)

If this is a 'released' jar, you'll probably want to make up some
version number for it, and not use -SNAPSHOT.

-- 
Wendy

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