Wow, I didnt know that the servlet jar is now available in ibiblio..
Thanks for the info. :)
Boden, David wrote:
You don't have to install it in your local repository first for Maven 2. Maven
will fetch it from ibiblio. How helpful. It's one of the few Sun .jars that are
actually present in the repository. Come on Sun, change those licenses so that
things like javamail are in ibiblio ready to use!
-----Original Message-----
From: Allan Ramirez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 18, 2006 10:49 AM
To: Maven Users List
Subject: Re: Compile classpath
Hi Stein,
First, you have to install your servlet jar to your local repository Please see
http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html
and
http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-HowdoIinstallafileinmylocalrepositoryalongwithagenericPOM
for your reference.
Let's say that you give it
groupId = javax.servlet
artifactId = servlet-api
version = 2.4
After the artifact has been installed you can add the servlet jar as
your dependency in your pom.xml.
<project>
...
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
-allan
Stein Kråbøl wrote:
Maven is new to me... Please help!
How to set up resorses to point to
c:\web\tomcat\common\lib\servlet.jar
so the compiler can see it_
This is the output:
---
[INFO] Compilation failure
C:\project\test-app\src\main\java\com\tellussoft\Test\ShowColor.java:[
3,0]
packa
ge javax.servlet does not exist
Please give me detailed information so I dont have to ask again!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the
designated recipient(s) named above. If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited. This
communication is for information purposes only and should not be regarded as an
offer to sell or as a solicitation of an offer to buy any financial product, an
official confirmation of any transaction, or as an official statement of Lehman
Brothers. Email transmission cannot be guaranteed to be secure or error-free.
Therefore, we do not represent that this information is complete or accurate
and it should not be relied upon as such. All information is subject to change
without notice.
---------------------------------------------------------------------
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]