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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]