iVe*_*ela 6 java eclipse netbeans maven
我已将我的项目导入Eclipse(Helios + m2eclipse),也导入Netbeans(7.0),在两个IDE中,其中一个问题是:
这是我尝试构建时在Netbeans中获得的内容.
项目com.miCompany:myProject:1.0(.....)有1个错误
不可解析的构建扩展:插件org.apache.axis2:axis2-wsdl2code-maven-plugin:1.3或其中一个依赖项无法解析:无法收集org.apache.axis2的依赖项:axis2-wsdl2code-maven-plugin:jar :1.3():无法读取org.apache.woden的工件描述符:woden:jar:1.0-incubating-M7b:无法传输工件org.apache.woden:woden:pom:1.0-incubating-M7b from/to jibx (http://jibx.sourceforge.net/maven):没有连接器可用于使用可用工厂WagonRepositoryConnectorFactory访问存储库jibx(http://jibx.sourceforge.net/maven) - > [帮助2]
这是我在Eclipse中得到的:
项目构建错误:无法解析的构建扩展:插件org.apache.axis2:axis2-wsdl2code-maven-plugin:1.3或其中一个依赖项无法解析:无法收集org.apache.axis2的依赖项:axis2-wsdl2code-maven -plugin:jar:1.3()pom.xml/myProject line 1 Maven问题
在Eclipse中我已经下载了这个:http://www.apache.org/dyn/mirrors/mirrors.cgi/axis/axis2/java/core/1.5.4/axis2-eclipse-service-plugin-1.5.4. zip解压缩并将文件:"org.apache.axis2.eclipse.codegen.plugin_1.5.4.jar"复制到我的Eclipse安装目录"plugins"中.我仍然得到同样的错误.
我在Win XP上运行Netbeans而在Win XP上运行Eclipse,也在Mac上运行Netbeans,总是出现同样的错误.
有人知道我该怎么办?
这是我的pom.xml
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>MyParent</artifactId>
<groupId>com.mycompany</groupId>
<version>1.0</version>
</parent>
<groupId>com.mycompany</groupId>
<artifactId>myModule</artifactId>
<version>1.0</version>
<name>myModule</name>
<url>http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>src/main/java</directory>
<includes>
<include>com/mycompany/client/*.java</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<version>1.3</version>
<extensions>true</extensions>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>wsdl2code</goal>
</goals>
</execution>
</executions>
<configuration>
<packageName>com.mycompany.client</packageName>
<wsdlFile>src/main/axis2/MyWsdl.wsdl</wsdlFile>
<outputDirectory>.</outputDirectory>
<targetResourcesFolderLocation>target/main/axis2</targetResourcesFolderLocation>
<targetSourceFolderLocation>src/main/java</targetSourceFolderLocation>
<namespaceURIs>
<namespaceURI>
<uri>http://schema.mycompany.com/Esb</uri>
<packageName>com.mycompany.services.Esbsrv.schema</packageName>
</namespaceURI>
<namespaceURI>
<uri>http://wsdl.mycompany.com/Esb</uri>
<packageName>com.mycompany.services.Esbsrv.schema</packageName>
</namespaceURI>
<namespaceURI>
<uri>http://schema.mycompany.com/Global/WSException</uri>
<packageName>com.mycompany.schema.global.wsexception</packageName>
</namespaceURI>
</namespaceURIs>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<!--
<dependency>
<groupId>wsdl4j</groupId>
<artifactId>wsdl4j</artifactId>
<version>1.6.2</version>
<scope>compile</scope>
</dependency>
-->
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-adb</artifactId>
<version>1.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-kernel</artifactId>
<version>1.3</version>
<scope>compile</scope>
</dependency>
<!--
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-xmlbeans</artifactId>
<version>1.3</version>
<scope>compile</scope>
</dependency>
-->
</dependencies>
</project>
Run Code Online (Sandbox Code Playgroud)
好吧,我只能提供建议,因为我不是一个 Maven 专家,但我今天必须这样做,这对我来说非常简单 -
将 Maven 项目设置为 Eclipse 友好:mvn eclipse:eclipse
确保 eclipse 可以看到这些库。这意味着进入 Eclipse 中的projectsetup/buildpath/libraries 编辑器并添加变量 M2_REPO 以指向本地 Maven 存储库(例如 /home/nacho3d/.m2/repository 之类的内容)
实际上,您的错误在我看来就像 Maven 找不到 axis 的依赖项一样。具体细节应该在轴网站上,
| 归档时间: |
|
| 查看次数: |
19797 次 |
| 最近记录: |