我有一个名为“ Simulation_getfromsvn_freestyle”的Jenkins项目,显然我已经安装了maven插件,该项目从SVN存储库获取代码,我工作的公司的问题是开发人员仍在使用Java 7,我为项目添加了一个“调用Maven工件”,并插入了pom.xml和目标的路径(除了clean以外的任何目标),并且通过jenkins,我将JDK配置为使用Java 7安装(这很难实现),我触发构建,一切正常,直到进入编译步骤,它显示错误:package javax.ejb does not exist
和error: package javax.persistence does not exist
之类的错误,显然是由于使用Java版本> 7,我想做的就是编译依次创建该项目,生成一个.ear并将其发送到另一台机器,这是问题的全部堆栈(但是我不想过去,因为它很长,但是如果需要它,我会遵守):>
...
[INFO] 100 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Simulation Project 1.0 ............................. SUCCESS [ 11.298 s]
[INFO] Simulation-ejb 2.2 ................................. FAILURE [08:51 min]
[INFO] Simulation-war Maven Webapp 2.2 .................... SKIPPED
[INFO] Simulation EAR Module 2.2 .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 09:03 min
[INFO] Finished at: 2019-04-29T11:08:46+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project Simulation-ejb: Compilation failure: Compilation failure:
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/impl/Tarif804DAO.java:[12,16] error: package javax.ejb does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/impl/Tarif804DAO.java:[13,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/impl/Tarif804DAO.java:[14,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/impl/Tarif804DAO.java:[15,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/AbstractDAO.java:[8,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/ITarif804DAO.java:[11,16] error: package javax.ejb does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/ITarif804DAO.java:[17,1] error: cannot find symbol
[ERROR] class Local
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/impl/Tarif804DAO.java:[21,1] error: cannot find symbol
[ERROR] class Stateless
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tarif804.java:[9,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tarif804.java:[10,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tarif804.java:[11,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tarif804.java:[12,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tarif804.java:[13,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tarif804.java:[14,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tarif804.java:[15,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tarif804.java:[16,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tarif804.java:[17,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tarif804.java:[18,35] error: package javax.validation.constraints does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tarif804.java:[19,35] error: package javax.validation.constraints does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tarif804.java:[25,1] error: cannot find symbol
[ERROR] class Entity
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tarif804.java:[26,1] error: cannot find symbol
[ERROR] class Table
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tarif804.java:[27,1] error: cannot find symbol
[ERROR] class NamedQueries
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/impl/Tarif804DAO.java:[25,12] error: cannot find symbol
[ERROR] class Tarif804DAO
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/impl/Tarif804DAO.java:[28,14] error: cannot find symbol
[ERROR] class Tarif804DAO
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Garantie804.java:[9,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Garantie804.java:[10,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Garantie804.java:[11,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Garantie804.java:[12,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Garantie804.java:[13,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Garantie804.java:[14,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Garantie804.java:[15,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Garantie804.java:[16,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Garantie804.java:[17,35] error: package javax.validation.constraints does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Garantie804.java:[18,35] error: package javax.validation.constraints does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Garantie804.java:[24,1] error: cannot find symbol
[ERROR] class Entity
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Garantie804.java:[25,1] error: cannot find symbol
[ERROR] class Table
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Garantie804.java:[26,1] error: cannot find symbol
[ERROR] class NamedQueries
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/AbstractDAO.java:[21,23] error: cannot find symbol
[ERROR]
[ERROR] T extends Object declared in class AbstractDAO
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Pack805.java:[8,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Pack805.java:[9,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Pack805.java:[10,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Pack805.java:[11,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Pack805.java:[12,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Pack805.java:[13,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Pack805.java:[14,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Pack805.java:[15,35] error: package javax.validation.constraints does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Pack805.java:[16,35] error: package javax.validation.constraints does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Pack805.java:[22,1] error: cannot find symbol
[ERROR] class Entity
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Pack805.java:[23,1] error: cannot find symbol
[ERROR] class Table
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Pack805.java:[24,1] error: cannot find symbol
[ERROR] class NamedQueries
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/impl/Tauxgar805DAO.java:[11,16] error: package javax.ejb does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/impl/Tauxgar805DAO.java:[12,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/impl/Tauxgar805DAO.java:[13,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/impl/Tauxgar805DAO.java:[14,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/ITauxgar805DAO.java:[9,16] error: package javax.ejb does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/ITauxgar805DAO.java:[15,1] error: cannot find symbol
[ERROR] class Local
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/impl/Tauxgar805DAO.java:[20,1] error: cannot find symbol
[ERROR] class Stateless
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tauxgar805.java:[9,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tauxgar805.java:[10,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tauxgar805.java:[11,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tauxgar805.java:[12,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tauxgar805.java:[13,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tauxgar805.java:[14,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tauxgar805.java:[15,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tauxgar805.java:[16,35] error: package javax.validation.constraints does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tauxgar805.java:[17,35] error: package javax.validation.constraints does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tauxgar805.java:[23,1] error: cannot find symbol
[ERROR] class Entity
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tauxgar805.java:[24,1] error: cannot find symbol
[ERROR] class Table
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Tauxgar805.java:[25,1] error: cannot find symbol
[ERROR] class NamedQueries
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/impl/Tauxgar805DAO.java:[24,12] error: cannot find symbol
[ERROR] class Tauxgar805DAO
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/impl/Tauxgar805DAO.java:[27,14] error: cannot find symbol
[ERROR] class Tauxgar805DAO
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/IMatcinClientSimulationDAO.java:[10,16] error: package javax.ejb does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/dao/IMatcinClientSimulationDAO.java:[16,1] error: cannot find symbol
[ERROR] class Local
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[10,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[11,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[12,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[13,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[14,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[15,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[16,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[17,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[18,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[19,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[20,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[21,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[22,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[23,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[24,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[25,35] error: package javax.validation.constraints does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[26,35] error: package javax.validation.constraints does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[33,1] error: cannot find symbol
[ERROR] class Entity
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[34,1] error: cannot find symbol
[ERROR] class Table
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/MatcinClientSimulation.java:[35,1] error: cannot find symbol
[ERROR] class NamedQueries
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Param804.java:[9,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Param804.java:[10,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Param804.java:[11,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Param804.java:[12,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Param804.java:[13,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Param804.java:[14,24] error: package javax.persistence does not exist
[ERROR] /root/.jenkins/workspace/Simulation_getfromsvn_freestyle/trunk/Simulation/Simulation-ejb/src/main/java/com/star/simulation/model/Param804.java:[15,24] error: package javax.persistence does not exist
如果您想要其他信息对此线程的答复,我会提供,谢谢。 编辑:我将项目切换到离线模式(不再从SVN获取源代码),并使用在google上发现的每条建议更改了pom.xml,但没有任何效果,错误仍然存在