鑑於以下依賴列入一個Maven的組裝XML ...Maven的大會包括過濾
<dependencySet>
<includes>
<include>com.company.product:library:jar:*:*</include>
</includes>
...爲什麼上面的過濾器不包括庫:罐子不具有分類?
[INFO] Reading assembly descriptor: assembly/release.xml
[WARNING] The following patterns were never triggered in this artifact inclusion filter:
o 'com.company.product:library:jar:*:*'
原因在我的模式的附加通配符的是,我也有我的構建與分類「QA」所有庫的配置文件。當我激活該配置文件時,一切正常,但在默認配置文件(構建不帶分類器的庫)下失敗。
如果我的過濾器更改爲:
<include>com.company.product:library*</include>
然後Maven構建居然失敗,此錯誤:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-
plugin:2.3:single (make-assembly) on project java-package: Failed to create
assembly: Error adding file 'com.company.product:library:jar:1.0.0-SNAPSHOT'
to archive: C:\Subversion\JavaProj\library\target\classes isn't a file. -> [Help 1]
有人能提出一個模式,其中將包括罐有或沒有一分類?
我曾試圖過濾器上面還 - 它應該工作,但我得到了同樣的錯誤,它似乎無法匹配與分類罐子。感謝組件描述符的建議,但我會研究它。 – RCross