java - Maven compiling javax.ejb does not exists -


i created maven project in eclipse , when try run in project directory mvn clean install gives errors:

[info] compiling 3 source files c:\users\florin\documents\facultate\master\tm is\anul1\sem2\orm\teme\lab1_5\shop-interfaces\target\classes [info] ------------------------------------------------------------- [error] compilation error : [info] ------------------------------------------------------------- [error] /c:/users/florin/documents/facultate/master/tmis/anul1/sem2/orm/teme/lab 1_5/shop-interfaces/src/main/java/ro/unitbv/ishoppingcart.java:[5,17] package ja vax.ejb not exist [error] /c:/users/florin/documents/facultate/master/tmis/anul1/sem2/orm/teme/lab 1_5/shop-interfaces/src/main/java/ro/unitbv/ishoppingcart.java:[7,2] cannot find  symbol   symbol: class remote [error] /c:/users/florin/documents/facultate/master/tmis/anul1/sem2/orm/teme/lab 1_5/shop-interfaces/src/main/java/ro/unitbv/productdao.java:[6,17] package javax .ejb not exist  [error] failed execute goal org.apache.maven.plugins:maven-compiler-plugin:3. 1:compile (default-compile) on project shop-interfaces: compilation failure: com pilation failure: [error] failed execute goal org.apache.maven.plugins:maven-compiler-plugin:3. 1:compile (default-compile) on project shop-interfaces: compilation failure: com pilation failure: [error] /c:/users/florin/documents/facultate/master/tmis/anul1/sem2/orm/teme/lab 1_5/shop-interfaces/src/main/java/ro/unitbv/ishoppingcart.java:[5,17] package ja vax.ejb not exist ... 

i checked if package javax.ejb downloaded, , exists in .m2 folder.

edit: pom file is:

<?xml version="1.0"?> <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">   <modelversion>4.0.0</modelversion>   <groupid>ro.unitbv</groupid>   <artifactid>shop-interfaces</artifactid>   <version>1.0.0-snapshot</version>   <name>shop-interfaces</name>   <dependencies>     <dependency>       <groupid>javax</groupid>       <artifactid>javaee-api</artifactid>       <version>7.0</version>       <scope>povided</scope>     </dependency>   </dependencies> </project> 

depending on need have define dependency javax.ejb not defined in javaee-api.

you have give example:

<dependency>     <groupid>javax.ejb</groupid>     <artifactid>javax.ejb-api</artifactid>     <version>3.2</version>     <scope>provided</scope> </dependency> 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -