views:

37

answers:

2

I am using maven-assembly-plugin to construct an assembly.

I want to include in the assembly a file from another Subversion repository.

How? Is there another plugin that will do a subversion export?

+1  A: 

It can be done by setting subversion property svn:externals

svn propset svn:externals "[local name] [external location]" .

where [external location] in case of another repository will look like: http://svn_server_name/svn_repo/project. Or you may use a file with "[local name] [external location]" pairs (with each pair on a new line) if you have to set several externals.

svn propset svn:externals -F <file_with_externals_list> .

Then, you have to apply changes:

svn commit -m "Changed external property"

and update local copy; the files from external path will be downloaded to [local_name]

svn update

Take a look at this

Pmod
+2  A: 
      <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&lt;/connectionUrl&gt;
                        <exportDirectory>${project.build.directory}</exportDirectory>
                    </configuration>
                </execution>
            </executions>
        </plugin>
Farid
yes, this is what I wanted.
Paul McKenzie