2013-05-01 76 views
3

我遇到了以下嘗試構建或使用Maven(使用Mule 3.4)構建Mule應用程序的問題。同樣,當我更新的依賴,Eclipse將無限期地嘗試下載com.mulesoft.licm時掛起:licm:罐子:1.1.3爲什麼Mule Studio 3.4與Maven構建失敗或無限期掛起

Failed to read artifact descriptor for com.mulesoft.licm:licm:jar:1.1.3: 
Could not transfer artifact com.mulesoft.licm:licm:pom:1.1.3 from/to libs-releases 
(http://dev.ee.mulesource.com/repository/content/repositories/libs-releases/): 
Connection to http://dev.ee.mulesource.com refused: Connection timed out: connect 
-> [Help 1] [ERROR] 

這裏是我的pom.xml:

<?xml version="1.0" encoding="UTF-8"?> 
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 

    <modelVersion>4.0.0</modelVersion> 
    <groupId>edu.ucdavis.edus-pub-service</groupId> 
    <artifactId>edus-pub-service</artifactId> 
    <packaging>mule</packaging> 
    <version>1.0.0-SNAPSHOT</version> 

    <properties> 
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 

     <mule.version>3.4.0</mule.version> 
     <eclipsePluginVersion>2.8</eclipsePluginVersion> 
     <jdkName>JavaSE-1.6</jdkName> 
     <jdk.version>1.6</jdk.version> 
     <junit.version>4.9</junit.version> 
    </properties> 

    <build> 
     <!-- Use a newer version of the install plugin than what your Maven uses 
      by default. The older version failed to install the project if there was 
      no target/classes folder. Since we use mule packaging on the project we actually 
      create and attach the zip that must be installed. --> 
     <pluginManagement> 
      <plugins> 
       <plugin> 
        <groupId>org.apache.maven.plugins</groupId> 
        <artifactId>maven-install-plugin</artifactId> 
        <version>2.3.1</version> 
       </plugin> 
       <!--This plugin's configuration is used to store Eclipse m2e settings 
        only. It has no influence on the Maven build itself. --> 
       <plugin> 
        <groupId>org.eclipse.m2e</groupId> 
        <artifactId>lifecycle-mapping</artifactId> 
        <version>1.0.0</version> 
        <configuration> 
         <lifecycleMappingMetadata> 
          <pluginExecutions> 
           <pluginExecution> 
            <pluginExecutionFilter> 
             <groupId>org.mule.tools</groupId> 
             <artifactId>maven-mule-plugin</artifactId> 
             <versionRange>[1.6,)</versionRange> 
             <goals> 
              <goal>attach-test-resources</goal> 
              <goal>filter-resources  </goal> 
             </goals> 
            </pluginExecutionFilter> 
            <action> 
             <ignore></ignore> 
            </action> 
           </pluginExecution> 
          </pluginExecutions> 
         </lifecycleMappingMetadata> 
        </configuration> 
       </plugin> 
      </plugins> 
     </pluginManagement> 
     <plugins> 
      <plugin> 
       <groupId>org.mule.tools</groupId> 
       <artifactId>maven-mule-plugin</artifactId> 
       <version>1.9</version> 
       <extensions>true</extensions> 
       <configuration> 
        <copyToAppsDirectory>true</copyToAppsDirectory> 
       </configuration> 
      </plugin> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-compiler-plugin</artifactId> 
       <version>2.3.2</version> 
       <configuration> 
        <source>${jdk.version}</source> 
        <target>${jdk.version}</target> 
        <encoding>ISO-8859-1</encoding> 
       </configuration> 
      </plugin> 
      <plugin> 
       <artifactId>maven-assembly-plugin</artifactId> 
       <version>2.2.1</version> 
       <configuration> 
        <descriptorRefs> 
         <descriptorRef>project</descriptorRef> 
        </descriptorRefs> 
       </configuration> 
      </plugin> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-eclipse-plugin</artifactId> 
       <version>${eclipsePluginVersion}</version> 
       <configuration> 
        <!-- by default download all sources when generating project files --> 
        <downloadSources>true</downloadSources> 
       </configuration> 
      </plugin> 
      <plugin> 
       <groupId>org.codehaus.mojo</groupId> 
       <artifactId>build-helper-maven-plugin</artifactId> 
       <version>1.7</version> 
       <executions> 
        <execution> 
         <id>add-resource</id> 
         <phase>generate-resources</phase> 
         <goals> 
          <goal>add-resource</goal> 
         </goals> 
         <configuration> 
          <resources> 
           <resource> 
            <directory>src/main/app/</directory> 
           </resource> 
          </resources> 
         </configuration> 
        </execution> 
       </executions> 
      </plugin> 
      <plugin> 
       <groupId>org.codehaus.mojo</groupId> 
       <artifactId>exec-maven-plugin</artifactId> 
       <version>1.2.1</version> 
       <executions> 
        <execution> 
        <goals> 
         <goal>java</goal> 
        </goals> 
        </execution> 
       </executions> 
       <configuration> 
        <mainClass>org.mule.MuleServer</mainClass> 
        <arguments> 
        <argument>-config</argument> 
        <argument>src/main/app/mule-config.xml</argument> 
        </arguments> 
       <classpathScope>compile</classpathScope> 
       </configuration> 
       </plugin> 

       <!--Install clover-plugins--> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-dependency-plugin</artifactId> 
       <version>2.4</version> 
       <executions> 
        <execution> 
         <id>copy-clover-plugins</id> 
         <phase>validate</phase> 
         <goals> 
          <goal>copy</goal> 
         </goals> 
         <configuration> 
          <overWriteReleases>true</overWriteReleases> 
          <overWriteSnapshots>true</overWriteSnapshots> 
          <overWriteIfNewer>true</overWriteIfNewer> 
          <stripVersion>true</stripVersion> 

          <outputDirectory>${project.build.testOutputDirectory}</outputDirectory> 
          <artifactItems> 
           <artifactItem> 
            <groupId>com.cloveretl</groupId> 
            <artifactId>cloveretl-engine</artifactId> 
            <version>${mule.version}</version> 
            <type>zip</type> 
           </artifactItem> 
          </artifactItems> 
         </configuration> 
        </execution> 
       </executions> 
      </plugin> 
      <plugin> 
       <artifactId>maven-antrun-plugin</artifactId> 
       <version>1.7</version> 
       <executions> 
        <execution> 
         <phase>compile</phase> 
         <configuration> 
          <tasks> 
           <!-- Using an ant task to deflate cloveretl-engine.zip --> 
           <unzip src="${project.build.testOutputDirectory}/cloveretl-engine.zip" dest="${project.build.testOutputDirectory}" /> 
          </tasks> 
         </configuration> 
         <goals> 
          <goal>run</goal> 
         </goals> 
        </execution> 
       </executions> 
      </plugin> 
     </plugins> 
    </build> 

    <!-- plugins for creating site reports --> 
    <reporting> 
     <plugins> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-surefire-report-plugin</artifactId> 
       <version>2.4.2</version> 
      </plugin> 

      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-checkstyle-plugin</artifactId> 
       <version>2.5</version> 
       <configuration> 
        <configLocation>http://mulesoft.org/download/attachments/92/checkstyle.xml?version=1</configLocation> 
       </configuration> 
      </plugin> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-pmd-plugin</artifactId> 
       <version>2.5</version> 
       <configuration> 
        <targetJdk>${jdk.version}</targetJdk> 
       </configuration> 
      </plugin> 
      <plugin> 
       <groupId>org.codehaus.mojo</groupId> 
       <artifactId>cobertura-maven-plugin</artifactId> 
       <version>2.5</version> 
      </plugin> 
      <plugin> 
       <groupId>org.codehaus.mojo</groupId> 
       <artifactId>taglist-maven-plugin</artifactId> 
       <version>2.4</version> 
       <configuration> 
        <tags> 
         <tag>TODO</tag> 
         <tag>@todo</tag> 
         <tag>FIXME</tag> 
         <tag>@fixme</tag> 
         <tag>@deprecated</tag> 
        </tags> 
       </configuration> 
      </plugin> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-jxr-plugin</artifactId> 
       <version>2.2</version> 
      </plugin> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-javadoc-plugin</artifactId> 
       <version>2.7</version> 
       <configuration> 
        <source>${jdk.version}</source> 
        <links> 
         <link>http://java.sun.com/j2ee/1.4/docs/api</link> 
         <link>http://java.sun.com/j2se/1.4.2/docs/api</link> 
         <link>http://java.sun.com/j2se/1.5.0/docs/api</link> 
        </links> 
       </configuration> 
      </plugin> 
      <plugin> 
       <groupId>org.codehaus.mojo</groupId> 
       <artifactId>jdepend-maven-plugin</artifactId> 
       <version>2.0-beta-2</version> 
      </plugin> 
      <plugin> 
       <groupId>org.codehaus.mojo</groupId> 
       <artifactId>findbugs-maven-plugin</artifactId> 
       <version>2.3.2</version> 
      </plugin> 
     </plugins> 
    </reporting> 

    <!-- Mule Dependencies --> 
    <dependencies> 

    <!-- UC Davis Edustream Dependencies ********************************************************************************** --> 

    <dependency> 
     <groupId>org.mongodb</groupId> 
     <artifactId>mongo-java-driver</artifactId> 
     <version>2.11.1</version> 
    </dependency> 

    <dependency> 
     <groupId>com.github.fge</groupId> 
     <artifactId>json-schema-validator</artifactId> 
     <version>2.0.1</version> 
    </dependency> 

     <dependency> 
     <groupId>com.googlecode.json-simple</groupId> 
     <artifactId>json-simple</artifactId> 
     <version>1.1</version> 
    </dependency> 
    <dependency> 
     <groupId>commons-dbcp</groupId> 
     <artifactId>commons-dbcp</artifactId> 
     <version>1.4</version> 
    </dependency> 

    <dependency> 
    <groupId>org.springframework.data</groupId> 
    <artifactId>spring-data-mongodb</artifactId> 
    <version>1.2.1.RELEASE</version> 
    </dependency> 

    <!-- <dependency> 
     <groupId>org.springframework.data</groupId> 
     <artifactId>spring-data-mongodb-log4j</artifactId> 
     <version>1.2.1.RELEASE</version> 

    </dependency> --> 

    <!-- 
    <dependency> 
     <groupId>org.hibernate</groupId> 
     <artifactId>hibernate-validator</artifactId> 
     <version>5.0.1.Final</version> 
    </dependency> 
    --> 

    <!-- UC Davis Edustream Dependencies ********************************************************************************** --> 

     <dependency> 
      <groupId>org.mule</groupId> 
      <artifactId>mule-core</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 

     <dependency> 
      <groupId>com.mulesoft.muleesb.modules</groupId> 
      <artifactId>mule-module-boot-ee</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 

     <dependency> 
      <groupId>com.mulesoft.muleesb</groupId> 
      <artifactId>mule-core-ee</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 


     <!-- Xml configuration --> 
     <dependency> 
      <groupId>org.mule.modules</groupId> 
      <artifactId>mule-module-spring-config</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 

     <dependency> 
      <groupId>com.mulesoft.muleesb.modules</groupId> 
      <artifactId>mule-module-data-mapper</artifactId> 
      <version>${mule.version}</version> 
     </dependency> 
     <!-- Xml configuration --> 
     <dependency> 
      <groupId>com.mulesoft.muleesb.modules</groupId> 
      <artifactId>mule-module-spring-config-ee</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 

     <!-- Mule Transports --> 
     <dependency> 
      <groupId>org.mule.transports</groupId> 
      <artifactId>mule-transport-file</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.mule.transports</groupId> 
      <artifactId>mule-transport-http</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.mule.transports</groupId> 
      <artifactId>mule-transport-jdbc</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.mule.transports</groupId> 
      <artifactId>mule-transport-jms</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.mule.transports</groupId> 
      <artifactId>mule-transport-vm</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 

     <!-- Mule Modules --> 
     <dependency> 
      <groupId>org.mule.modules</groupId> 
      <artifactId>mule-module-client</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.mule.modules</groupId> 
      <artifactId>mule-module-cxf</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.mule.modules</groupId> 
      <artifactId>mule-module-management</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.mule.modules</groupId> 
      <artifactId>mule-module-scripting</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.mule.modules</groupId> 
      <artifactId>mule-module-sxc</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.mule.modules</groupId> 
      <artifactId>mule-module-xml</artifactId> 
      <version>${mule.version}</version> 
      <scope>provided</scope> 
     </dependency> 

     <!-- for testing --> 
     <dependency> 
      <groupId>org.mule.tests</groupId> 
      <artifactId>mule-tests-functional</artifactId> 
      <version>${mule.version}</version> 
      <scope>test</scope> 
     </dependency> 
     <dependency> 
      <groupId>mockobjects</groupId> 
      <artifactId>mockobjects-core</artifactId> 
      <version>0.09</version> 
      <scope>test</scope> 
     </dependency> 
     <dependency> 
      <groupId>junit</groupId> 
      <artifactId>junit</artifactId> 
      <version>${junit.version}</version> 
      <scope>test</scope> 
     </dependency> 
    </dependencies> 

    <repositories> 
     <repository> 
      <id>jboss</id> 
      <name>JBoss</name> 
      <url>http://repository.jboss.com/</url> 
     </repository> 
     <repository> 
      <id>mulesoft-releases</id> 
      <name>MuleSoft Releases</name> 
      <url>http://repository.mulesoft.org/releases/</url> 
     </repository> 
     <repository> 
      <id>oss-sonatype-snapshots</id> 
      <url>https://oss.sonatype.org/content/repositories/snapshots/</url> 
     </repository> 
     <repository> 
      <id>codehaus-snaphosts</id> 
      <name>Codehaus Snapshots</name> 
      <url>http://snapshots.repository.codehaus.org/</url> 
     </repository> 
     <repository> 
      <id>codehaus-releases</id> 
      <name>CodeHaus Releases</name> 
      <url>http://repository.codehaus.org/</url> 
     </repository> 
    </repositories> 
    <pluginRepositories> 
     <pluginRepository> 
      <id>mulesoft-release</id> 
      <name>mulesoft release repository</name> 
      <layout>default</layout> 
      <url>https://repository.mulesoft.org/releases/</url> 
      <snapshots> 
      <enabled>false</enabled> 
      </snapshots> 
     </pluginRepository> 
     </pluginRepositories> 

</project> 
+0

這個問題是已知的,在下面的吉拉票通過Mulesoft被跟蹤: HTTP:// WWW .mulesoft.org/jira/browse/STUDIO-3180 – GarySharpe 2013-05-13 16:59:29

回答

7

幾個MuleSoft的POM有對其內部工件存儲庫的引用不是供公衆使用的。我相信他們會更負責任地使用配置文件或使用他們自己的settings.xml來包含這個存儲庫。

有很多方法可以解決這個問題。一個解決方案是將其反映到你的〜/ .settings.xml公共庫:

<mirrors> 
    <mirror> 
     <id>mule-ee-proxy</id> 
     <name>Hack to not use dev.ee.mulesource.com</name> 
     <url>https://repository.mulesoft.org/releases/</url> 
     <mirrorOf>mule-ee-releases,mule-ee-snapshots,libs-releases,ext-releases</mirrorOf> 
    </mirror> 
</mirrors> 

它不漂亮,但它的工作原理。

1

這是一個Mule企業版Maven倉庫中的依賴關係。

在你的情況,我認爲以下EE的依賴導致該問題:

<dependency> 
     <groupId>com.mulesoft.muleesb.modules</groupId> 
     <artifactId>mule-module-boot-ee</artifactId> 
     <version>${mule.version}</version> 
     <scope>provided</scope> 
    </dependency> 

    <dependency> 
     <groupId>com.mulesoft.muleesb</groupId> 
     <artifactId>mule-core-ee</artifactId> 
     <version>${mule.version}</version> 
     <scope>provided</scope> 
    </dependency> 
+0

我不認爲我的應用程序中實際上有什麼依賴於EE的東西,但它是以某種方式自動計算的?SIDENOTE:我希望我們很快就會獲得EE許可,將開始試驗EE功能。' – GarySharpe 2013-05-01 23:26:34

+0

由於我沒有輸入EE許可證,構建失敗了嗎?如果是這樣的話,我認爲我正在使用有效的評估許可證... – GarySharpe 2013-05-01 23:32:25

+0

沒有構建失敗因爲項目POM中的依賴依賴於EE回購。你依賴任何EE連接器嗎?你能分享你的POM嗎? – 2013-05-01 23:44:03

1

我相信你的問題是我一直有同樣的問題,就是這樣http://dev.ee.mulesource.com/實在是太慢了。

它看起來像你想下載神器在你構建第一次,有時騾網站可能需要一段時間,因此,您的錯誤信息Connection timed out: connect

0

有關於這個話題here

在我的情況下商量好了,刪除以下依存關係作出的絕招:

  • 騾子模塊啓動-EE
  • 騾子核-EE
  • 騾模塊 - 彈簧 - 配置-EE

那些是適用於企業VERS離子。如果您有企業版,並且出於某種原因需要它們作爲依賴關係,那麼您首先需要運行Enterprise版附帶的腳本populate_m2_repo.groovy。

4

我使用了Mule Studio 3.5.0並且遇到了同樣的問題。

默認情況下,Mule Studio只有EE運行時,所有教程在創建新項目時顯示EE運行時。所以,我需要幾個小時尋找這一解決方案

  1. [幫助] - > [安裝新軟件]
  2. 選擇[共事] 「騾子ESB運行的工作室 - http://studio.mulesoft.org/runtimes/
  3. 選擇「騾子ESB Server Runtime 3.4.0 CE「
  4. 然後,當您使用Maven創建一個新的Mule項目時,您可以看到」Mule Server 3.4。0 CE運行系統」

然後,pom.xml中不包含任何EE依賴