Giter Site home page Giter Site logo

mvn deploy issue about reposilite HOT 4 CLOSED

dzikoysk avatar dzikoysk commented on September 2, 2024
mvn deploy issue

from reposilite.

Comments (4)

pawelantczak avatar pawelantczak commented on September 2, 2024 1

Thanks.

from reposilite.

dzikoysk avatar dzikoysk commented on September 2, 2024

By default, NanoMaven removes repository name from urls. For example:

Artifact:

<dependency>
    <groupId>org.panda-lang</groupId>
    <artifactId>nanomaven</artifactId>
    <version>1.0.6</version>
</dependency>

Distribution:

<distributionManagement>
    <repository>
        <id>panda-repository</id>
        <url>https://repo.panda-lang.org/releases</url> <!-- repositrory name is required -->
    </repository>
</distributionManagement>

But the URL is: https://repo.panda-lang.org/org/panda-lang/nanomaven/1.0.6/nanomaven-1.0.6.jar.
If you'd like to provide repository name in paths, just enable:
https://github.com/dzikoysk/NanoMaven/blob/9ab1da1445a8c1d9030b64196b47cb8fdb41cb59/src/main/resources/nanomaven.pc#L14

from reposilite.

pawelantczak avatar pawelantczak commented on September 2, 2024

Got it.
distributionManagement and repositories should share exactly the same url if repository-path-enabled is true.

But in case of false repository-path-enabled maybe you can scan root dir for artifacts.
URLs will remain consistent also in this case, meaning no additional sub dir for deploy and get.

from reposilite.

dzikoysk avatar dzikoysk commented on September 2, 2024

1.0.7 should work as you want, add this to your configuration:

# Root directories of repositories
repositories:
- ''
- 'releases'
- 'snapshots'

from reposilite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.