Hello,
I'm looking for the best way of deploying a single file to some
predefined location (at a webdav enabled server).
First, I've tried to use maven-deploy-plugin. It required some effort to
get rid of variable components of the resulting path, but finally I
managed to do it.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<id>deploy-metadata</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<file>${project.reporting.outputDirectory}/${metadataDir}/${pom.artifactId}-${pom.version}-metadata.dir/latestStableVersion.xml</file>
<groupId>${pom.groupId}</groupId> <!-- I'd
wish to have it empty, but it's not allowed -->
<artifactId>latestStableVersion</artifactId>
<packaging>xml</packaging>
<version>download</version>
<repositoryId>metadata-rep</repositoryId>
<url>dav:${metadataServer}/${project.artifactId}</url>
<uniqueVersion>false</uniqueVersion>
</configuration>
</execution>
</executions>
</plugin>
But I'm still not happy with the solution. This is because of the
impossibility to avoid generating unnecessary folder structure
(/.../latestStableVersion/download/latestStableVersion-download.xml). I
would like to have it flat, without using tricks. Any ideas on how to do
it? Is there any direct access to webdav-wagon functionality?
Cheers,
Lucas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]