我正在尝试使用 Devkit 3.3.2 在 Mule Studio 3.4 中创建连接器。
以下是我用来生成项目结构的maven (3.0.2)命令:
$ mvn archetype:generate -DarchetypeGroupId=org.mule.tools.devkit
-DarchetypeArtifactId=mule-devkit-archetype-cloud-connector
-DarchetypeVersion=3.4.0 -DgroupId=org.hello -DartifactId=hello-connector
-Dversion=1.0-SNAPSHOT -DmuleVersion=3.4.1
-DmuleConnectorName=Hello -Dpackage=org.hello
-DarchetypeRepository=http://repository.mulesoft.org/releases
在此之后,我做了:
"mvn clean package -Ddevkit.studio.package.skip=false -DskipTests"
这在 Studio 中产生了一些似乎与 devkit 3.4.0 相关的错误,因此决定在 pom.xml 中将 Mule/Devkit 版本从 3.4.0 更改为 3.3.2:
<mule.version>3.3.2</mule.version>
<mule.devkit.version>3.3.2</mule.devkit.version>
Studio 中显示以下两个错误:
"The project was not built since its build path is incomplete. Cannot find the class file for org.eclipse.core.runtime.CoreException. Fix the build path then try building this project aria-connector Unknown Java Problem"
和
"The type org.eclipse.core.runtime.CoreException cannot be resolved. It is indirectly referenced from required .class files AriaActivator.java /aria-connector/target/generated-sources/mule/org/mule/tooling/ui/contribution line 1 Java Problem"
我的环境是Mac OS X 10.8.4(Windows 7中也会出现错误),Mule Studio 3.4.0, java版本“1.6.0_51 ”。
有人遇到过类似的问题或知道如何解决这个问题吗?
谢谢
最佳答案
添加:
<dependency>
<groupId>org.eclipse.equinox</groupId>
<artifactId>common</artifactId>
<version>3.3.0-v20070426</version>
<scope>provided</scope>
</dependency>
到您的 POM。
关于mule - devkit 3.3.2 和 eclipse CoreException 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17742482/