[INFO] .................................................. SUCCESS [1.166s]
[INFO] aopencommon .................................... FAILURE [3.797s]
[INFO] abbuclt ............................ SKIPPED ..........................等所有其他人都跳过了 并出现以下错误 [错误]无法执行目标org.apache.maven.plugins:maven-compiler-plugin:2。 3.2:在项目aopencommon上编译(default-compile):编译失败:Co 加油失败: [错误] \ Users \ ds \ Desktop \ MYWORKSPACES2 \ atime \ common-jar \ src \ main \ jav a \ com \ ax \ id \ atec_business_1 \ ABunes.java:[46,8]找不到sy MBOL [ERROR]符号:构造函数服务(java.net.URL,javax.xml.namespace.QName,jav ax.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"> 4.0.0 com.acm.ax aopenall POM 0.0.1-SNAPSHOT
<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"> aopenall com.acm.ax 0.0.1-SNAPSHOT 4.0.0 com.acm.ax aopencommon 罐 0.0.1-SNAPSHOT aopencommon
<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>
答案 0 :(得分:0)
尝试使用java 7编译或使用maven-compiler-plugin-2.1.1代替
编辑: 添加到您的pom文件以覆盖默认编译
<defaultOptions>
<extraargs>
<extraarg>-frontend</extraarg>
<extraarg>jaxws21</extraarg>
</extraargs>
答案 1 :(得分:0)
看看你是否已经安装了jdk:-> Java Build Path -> Libraries
如果没有,请下载并安装它并将其添加到Add Library -> JRE System Library -> Alternate JRE: installed JREs -> Add -> Standard VM -> next -> Directory
在我的例子中,路径是:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64
答案 2 :(得分:0)
对于今天来到这里的任何人:对我而言,问题是环境变量JAVA_HOME
未设置。您必须将其设置为您的sdk安装
如何做到(假设您安装了jdk):
JAVA_HOME
的变量,并相应地设置它的值 - 通常类似于C:\Program Files\Java\jdk1.8.0_131