You have to define a dependency to the Servlet-API in your POM. E.g. in the project.xml for Maven 1:

<dependency>
      <groupId>servletapi</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
    </dependency>

I don't have an example for Maven 2.

BTW: It would be helpful, if you'd tell the list if you use Maven 1 or 2 (ideally in the subject of your post).

Regards,
Gisbert Amm

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]

Reply via email to