未找到 javaee-endorsed-api-7.0

javaee-endorsed-api-7.0 not found

早上好,我的问题是关于一个错误,它告诉我 neatbens javaee-endorsed-api-7.0 not found 我'我试图找到有关如何解决的信息,但我发现信息是 6.0,但它对我有用,有人可以告诉我如何解决这个问题或提供信息,在那里你可以找到信息我正在创建一个带有 [= 的网络项目30=] web jee 7 neatbens的版本是8.2

I am working an application web project

< target name = "-init-taskdefs" >
  <
  fail unless = "libs.CopyLibs.classpath" >
  The libs.CopyLibs.classpath property is not set up.
This property must point to
org - netbeans - modules - java - j2seproject - copylibstask.jar file which is part of NetBeans IDE installation and is usually located at &
  lt;
netbeans_installation & gt;
/java&lt;version&gt;/ant / extra folder.
Either open the project in the IDE and make sure CopyLibs library
exists or setup the property manually.For example like this:
  ant - Dlibs.CopyLibs.classpath = a / path / to / org - netbeans - modules - java - j2seproject - copylibstask.jar <
  /fail> <
  taskdef classpath = "${libs.CopyLibs.classpath}"
resource = "org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml" / >
  <
  /target>

错误

ant -f "G:\Mis Documentos\NetBeansProjects\WebServiceSicb" -Dnb.internal.action.name=build -DforceRedeploy=false "-Dbrowser.context=G:\Mis Documentos\NetBeansProjects\WebServiceSicb" dist G:\Mis Documentos\NetBeansProjects\WebServiceSicb\nbproject\build-impl.xml:797: The libs.CopyLibs.classpath property is not set up. This property must point to org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part of NetBeans IDE installation and is usually located at /java/ant/extra folder. Either open the project in the IDE and make sure CopyLibs library exists or setup the property manually. For example like this: ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar BUILD FAILED (total time: 0 seconds)

Blockquote

您的 post 中缺少信息,请添加更多详细信息,否则如果您在 maven 项目中工作,请将此块添加到您的 pom.xml:

<dependency>
    <groupId>javax</groupId>
    <artifactId>javaee-endorsed-api</artifactId>
    <version>7.0</version>
</dependency>

否则下载 jar 文件并将其添加到您的类路径中:http://www.java2s.com/Code/Jar/j/Downloadjavaeeendorsedapi70jar.htm

我遇到了同样的问题。只需转到工具--> 插件--> 可用插件---> 搜索 EJB 和 Ear 并安装它。问题就解决了。