Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make osti-elink jar available for public download on Maven #10

Open
vchendrix opened this issue Jan 22, 2025 · 2 comments
Open

Make osti-elink jar available for public download on Maven #10

vchendrix opened this issue Jan 22, 2025 · 2 comments

Comments

@vchendrix
Copy link

Please make the osti-elink jar available for public download from the following Maven repository:

https://maven.pkg.github.com/NCEAS/osti-elink/edu/ucsb/nceas/osti-elink/2.0.0/osti-elink-2.0.0.jar

This will help in easier integration and accessibility for users who need to include this library in their projects.

Steps to make the jar publicly available:

  1. Ensure that the repository NCEAS/osti-elink is configured to upload packages to GitHub Packages.
  2. Navigate to the repository settings and go to the Packages section.
  3. Check the permissions to ensure that the package is set to be publicly accessible.
  4. Follow the instructions in the GitHub documentation to publish the jar file to the Maven repository.

While the jar file can be downloaded from the UI on the package page, there is no way to build this into a script, making it less convenient for automated builds and deployments.

Thank you!

@taojing2002
Copy link
Contributor

I configured Metacat pom.xml file to download the library successfully:

<repository>
            <id>github</id>
            <url>https://maven.pkg.github.com/NCEAS/osti-elink</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
</repository>
<dependency>
            <groupId>edu.ucsb.nceas</groupId>
            <artifactId>osti-elink</artifactId>
            <version>2.0.0</version>
</dependency>

So I believe this jar file is publicly accessible since the pom.xml doesn't have any credentials. I am wondering if the url you posted above is a valid or not. I haven't figured out the direct url to download the jar file.

@mbjones
Copy link
Member

mbjones commented Feb 6, 2025

After you download it from the maven repo via your POM reference, you should have a copy of the jar file and all of its metadata in your .m2 directory. I'll bet a reference to the full URL is in that metadata somewhere in .m2

Matt

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

No branches or pull requests

3 participants