当前位置: 首页 > 知识库问答 >
问题:

无法执行目标组织。阿帕奇。专家插件:maven编译器插件:2。3.2:aopencommon项目上的编译(默认编译)

史骏祥
2023-03-14
[INFO]  .................................................. SUCCESS [1.166s]
[INFO] aopencommon .................................... FAILURE [3.797s]

[INFO]abBULIT........................................................................................................................................................................跳过.................................................................................................................................................................................3.2:编译(默认-编译)在项目上aopen通用:编译失败:共同的mbol失败:[错误]\用户\ds\桌面\MYWORKSPACES2\atime\通用-jar\src\main\jav a\com\ax\id\atec_business_1\ABunes.java:[46,8]找不到sy mbol[错误]符号:构造函数服务(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])[ERROR]位置:类javax.xml.ws.Service.....................................................................................................................等...

http://maven.apache.org/maven-v4_0_0.xsd“xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance"

<modules>
  <module>abusjb-jar</module>
  <module>abusear</module>
  <module>aconejb-jar</module>
  <module>aconear</module>
    <module>common-jar</module>
    <module>rerouteservlet-war</module>
    <module>homevalejb-jar</module>
    <module>homevalear</module>
    <module>smallbusejb-jar</module>
    <module>smallbusear</module>
    <module>canbusejb-jar</module>
    <module>canbusear</module>
    <module>canconejb-jar</module>
    <module>canconear</module>
    <module>iscrejb-jar</module>
    <module>iscrear</module>
    <module>informaticaclientejb-jar</module>
    <module>informaticaclientear</module>
    <module>instantauditejb-jar</module>
    <module>instantauditear</module>
    <module>batchlookupservlets-war</module>
    <module>batchlookupejb-jar</module>
    <module>batchlookupear</module>
</modules>

下面是来自comman jar项目pom。xml

http://maven.apache.org/maven-v4_0_0.xsd"

<dependency>
  <groupId>javax.xml</groupId>
  <artifactId>jaxrpc-api</artifactId>
  <version>1.1</version>
  <scope>provided</scope>
</dependency>
<dependency>
  <groupId>org.jboss.jbossws</groupId>
  <artifactId>jbossws-native-core</artifactId>
  <version>3.1.1.GA</version>
  <scope>provided</scope>
</dependency>
  <dependency>
  <groupId>com.sun.xml.ws</groupId>
  <artifactId>jaxws-rt</artifactId>
  <version>2.2</version>
  <scope>provided</scope>
  <exclusions>
    <exclusion>
      <groupId>com.sun.istack</groupId>        
        <artifactId>istack-commons-runtime</artifactId>      
        </exclusion>
  </exclusions>
</dependency>

  <dependency>
        <groupId>javax.persistence</groupId>
        <artifactId>persistence-api</artifactId>
        <version>1.0</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>3.6.0.Final</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>3.8.1</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.16</version>
        <scope>provided</scope>
</dependency>
</dependencies>

共有3个答案

笪俊迈
2023-03-14

对于今天来到这里的任何人来说:对我来说,问题是环境变量JAVA_HOME没有设置。你必须把它设置到你的sdk安装

如何做到这一点(假设您安装了jdk):

  1. 赢得Pausekey
  2. 点击左侧的高级
  3. 点击"环境变量"按钮
  4. 设置或创建一个名为JAVA_HOME的变量,并相应地设置它的值——通常类似于C:\Program Files\Java\jdk1.8。0_131
卢黎昕
2023-03-14

看看你是否已经安装了jdk,转到:-

全丰
2023-03-14

尝试使用java 7编译或使用maven-compiler-plugin-2.1.1来代替

编辑:添加到pom文件以覆盖默认编译

<defaultOptions>
<extraargs>
    <extraarg>-frontend</extraarg>
    <extraarg>jaxws21</extraarg>
</extraargs>

https://stackoverflow.com/a/17651644/2593751

 类似资料: