2010-09-14 39 views

回答

8
 <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> 
+0

是可以下載到[LOCAL_NAME]

svn update 

看看,這就是我想要的。 – 2010-09-14 15:49:24

1

它可以通過設置顛覆財產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

相關問題