Maven Package Repository is showing: 404 page not found #50369
Replies: 4 comments 1 reply
-
The 404 page not found error indicates that the Maven package repository URL specified in your pom.xml file is incorrect or unavailable. There could be several reasons why this is happening. One possible reason is that you do not have the necessary authentication credentials to access the package repository. GitHub's Maven package repository requires authentication for both read and write access. To authenticate, you can configure your Maven settings.xml file with your GitHub username and an access token with the appropriate permissions. To do this, you can follow the steps below:
After configuring your Maven settings.xml file with the appropriate authentication credentials, try deploying your package again and see if the issue is resolved. |
Beta Was this translation helpful? Give feedback.
-
I have configured my setting.xml file with my GitHub username and an access token that has the necessary permissions, as mentioned earlier. However, I am unsure why authentication is required for the Maven repository at deployment. If someone could share what their Maven repository looks like after publishing a package to GitHub, it would be greatly appreciated. On the other hand, this may be an issue with the Maven package repository, but I am not certain. Regardless, I would like to understand why the page is displaying a 404 error even though my settings.xml file is authenticated with GitHub. To set up my settings.xml file, I followed this documentation Authenticating to GitHub Packages to set up my Additionally, here is the code for my pom.xml file: <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemalocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.android</groupId>
<artifactId>androidlibrary</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Roseline-Bassey Apache Maven Packages</name>
<url>https://maven.pkg.github.com/Roseline-Bassey/androidlibrary</url>
</repository>
</distributionManagement>
<scm>
<connection>scm:git:git://github.com/Roseline-Bassey/androidlibrary.git</connection>
<developerConnection>scm:git:https://github.com/Roseline-Bassey/androidlibrary.git
</developerConnection>
<url>https://github.com/Roseline-Bassey/androidlibrary</url>
<tag>androidlibrary</tag>
</scm>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<!-- see http://jira.codehaus.org/browse/MNG-5346 -->
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.8.7</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>
</plugins>
</build>
</project> |
Beta Was this translation helpful? Give feedback.
-
After publishing a package to GitHub Packages, I'm able to see the package in the Packages section of my GitHub repository. Does this mean that the package was successfully deployed to this URL: (https://maven.pkg.github.com/Roseline-Bassey/androidlibrary)? I think my question is, what is the job of this repository provided by GitHub -(https://maven.pkg.github.com/OWNER/REPO) ? What should be shown in this URL (https://maven.pkg.github.com/Roseline-Bassey/androidlibrary) instead of the 404 error page? I'm kinda curious to know. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I successfully created a package for an android library project I'm working on. I'm using Circleci for the build process and so far, the package build and test jobs have been successful on Circleci. However, during deployment, there is an issue with transferring metadata to the URL(https://maven.pkg.github.com/Roseline-Bassey/androidlibrary) as specified in my pom.xml file resulting in a failed deployment.
For deployment, I used the command
- run:
command: |
mvn clean deploy
Is there a reason why the URL (https://maven.pkg.github.com/Roseline-Bassey/androidlibrary) is showing:
404 page not found
?Error message from Circleci
[WARNING] Could not transfer metadata org.android:androidlibrary:1.0-SNAPSHOT/maven-metadata.xml from/to github (https://maven.pkg.github.com/Roseline-Bassey/androidlibrary): status code: 401, reason phrase: Unauthorized (401)
Beta Was this translation helpful? Give feedback.
All reactions