try a dav url such
<url>dav:http(s)://my.webdav.server/</url>

On 27 February 2018 at 21:52, Svensson, Lars <l.svens...@dnb.de> wrote:

> On Tuesday, February 27, 2018 12:34 PM, Olivier Lamy [mailto:
> ol...@apache.org] wrote:
>
> > On 27 February 2018 at 21:29, Svensson, Lars <l.svens...@dnb.de> wrote:
> >
> > > Hi Olivier and thanks for your quick reply!
> > >
> > > On Tuesday, February 27, 2018 11:54 AM, Olivier Lamy [mailto:
> > > ol...@apache.org] wrote:
> > >
> > > > webdav is not a plugin but a protocol supported by wagon
> > > > you're right using extension tag
> > > > If you want to deploy your artifacts just configure
> > > distributionManagement
> > > > to use dav protocol: <url>dav:https://thewebdavurl/</url>
> > > > Otherwise have a look at this plugin:
> > > > http://www.mojohaus.org/wagon-maven-plugin/usage.html (which I
> think you
> > > > want to achieve)
> > >
> > > distributionManagement is not quite what I need since my use case is to
> > > copy some generated files to a remote location.
> > >
> > > I had been looking at the wagon-maven-plugin but didn't get it to work
> > > since the jars are not available.
> > >
> > > Now my pom looks like this (as specified in [1]):
> > >
> > > <project>
> > >   <build>
> > >     <extensions>
> > >       <extension>
> > >         <groupId>org.apache.maven.wagon</groupId>
> > >         <artifactId>wagon-webdav</artifactId>
> > >         <version>2.8</version>
> > >       </extension>
> > >     </extensions>
> > >
> >
> >
> > change to <artifactId>wagon-webdav-jackrabbit</artifactId>
>
> OK. It loads the jar but brings us back where we started:
>
> [ERROR] Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.0:upload
> (default-cli) on project rdf: The parameters 'url' for goal
> org.codehaus.mojo:wagon-maven-plugin:1.0:upload are missing or invalid ->
> [Help 1]
>
> > >     <plugins>
> > >       <plugin>
> > >         <groupId>org.codehaus.mojo</groupId>
> > >         <artifactId>wagon-maven-plugin</artifactId>
> > >          <version>1.0</version>
> > >          <executions>
> > >            <execution>
> > >              <id> upload-artefacts-to-webdav</id>
> > >              <phase>deploy</phase>
> > >              <configuration>
> > >                <fromDir> target/path/to/files</fromDir>
> > >                <includes>*</includes>
> > >                <url>dav://my.webdav.server/</url>
> > >                <toDir>standards</toDir>
> > >              </configuration>
> > >              <goals>
> > >                <goal>upload</goal>
> > >              </goals>
> > >            </execution>
> > >          </executions>
> > >        </plugin>
> > >      </plugins>
> > >   </build>
> > > </project>
>
> /Lars
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>



-- 
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy

Reply via email to