github / maven-plugins

Official GitHub Maven Plugins
MIT License
587 stars 197 forks source link

Can't do initial commit #61

Open doriancransac opened 10 years ago

doriancransac commented 10 years ago

Hi,

I'm trying to commit my project into an empty github repository. I'm getting the following error and can't figure out how to initialize my project. Any suggestion?

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [WARNING] [WARNING] Some problems were encountered while building the effective settings [WARNING] Unrecognised tag: 'repositoryName' (position: START_TAG seen ...\n\t... @15:18) @ C:\Users\Nairod.m2\settings.xml, line 15, column 18 [WARNING] [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for suva:rtm:war:0.1 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 53, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 57, column 12 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building Response Time Manager 0.1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-site-plugin:3.0:site (default-site) @ rtm --- [WARNING] Report plugin org.apache.maven.plugins:maven-project-info-reports-plugin has an empty version. [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.7 [WARNING] No project URL defined - decoration links will not be relativized! [INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin. [INFO] Generating "About" report --- maven-project-info-reports-plugin:2.7 [INFO] Generating "Plugin Management" report --- maven-project-info-reports-plugin:2.7 [INFO] Generating "Distribution Management" report --- maven-project-info-reports-plugin:2.7 [INFO] Generating "Dependency Information" report --- maven-project-info-reports-plugin:2.7 [INFO] Generating "Source Repository" report --- maven-project-info-reports-plugin:2.7 [INFO] Generating "Mailing Lists" report --- maven-project-info-reports-plugin:2.7 [INFO] Generating "Issue Tracking" report --- maven-project-info-reports-plugin:2.7 [INFO] Generating "Continuous Integration" report --- maven-project-info-reports-plugin:2.7 [INFO] Generating "Project Plugins" report --- maven-project-info-reports-plugin:2.7 [INFO] Generating "Project License" report --- maven-project-info-reports-plugin:2.7 [INFO] Generating "Project Team" report --- maven-project-info-reports-plugin:2.7 [INFO] Generating "Project Summary" report --- maven-project-info-reports-plugin:2.7 [INFO] Generating "Dependencies" report --- maven-project-info-reports-plugin:2.7 [INFO] [INFO] --- site-maven-plugin:0.8:site (default) @ rtm --- [INFO] Creating 30 blobs [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.706s [INFO] Finished at: Sun Dec 29 09:56:12 CET 2013 [INFO] Final Memory: 13M/37M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.github:site-maven-plugin:0.8:site (default) on project rtm: Error creating blob: Git Repository is empty. (409) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

doriancransac commented 10 years ago

Here my plugin conf :

        <plugin>
            <groupId>com.github.github</groupId>
            <artifactId>site-maven-plugin</artifactId>
            <version>0.8</version>
            <configuration>
                <message>Creating site for ${project.version}</message>
                <project.url>https://github.com/dcransac/rtm.git</project.url>
                <repositoryName>rtm</repositoryName>
                <repositoryOwner>dcransac</repositoryOwner>
                <github.site.dryRun>true</github.site.dryRun>
            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>site</goal>
                    </goals>
                    <phase>site</phase>
                </execution>
            </executions>
        </plugin>

And my settings.xml :

 <servers>
 <server>
   <id>github</id>
   <username>dcransac</username>
   <password>***********</password>
<repositoryName>rtm</repositoryName>
<repositoryOwner>dcransac</repositoryOwner>
 </server>

cescoffier commented 10 years ago

Could you try with the latest release.

On 29 déc. 2013, at 09:59, dcransac notifications@github.com wrote:

Here my plugin conf :

    <plugin>
        <groupId>com.github.github</groupId>
        <artifactId>site-maven-plugin</artifactId>
        <version>0.8</version>
        <configuration>
            <message>Creating site for ${project.version}</message>
            <project.url>https://github.com/dcransac/rtm.git</project.url>
            <repositoryName>rtm</repositoryName>
            <repositoryOwner>dcransac</repositoryOwner>
            <github.site.dryRun>true</github.site.dryRun>
        </configuration>
        <executions>
            <execution>
                <goals>
                    <goal>site</goal>
                </goals>
                <phase>site</phase>
            </execution>
        </executions>
    </plugin>

And my settings.xml :

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

github dcransac


rtm dcransac

— Reply to this email directly or view it on GitHub.

InfernoZeus commented 10 years ago

I've just tried with 0.9 and I get the same issue. This is with a completely uninitialized repo.

Creating a Readme.md via the web interface was enough to fix the problem.