私はmavenを使って簡単なミュールプロジェクトを作成しました。muleでmavenを使用するには?
以下はサンプルコードです。私はpomファイルを変更することはありません。リポジトリは外部settings.xmlを使わずに進めています。
<http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
<flow name="newFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/hi" doc:name="HTTP"/>
<logger message="logging......" level="INFO" doc:name="Logger"/>
</flow>
私はanypointスタジオでセットアップMavenとすべてのものをやったが、私は、エラーメッセージの下getiingインタフェースを実行したとき、助けてくださいています。
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T22:11:47+05:30)
Maven home: D:\Softwares\apache-maven-3.3.9
Java version: 1.8.0_112, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_112\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"
[13:25:06] Running: mvn clean package -DskipMunitTests
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Mule new Application 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.mulesoft.muleesb:mule-core-ee:jar:3.8.3 is missing, no dependency information available
[WARNING] The POM for com.mulesoft.muleesb.modules:mule-module-spring-config-ee:jar:3.8.3 is missing, no dependency information available
[WARNING] The POM for org.mule.transports:mule-transport-file:jar:3.8.3 is missing, no dependency information available
[WARNING] The POM for org.mule.transports:mule-transport-http:jar:3.8.3 is missing, no dependency information available
[WARNING] The POM for com.mulesoft.muleesb.transports:mule-transport-jdbc-ee:jar:3.8.3 is missing, no dependency information available
[WARNING] The POM for com.mulesoft.muleesb.transports:mule-transport-jms-ee:jar:3.8.3 is missing, no dependency information available
[WARNING] The POM for org.mule.transports:mule-transport-vm:jar:3.8.3 is missing, no dependency information available
[WARNING] The POM for org.mule.modules:mule-module-scripting:jar:3.8.3 is missing, no dependency information available
[WARNING] The POM for org.mule.modules:mule-module-xml:jar:3.8.3 is missing, no dependency information available
[WARNING] The POM for org.mule.tests:mule-tests-functional:jar:3.8.3 is missing, no dependency information available
[INFO] Downloading: http://repo1.maven.org/maven2/org/mule/modules/mule-module-http/3.8.3/mule-module-http-3.8.3.pom
[INFO] Downloading: http://repository.mulesoft.org/releases/org/mule/modules/mule-module-http/3.8.3/mule-module-http-3.8.3.pom
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/mule/modules/mule-module-http/3.8.3/mule-module-http-3.8.3.pom
[WARNING] The POM for org.mule.modules:mule-module-http:jar:3.8.3 is missing, no dependency information available
[WARNING] The POM for org.mule.modules:mule-module-spring-config:jar:3.8.3 is missing, no dependency information available
[INFO] Downloading: http://repo1.maven.org/maven2/com/mulesoft/muleesb/mule-core-ee/3.8.3/mule-core-ee-3.8.3.jar
[INFO] Downloading: http://repo1.maven.org/maven2/com/mulesoft/muleesb/modules/mule-module-spring-config-ee/3.8.3/mule-module-spring-config-ee-3.8.3.jar
[INFO] Downloading: http://repo1.maven.org/maven2/org/mule/transports/mule-transport-file/3.8.3/mule-transport-file-3.8.3.jar
[INFO] Downloading: http://repo1.maven.org/maven2/org/mule/transports/mule-transport-http/3.8.3/mule-transport-http-3.8.3.jar
[INFO] Downloading: http://repo1.maven.org/maven2/com/mulesoft/muleesb/transports/mule-transport-jdbc-ee/3.8.3/mule-transport-jdbc-ee-3.8.3.jar
[INFO] Downloading: http://repo1.maven.org/maven2/com/mulesoft/muleesb/transports/mule-transport-jms-ee/3.8.3/mule-transport-jms-ee-3.8.3.jar
[INFO] Downloading: http://repo1.maven.org/maven2/org/mule/transports/mule-transport-vm/3.8.3/mule-transport-vm-3.8.3.jar
[INFO] Downloading: http://repo1.maven.org/maven2/org/mule/modules/mule-module-scripting/3.8.3/mule-module-scripting-3.8.3.jar
[INFO] Downloading: http://repo1.maven.org/maven2/org/mule/modules/mule-module-xml/3.8.3/mule-module-xml-3.8.3.jar
[INFO] Downloading: http://repo1.maven.org/maven2/org/mule/tests/mule-tests-functional/3.8.3/mule-tests-functional-3.8.3.jar
[INFO] Downloading: http://repo1.maven.org/maven2/org/mule/modules/mule-module-http/3.8.3/mule-module-http-3.8.3.jar
[INFO] Downloading: http://repo1.maven.org/maven2/org/mule/modules/mule-module-spring-config/3.8.3/mule-module-spring-config-3.8.3.jar
[INFO] Downloading: http://repository.mulesoft.org/releases/com/mulesoft/muleesb/mule-core-ee/3.8.3/mule-core-ee-3.8.3.jar
[INFO] Downloading: http://repository.mulesoft.org/releases/com/mulesoft/muleesb/modules/mule-module-spring-config-ee/3.8.3/mule-module-spring-config-ee-3.8.3.jar
[INFO] Downloading: http://repository.mulesoft.org/releases/org/mule/transports/mule-transport-file/3.8.3/mule-transport-file-3.8.3.jar
[INFO] Downloading: http://repository.mulesoft.org/releases/org/mule/transports/mule-transport-http/3.8.3/mule-transport-http-3.8.3.jar
[INFO] Downloading: http://repository.mulesoft.org/releases/com/mulesoft/muleesb/transports/mule-transport-jdbc-ee/3.8.3/mule-transport-jdbc-ee-3.8.3.jar
[INFO] Downloading: http://repository.mulesoft.org/releases/com/mulesoft/muleesb/transports/mule-transport-jms-ee/3.8.3/mule-transport-jms-ee-3.8.3.jar
[INFO] Downloading: http://repository.mulesoft.org/releases/org/mule/transports/mule-transport-vm/3.8.3/mule-transport-vm-3.8.3.jar
[INFO] Downloading: http://repository.mulesoft.org/releases/org/mule/modules/mule-module-scripting/3.8.3/mule-module-scripting-3.8.3.jar
[INFO] Downloading: http://repository.mulesoft.org/releases/org/mule/modules/mule-module-xml/3.8.3/mule-module-xml-3.8.3.jar
[INFO] Downloading: http://repository.mulesoft.org/releases/org/mule/tests/mule-tests-functional/3.8.3/mule-tests-functional-3.8.3.jar
[INFO] Downloading: http://repository.mulesoft.org/releases/org/mule/modules/mule-module-http/3.8.3/mule-module-http-3.8.3.jar
[INFO] Downloading: http://repository.mulesoft.org/releases/org/mule/modules/mule-module-spring-config/3.8.3/mule-module-spring-config-3.8.3.jar
[INFO] Downloading: https://repo.maven.apache.org/maven2/com/mulesoft/muleesb/mule-core-ee/3.8.3/mule-core-ee-3.8.3.jar
[INFO] Downloading: https://repo.maven.apache.org/maven2/com/mulesoft/muleesb/modules/mule-module-spring-config-ee/3.8.3/mule-module-spring-config-ee-3.8.3.jar
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/mule/transports/mule-transport-file/3.8.3/mule-transport-file-3.8.3.jar
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/mule/transports/mule-transport-http/3.8.3/mule-transport-http-3.8.3.jar
[INFO] Downloading: https://repo.maven.apache.org/maven2/com/mulesoft/muleesb/transports/mule-transport-jdbc-ee/3.8.3/mule-transport-jdbc-ee-3.8.3.jar
[INFO] Downloading: https://repo.maven.apache.org/maven2/com/mulesoft/muleesb/transports/mule-transport-jms-ee/3.8.3/mule-transport-jms-ee-3.8.3.jar
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/mule/transports/mule-transport-vm/3.8.3/mule-transport-vm-3.8.3.jar
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/mule/modules/mule-module-scripting/3.8.3/mule-module-scripting-3.8.3.jar
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/mule/modules/mule-module-xml/3.8.3/mule-module-xml-3.8.3.jar
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/mule/tests/mule-tests-functional/3.8.3/mule-tests-functional-3.8.3.jar
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/mule/modules/mule-module-http/3.8.3/mule-module-http-3.8.3.jar
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/mule/modules/mule-module-spring-config/3.8.3/mule-module-spring-config-3.8.3.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.163 s
[INFO] Finished at: 2017-09-13T13:25:24+05:30
[INFO] Final Memory: 12M/161M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project new: Could not resolve dependencies for project com.mycompany:new:mule:1.0.0-SNAPSHOT: The following artifacts could not be resolved: com.mulesoft.muleesb:mule-core-ee:jar:3.8.3, com.mulesoft.muleesb.modules:mule-module-spring-config-ee:jar:3.8.3, org.mule.transports:mule-transport-file:jar:3.8.3, org.mule.transports:mule-transport-http:jar:3.8.3, com.mulesoft.muleesb.transports:mule-transport-jdbc-ee:jar:3.8.3, com.mulesoft.muleesb.transports:mule-transport-jms-ee:jar:3.8.3, org.mule.transports:mule-transport-vm:jar:3.8.3, org.mule.modules:mule-module-scripting:jar:3.8.3, org.mule.modules:mule-module-xml:jar:3.8.3, org.mule.tests:mule-tests-functional:jar:3.8.3, org.mule.modules:mule-module-http:jar:3.8.3, org.mule.modules:mule-module-spring-config:jar:3.8.3: Could not find artifact com.mulesoft.muleesb:mule-core-ee:jar:3.8.3 in Central (http://repo1.maven.org/maven2/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
に記載されている設定のコンフィグレーションを追加することができます。docs:https://docs.mulesoft.com/mule-user-ガイド/ v/3.6 /設定-maven-to-work-with-mule-esb – Tome
こんにちは、私は文書を通過しました。その設定ファイルは必須ですか?接続する無料のリポジトリがありますか? pom.xmlにリポジトリがあります http://repository.mulesoft.org/releases/ もう一度リポジトリが必要なのはなぜですか? –
Thiru
私はMaven Central(Mavenインストールではデフォルトの利用可能なリポジトリ)にリリースを公開しないと思いますので、アーティファクトをダウンロードできるように別のリポジトリを追加する必要があります。 – Tome