On Tuesday, February 27, 2018 12:55 PM, Olivier Lamy [mailto:ol...@apache.org] wrote:
> try a dav url such > <url>dav:http(s)://my.webdav.server/</url> It already has that syntax <url>dav:http://my.server/</url>. What vexes me is that the plugin claims it cannot find the configuration. If I run mvn -X wagon:upload The console says ... [DEBUG] Goal: org.codehaus.mojo:wagon-maven-plugin:1.0:upload (default-cli) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?> <configuration> <excludes>${wagon.excludes}</excludes> <followSymLink default-value="false">${wagon.followSymLink}</followSymLink> <fromDir default-value="${project.basedir}">${wagon.fromDir}</fromDir> <includes>${wagon.includes}</includes> <optimize default-value="false">${wagon.optimize}</optimize> <project default-value="${project}"/> <serverId default-value="serverId">${wagon.serverId}</serverId> <settings default-value="${settings}"/> <skip default-value="false">${wagon.skip}</skip> <toDir default-value="">${wagon.toDir}</toDir> <url>${wagon.url}</url> <useDefaultExcludes default-value="true">${wagon.useDefaultExcludes}</useDefaultExcludes> </configuration> ... [DEBUG] Configuring mojo org.codehaus.mojo:wagon-maven-plugin:1.0:upload from plugin realm ClassRealm[plugin>org.codehaus.mojo:wagon-maven-plugin:1.0, parent: sun.misc.Launcher$AppClassLoader@55f96302] [DEBUG] Configuring mojo 'org.codehaus.mojo:wagon-maven-plugin:1.0:upload' with basic configurator --> [DEBUG] (f) followSymLink = false [DEBUG] (f) fromDir = /path/to/project/home/not/to/fromDir [DEBUG] (f) optimize = false [DEBUG] (f) project = <projectInfo> [DEBUG] (f) serverId = serverId [DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@5c84624f [DEBUG] (f) skip = false [DEBUG] (f) useDefaultExcludes = true [DEBUG] -- end configuration -- The fromDir used by the configurator obviously is not the one specified in the pom, and also the includes, the url and the toDir are missing: > > > > <configuration> > > > > <fromDir> target/path/to/files</fromDir> > > > > <includes>*</includes> > > > > <url>dav://my.webdav.server/</url> > > > > <toDir>standards</toDir> > > > > </configuration> So it seems that something is seriously wrong with my pom and I cannot figure out what... /Lars > 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