[
https://jira.codehaus.org/browse/MSITE-604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jörg Schaible updated MSITE-604:
--------------------------------
Attachment: MSITE-604-it.patch
New MSITE-604-it.patch against svn rev 1630660. IT executed with:
rm -rf target/it
mvn integration-test -Prun-its -Dinvoker.test=MSITE-604
Build fails, extract from build.log:
{noformat}
[INFO] --- maven-site-plugin:3.4.1-SNAPSHOT:deploy (default-cli) @ MSITE-604 ---
[DEBUG] Configuring mojo
org.apache.maven.plugins:maven-site-plugin:3.4.1-SNAPSHOT:deploy from plugin
realm
ClassRealm[plugin>org.apache.maven.plugins:maven-site-plugin:3.4.1-SNAPSHOT,
parent: sun.misc.Launcher$AppClassLoader@2bb0bf9a]
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-site-plugin:3.4.1-SNAPSHOT:deploy' with basic
configurator -->
[DEBUG] (f) chmod = true
[DEBUG] (f) chmodMode = g+w,a+rX
[DEBUG] (f) chmodOptions = -Rf
[DEBUG] (f) inputDirectory =
/home/jos/src/Apache/Maven/Plugins/maven-site-plugin/target/it/MSITE-604/target/site
[DEBUG] (f) inputEncoding = UTF-8
[DEBUG] (f) localRepository = id: local
url:
file:///home/jos/src/Apache/Maven/Plugins/maven-site-plugin/target/local-repo/
layout: default
snapshots: [enabled => true, update => always]
releases: [enabled => true, update => always]
[DEBUG] (f) mavenSession = org.apache.maven.execution.MavenSession@75f3e0c5
[DEBUG] (f) project = MavenProject:
org.apache.maven.plugins.site.its:MSITE-604:1.0-SNAPSHOT @
/home/jos/src/Apache/Maven/Plugins/maven-site-plugin/target/it/MSITE-604/pom.xml
[DEBUG] (f) reactorProjects = [MavenProject:
org.apache.maven.plugins.site.its:MSITE-604:1.0-SNAPSHOT @
/home/jos/src/Apache/Maven/Plugins/maven-site-plugin/target/it/MSITE-604/pom.xml]
[DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@7233d91f
[DEBUG] (f) siteDirectory =
/home/jos/src/Apache/Maven/Plugins/maven-site-plugin/target/it/MSITE-604/src/site
[DEBUG] (f) skipDeploy = false
[DEBUG] -- end configuration --
[DEBUG] Deploying to '${msite604.siteRepository.Root}/settingsRepositoryUrl/',
Using credentials from server id 'settingsId'
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.506 s
[INFO] Finished at: 2014-10-10T13:26:43+02:00
[INFO] Final Memory: 19M/214M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.4.1-SNAPSHOT:deploy (default-cli)
on project MSITE-604: Wagon protocol '' doesn't support directory copying ->
[Help 1]
{noformat}
As you can see, one of the properties of settings.xml has been substituted, the
other one (containing the protocol) has not.
{noformat}
$ mvn -version
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4;
2014-08-11T22:58:10+02:00)
Maven home: /usr/share/maven-bin-3.2
Java version: 1.7.0_67, vendor: Oracle Corporation
Java home: /opt/oracle-jdk-bin-1.7.0.67/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.14.14-gentoo", arch: "amd64", family: "unix"
{noformat}
> Properties from settings.xml are not recognized in site distribution
> management
> --------------------------------------------------------------------------------
>
> Key: MSITE-604
> URL: https://jira.codehaus.org/browse/MSITE-604
> Project: Maven Site Plugin
> Issue Type: Bug
> Components: site:deploy
> Affects Versions: 3.0
> Environment: Apache Maven 2.2.1 and 3.0.3
> Reporter: Marcin Kuthan
> Fix For: backlog
>
> Attachments: MSITE-604-it.patch, MSITE-604-it.patch,
> MSITE-604-maven3-2.patch, MSITE-604-maven3.patch, MSITE-604.tgz
>
>
> My distribution management section looks like:
> {code}
> <distributionManagement>
> <site>
> <id>${acme-corporate-pom.siteRepositoryId}</id>
> <url>${acme-corporate-pom.siteRepositoryUrl}</url>
> </site>
> </distributionManagement>
> {code}
> Where the default property values are defined in the pom:
> {code}
> <properties>
>
> <acme-corporate-pom.siteRepositoryId>acme-site</acme-corporate-pom.siteRepositoryId>
>
> <acme-corporate-pom.siteRepositoryUrl>scp://sites.intranet.acme.com/var/www</acme-corporate-pom.siteRepositoryUrl>
> </properties>
> {code}
> I'm able redefine properties from command line, the provided repository is
> used instead default one:
> {code}
> mvn site:site site:deploy
> -Dacme-corporate-pom.siteRepositoryUrl=scp://somehost/var/www/sites
> -Dacme-corporate-pom.siteRepositoryId=somehost
> {code}
> But when I redefine properties in the profile in {{settings.xml}}, they are
> ignored. The profile is activated in {{<activeProfiles}} element.
> It looks, than only m-site-p ignores properties defined in the
> {{settings.xml}} file. m-deploy-p recognizes properties as I expected
> (distribution management section for articats deployment is configured in
> similar way to site deployment).
> --
> Marcin Kuthan
> Maven For Enterprise - http://code.google.com/p/m4enterprise/
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)