Skip to content

Manorrock Persian - a Maven repository server

License

Notifications You must be signed in to change notification settings

manorrock/persian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Manorrock Persian

build

This project delivers you with a Maven repository server.

Running using the container image from GHCR

In an EMPTY directory of your choice use the following command line to start Manorrock Persian:

  docker run --rm -d -it -p 8080:8080 -v $PWD:/mnt ghcr.io/manorrock/persian

Verify the server is up and running

Create a settings.xml file with the content from the snippet below, or rename the settings.xml.template in the root directory of this project to settings.xml and make adjustments if necessary:

<?xml version="1.0" encoding="UTF-8"?>

<settings 
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" 
    xmlns="http://maven.apache.org/SETTINGS/1.1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <profiles>
        <profile>
            <id>default</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
                <repository>
                    <id>localhost</id>
                    <name>localhost</name>
                    <releases>
                        <enabled>true</enabled>
                        <updatePolicy>always</updatePolicy>
                        <checksumPolicy>ignore</checksumPolicy>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                        <updatePolicy>always</updatePolicy>
                        <checksumPolicy>ignore</checksumPolicy>
                    </snapshots>
                    <url>http://localhost:8080/repositories/myrepo</url>
                    <layout>default</layout>
                </repository>
            </repositories>
        </profile>
    </profiles>
</settings>

Now pick any Maven project and execute the command below to upload the artifacts:

mvn deploy -DaltDeploymentRepository=default::default::http://localhost:8080/repositories/myrepo

You should see output similar to what you see below:

Uploaded to default: http://localhost:8080/repositories/myrepo/com/manorrock/persian/persian/maven-metadata.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

Congratulations you are now running Manorrock Persian!

More information about deploying to a Maven repository

See Deploy at the Maven: The Complete Reference. Or have a look at the deploy:deploy goal of the Maven Deploy plugin.

How do I contribute?

See Contributing

Our code of Conduct

See Code of Conduct

Important notice

Note if you file issues or answer questions on the issue tracker and/or issue pull requests you agree that those contributions will be owned by Manorrock.com and that Manorrock.com can use those contributions in any manner Manorrock.com so desires.