[ https://jira.codehaus.org/browse/MSCMPUB-4?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=340388#comment-340388 ]
Anthony Whitford commented on MSCMPUB-4: ---------------------------------------- For the *Maven Multi Module Configuration* advice, it mentions this command: {noformat} mvn -Preporting site site:stage {noformat} Is the {{reporting}} profile necessary? (Because it doesn't seem to exist.) I am able to stage the site just fine, but the next step: {noformat} mvn scm-publish:publish-scm {noformat} is failing for me with: {noformat} [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT:publish-scm (default-cli) on project lombok-maven: Execution default-cli of goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT: publish-scm failed: The scm url cannot be null. -> [Help 1] {noformat} The root issue seems to be here: {noformat} Caused by: java.lang.NullPointerException: The scm url cannot be null. at org.apache.maven.scm.manager.AbstractScmManager.makeScmRepository(AbstractScmManager.java:195) at org.apache.maven.shared.release.scm.DefaultScmRepositoryConfigurator.getConfiguredRepository(DefaultScmRepositoryConfigurator.java:78) at org.apache.maven.shared.release.scm.DefaultScmRepositoryConfigurator.getConfiguredRepository(DefaultScmRepositoryConfigurator.java:67) {noformat} And the debug information for the plugin is: {noformat} [DEBUG] Configuring mojo org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT:publish-scm from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT, parent: sun.misc.Launcher$AppClassLoader@713c817] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT:publish-scm' with basic configurator --> [DEBUG] (f) automaticRemotePathCreation = true [DEBUG] (f) basedir = /Users/anthony/Documents/lombok.maven [DEBUG] (f) checkinComment = Site checkin for project Maven Plugin for Project Lombok [DEBUG] (f) checkoutDirectory = /Users/anthony/Documents/lombok.maven/target/scmpublish-checkout [DEBUG] (f) content = /Users/anthony/Documents/lombok.maven/target/staging [DEBUG] (f) localCheckout = false [DEBUG] (s) pubScmUrl = scm:git:g...@github.com:awhitford/lombok.maven.git [DEBUG] (f) scmBranch = gh-pages [DEBUG] (f) siteOutputEncoding = UTF-8 [DEBUG] (f) skipDeletedFiles = false [DEBUG] (f) tryUpdate = false [DEBUG] (f) project = MavenProject: org.projectlombok:lombok-maven:1.12.4.0-SNAPSHOT @ /Users/anthony/Documents/lombok.maven/pom.xml [DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@dcd88ea [DEBUG] -- end configuration -- {noformat} _Am I doing something wrong?_ > 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:g...@github.com: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 was sent by Atlassian JIRA (v6.1.6#6162)