我正在使用maven-assembly-plugin來構建程序集。在我的maven程序集中包含來自另一個subversion版本庫的文件
我想在程序集中包含來自另一個Subversion存儲庫的文件。
怎麼樣?是否有另一個插件可以進行顛覆導出? http://svn_server_name/svn_repo/project:
我正在使用maven-assembly-plugin來構建程序集。在我的maven程序集中包含來自另一個subversion版本庫的文件
我想在程序集中包含來自另一個Subversion存儲庫的文件。
怎麼樣?是否有另一個插件可以進行顛覆導出? http://svn_server_name/svn_repo/project:
<plugin>
<artifactId>maven-scm-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>get-assembly-files</id>
<phase>prepare-package</phase>
<goals>
<goal>export</goal>
</goals>
<configuration>
<connectionUrl>scm:svn:http://foo/bar/baz.txt</connectionUrl>
<exportDirectory>${project.build.directory}</exportDirectory>
</configuration>
</execution>
</executions>
</plugin>
它可以通過設置顛覆財產svn:externals
svn propset svn:externals "[local name] [external location]" .
其中[外部位置]在另一個倉庫的情況下,會像完成。 或者如果您必須設置幾個外部參數,您可以使用帶有「[本地名稱] [外部位置]」對(每對在新行上)的文件。
svn propset svn:externals -F <file_with_externals_list> .
然後,你必須申請更改:
svn commit -m "Changed external property"
和更新本地副本;從外部路徑的文件將在this
是可以下載到[LOCAL_NAME]
看看,這就是我想要的。 – 2010-09-14 15:49:24