For some reason the build extension for Maven site deployment no longer works 
with latests Maven and site plugins. I found that the best way to configure it 
is to add the webdav support as a dependency to the site plugin. And have not 
yet been able to trace down where the problem lies.. 

I have documented this on the book and pushed it live now. 

http://books.sonatype.com/nexus-book/reference/_configuring_maven_for_site_deployment.html

Hope that helps.

manfred

DJViking wrote on 08.10.2014 04:11:

> Trying to also use http with Nexus site deployment didn't work.
> 
> [INFO] --- maven-site-plugin:3.4:deploy (default-deploy) @ MyApp ---
> http://maven-vm1:8081/nexus/content/sites/site/MyApp/ - Session: Opened  
> [INFO] Pushing /home/sverre/workspace/MyApp-R11/target/site
> [INFO]    >>> to http://maven-vm1:8081/nexus/content/sites/site/MyApp/./
> Uploading: .//source-repository.html to
> http://maven-vm1:8081/nexus/content/sites/site/MyApp/
> 
> ##http://maven-vm1:8081/nexus/content/sites/site/MyApp/./source-repository.html
> - Status code: 404
> http://maven-vm1:8081/nexus/content/sites/site/MyApp/ - Session:
> Disconnecting  
> http://maven-vm1:8081/nexus/content/sites/site/MyApp/ - Session:
> Disconnected
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 03:20 min
> [INFO] Finished at: 2014-10-08T13:03:21+01:00
> [INFO] Final Memory: 90M/2309M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-site-plugin:3.4:deploy (default-deploy) on
> project MyApp: Error uploading site: File:
> http://maven-vm1:8081/nexus/content/sites/site/MyApp/./source-repository.html
> does not exist -> [Help 1]
> [ERROR] 
> 
> I didn't have anything under Nexus sites before this.
> 
> 
> http://books.sonatype.com/nexus-book/reference/_configuring_maven_for_site_deployment.html
> <http://books.sonatype.com/nexus-book/reference/_configuring_maven_for_site_deployment.html>
>  
> 
> 
>        <site>
>            <id>deployment</id>
>            <name>Sites</name>
>           
> <url>dav:http://meta-vm1:8081/nexus/content/sites/site/${project.artifactId}/${project.version}</url>
>        </site>
> 
> Added the following build extension:
>            <extension>
>                <groupId>org.apache.maven.wagon</groupId>
>                <artifactId>wagon-webdav-jackrabbit</artifactId>
>                <version>2.7</version>
>            </extension>
> 
> Anyhow: I'm not sure, but could this be a problem with Nexus and not Maven?
> 
> 
> 
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/maven-deploy-artifacts-to-Nexus-repository-tp5751512p5808068.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to