eclipse - maven - resolve compiltetime dependency to glassfish system libraries -


i've created small ejb project in eclipse glassfish 4. followed tutotial: http://programming.manessinger.com/tutorials/an-eclipse-glassfish-java-ee-6-tutorial/

in project have dependencies "glassfish system libraries" (stuff javax.ws.rs-api or javax.annotation-api)

now converted project maven , i'm stuck on how resolve dependencies maven. (those system libraries - lot...) ejbs have compile errors in eclipse because @ejb unknown, or @stateless.

how solve dependecy?

btw: jpa annotations work/are recognized because added dependecy pom:

    <dependency>         <groupid>org.eclipse.persistence</groupid>         <artifactid>org.eclipse.persistence.jpa</artifactid>         <version>2.5.0</version>         <scope>compile</scope>     </dependency> 

@esej absolutely correct. solve problem add dependency:

    <dependency>         <groupid>javax</groupid>         <artifactid>javaee-api</artifactid>         <version>7.0</version>         <scope>compile</scope>     </dependency> 

notice: scope compile, because on server java ee api provided.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -