Unable to run acceptance test in IntelliJ after creating a new Mule Connector
I'm having difficulty running the default mule connector test in IntelliJ
12.1.4 after I create a new Mule Connector
First I create a new mule connector using:
mvn archetype:generate
-DarchetypeGroupId=org.mule.tools.devkit
-DarchetypeArtifactId=mule-devkit-archetype-generic
-DarchetypeVersion=3.4.0
-DarchetypeRepository=http://repository.mulesoft.org/releases/
-DgroupId=org.testPackage
-DartifactId=myArtifactId
-Dversion=1.0.0-SNAPSHOT
-DmuleVersion=3.4.0
-DmuleModuleName=myModuleName
-Dpackage=org.testPackage
-DarchetypeRepository=http://repository.mulesoft.org/releases
Then I run "mvn clean install", which is successful:
= Testing: testFlow
...
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.098 sec
- in org.testPackage.myModuleNameModuleTest
I import the project in to IntelliJ ("File/Import Project..."), then
rebuild the project ("Build/Rebuild Project...") successfully.
If I run testFlow() in IntelliJ ("Right-click on myModuleNameModuleTest,
then select "run testFlow"), I get the following error:
= Testing: testFlow
[09-08 14:09:03] WARN XmlBeanDefinitionReader [main]: Ignored XML
validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema
document
'http://www.mulesoft.org/schema/mule/mymodulename/1.0.0-SNAPSHOT/mule-mymodulename.xsd',
because 1) could not find the document; 2) the document could not be read;
3) the root element of the document is not <xsd:schema>.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:96)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:380)
Any idea what's causing this and how to fix it?
No comments:
Post a Comment