Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Getting error: Error creating blob: Not Found (404) #146

Open
sgrverma23 opened this issue Jul 26, 2021 · 2 comments
Open

Getting error: Error creating blob: Not Found (404) #146

sgrverma23 opened this issue Jul 26, 2021 · 2 comments

Comments

@sgrverma23
Copy link

Getting below error while using mvn deploy command:

[ERROR] Failed to execute goal com.github.github:site-maven-plugin:0.12:site (default) on project host-maven-repo-example: Error creating blob: Not Found (404) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException:

Below is the pom.xml



4.0.0

<groupId>org.example</groupId>
<artifactId>host-maven-repo-example</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
    <github.global.server>github</github.global.server>
    <maven.compiler.source>8</maven.compiler.source>
    <maven.compiler.target>8</maven.compiler.target>
</properties>

<distributionManagement>
    <repository>
        <id>internal.repo</id>
        <name>Temporary Staging Repository</name>
        <url>file://${project.build.directory}/mvn-artifact</url>
    </repository>
</distributionManagement>
<build>
<plugins>
    <plugin>
        <groupId>com.github.github</groupId>
        <artifactId>site-maven-plugin</artifactId>
        <version>0.12</version>
        <configuration>
            <message>Maven artifacts for ${project.version}</message>
            <noJekyll>true</noJekyll>
            <outputDirectory>${project.build.directory}/mvn-artifact
            </outputDirectory>
            <branch>refs/heads/mvn-artifact</branch>
            <includes>
                <include>**/*</include>
            </includes>
            <repositoryName>host-maven-repo-example</repositoryName>
            <repositoryOwner>sgrverma23</repositoryOwner>
            <server>github</server>
        </configuration>
        <executions>
            <execution>
                <goals>
                    <goal>site</goal>
                </goals>
                <phase>deploy</phase>
            </execution>
        </executions>
    </plugin>
    <plugin>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>2.8.2</version>
        <configuration>
            <altDeploymentRepository>
                internal.repo::default::file://${project.build.directory}/mvn-artifact
            </altDeploymentRepository>
        </configuration>
    </plugin>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>3.1.0</version>
        <executions>
            <execution>
                <id>attach-sources</id>
                <goals>
                    <goal>jar</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
</plugins>
</build>
<repositories>
    <repository>
        <id>PROJECT-NAME-mvn-repo</id>
        <url>https://github.com/sgrverma23/host-maven-repo-example</url>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
        </snapshots>
    </repository>
</repositories>

Kindly suggest if any issue is present here.

@HyperCodec
Copy link

Having this same issue, don't know why it happens.

@GalenRhodes
Copy link

I'm having the same issue. Can't figure it out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants