[
https://jira.codehaus.org/browse/MSCMPUB-4?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311910#comment-311910
]
Anthony Whitford edited comment on MSCMPUB-4 at 10/21/12 12:57 AM:
-------------------------------------------------------------------
I took a closer look at
[tomcat-foo-artifact|https://github.com/olamy/tomcat-foo-artifact/blob/master/pom.xml],
and made a couple of adjustments to be consistent... But now I am getting
this problem:
{noformat}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm
(default-cli) on project lombok-maven: Failed to checkin files: The git-commit
command failed. warning: CRLF will be replaced by LF in checkstyle.rss.
[ERROR] The file will have its original line endings in your working directory.
[ERROR] warning: CRLF will be replaced by LF in
lombok-maven-plugin/checkstyle.rss.
[ERROR] The file will have its original line endings in your working directory.
[ERROR] warning: CRLF will be replaced by LF in
test-maven-lombok/checkstyle.rss.
[ERROR] The file will have its original line endings in your working directory.
[ERROR] -> [Help 1]
{noformat}
Note that I am no longer using the {{tryUpdate}} feature (which I would think
would be more efficient).
(?) Are these _real_ errors? Or are the warnings being incorrectly translated
as an error?
was (Author: awhitford):
I took a closer look at
[tomcat-foo-artifact|https://github.com/olamy/tomcat-foo-artifact/blob/master/pom.xml],
and made a couple of adjustments to be consistent... But now I am getting
this problem:
{noformat}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm
(default-cli) on project lombok-maven: Failed to checkin files: The git-commit
command failed. warning: CRLF will be replaced by LF in checkstyle.rss.
[ERROR] The file will have its original line endings in your working directory.
[ERROR] warning: CRLF will be replaced by LF in
lombok-maven-plugin/checkstyle.rss.
[ERROR] The file will have its original line endings in your working directory.
[ERROR] warning: CRLF will be replaced by LF in
test-maven-lombok/checkstyle.rss.
[ERROR] The file will have its original line endings in your working directory.
[ERROR] -> [Help 1]
{noformat}
Note that I am no longer using the {{tryUpdate}} feature (which I would think
would be more efficient).
(?) Are these _real_ errors? Or are the warnings be incorrectly translated as
an error?
> Need a working example for GitHub/gh-pages, preferably naturally linked to
> natural site lifecycle, and multi-module
> -------------------------------------------------------------------------------------------------------------------
>
> Key: MSCMPUB-4
> URL: https://jira.codehaus.org/browse/MSCMPUB-4
> Project: maven-scm-publish-plugin
> Issue Type: Story
> Environment: Mac OSX 10.8.2, Java 1.6 Update 35, Maven 3.0.4, Maven
> Site Plugin 3.2, Maven SCM Plugin 1.8, Git
> Reporter: Anthony Whitford
> Priority: Critical
>
> I am trying to update my
> [lombok-maven-plugin|http://awhitford.github.com/lombok.maven/lombok-maven-plugin/index.html]
> project to use this plugin to publish the project to _Github Pages_.
> When I try this command:
> {noformat}
> mvn clean site site:stage-deploy scm-publish:publish-scm
> {noformat}
> which is outlined
> [here|http://maven.apache.org/plugins/maven-scm-publish-plugin/examples/multi-module-configuration.html],
> I get this error:
> {noformat}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm
> (default-cli) on project lombok-maven: Unable to checkout from SCM
> [ERROR] Provider message:
> [ERROR] The git-log command failed.
> [ERROR] Command output:
> [ERROR] fatal: ambiguous argument 'master': unknown revision or path not in
> the working tree.
> [ERROR] Use '--' to separate paths from revisions
> {noformat}
> (?) Is there a multi-module project in GitHub that uses this plugin that I
> can use as an example?
> This is what I did so far...
> {code:xml}
> <properties>
> <siteMainDirectory>${user.home}/Sites/lombok.maven</siteMainDirectory>
>
> <scmPubCheckoutDirectory>${user.home}/site-content-scm/lombok.maven</scmPubCheckoutDirectory>
> </properties>
> ...
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-site-plugin</artifactId>
> <version>3.2</version>
> <configuration>
> <skipDeploy>true</skipDeploy>
> <stagingSiteURL>file://${siteMainDirectory}</stagingSiteURL>
> </configuration>
> </plugin>
> ...
> </plugins>
> </pluginManagement>
> ...
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-site-plugin</artifactId>
> <executions>
> <execution>
> <id>stage-for-scm-publish</id>
> <phase>post-site</phase>
> <goals>
> <goal>stage</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-scm-publish-plugin</artifactId>
> <version>1.0-beta-1</version>
> <configuration>
> <checkoutDirectory>${scmPubCheckoutDirectory}</checkoutDirectory>
> <content>\${siteMainDirectory}</content>
> <tryUpdate>true</tryUpdate>
> <scmBranch>gh-pages</scmBranch>
>
> <pubScmUrl>scm:git:[email protected]:awhitford/lombok.maven.git</pubScmUrl>
> </configuration>
> <executions>
> <execution>
> <id>scm-publish</id>
> <phase>site-deploy</phase>
> <goals>
> <goal>publish-scm</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> {code}
> Finally, I'm really interested in wiring this up so that when I do a normal
> {{site-deploy}} or an implicit one through the release process, it gets
> published to {{gh-pages}} -- just like I had working with
> [wagon-gitsite|https://github.com/awhitford/wagon-gitsite].
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira