2016-11-06 47 views
0

我學習Arquillianthis guide一點點有以下一小段代碼片段:什麼意思<version>#{site.components ['arquillian-core']。latest_version}</version> in Maven?

<dependencyManagement> 
    <dependencies> 
     <dependency> 
      <groupId>org.jboss.arquillian</groupId> 
      <artifactId>arquillian-bom</artifactId> 
      <version>#{site.components['arquillian-core'].latest_version}</version> 
      <scope>import</scope> 
      <type>pom</type> 
     </dependency> 
    </dependencies> 
</dependencyManagement> 

,但我不知道如何解釋這種依賴性,尤其是<version>線,任何人都可以提供一些線索就此事?我的問題是:EL表達式的版本是什麼?什麼是bom包? (我讀過它代表材料的構建,但我不知道它是什麼)。

在此先感謝您的答案。

回答

1

其他被卡住的人應該檢查the solution provided by the dev in response to the OP here.

TL; DR:這是教程中的錯誤,版本應該是:

<version>1.1.11.Final</version> 
+0

感謝您填寫此問題。事實上,我在Jboss開發者論壇上提出了這個問題,它在文檔生成中變成了一個錯誤。感謝你的寶貴時間。 –