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

Module build error. #15

Closed
wenerme opened this issue Feb 12, 2015 · 3 comments
Closed

Module build error. #15

wenerme opened this issue Feb 12, 2015 · 3 comments

Comments

@wenerme
Copy link

wenerme commented Feb 12, 2015

this build ok

https://jitpack.io/com/github/NanoHttpd/nanohttpd/Release-2.1.0/build.log

require url format is

Expecting: /com/github/user/repo[/module]/version/repo-version.pom

But in pom, the coordinate is

<groupId>fi.iki.elonen</groupId>
    <artifactId>nanohttpd-project</artifactId>
    <version>2.1.0</version>
    <packaging>pom</packaging>

So, how can I get the pom with jitpack way ?

I can not open this url

https://jitpack.io/com/github/NanoHttpd/core/nanohttpd/Release-2.1.0/nanohttpd-Release-2.1.0.pom

even if I can , then how to put the core module in dependency ?

<dependency>
            <groupId>com.github.NanoHttpd</groupId>
            <artifactId>nanohttpd</artifactId>
            <version>Release-2.1.0</version>
        </dependency>

Where to tell jitpack I need core ?

@wenerme
Copy link
Author

wenerme commented Feb 12, 2015

https://jitpack.io/#NanoHttpd/nanohttpd/ show build error, but why ? no error in build.log
Home page do not show a way to use module in a repo.

@wenerme wenerme changed the title Please give and module example Module build error. Feb 12, 2015
@jitpack
Copy link
Collaborator

jitpack commented Feb 12, 2015

Hi

It looks like you have a multi module build. Yes, you need to tell that you want the core module and the artifactId of the core module is 'nanohttpd' (pom.xml).

The resulting artifactId should be Repo.Module. So this works:

      <dependency>
            <groupId>com.github.NanoHttpd</groupId>
            <artifactId>nanohttpd.nanohttpd</artifactId>
            <version>Release-2.1.0</version>
        </dependency>

See also https://github.com/jitpack/jitpack.io/blob/master/BUILDING.md#multi-module-projects

Hope that works for you. If not please get in touch and thanks for reporting!

@jitpack
Copy link
Collaborator

jitpack commented Feb 13, 2015

Closing for now. If it still happens feel free to reopen

@jitpack jitpack closed this as completed Feb 13, 2015
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

1 participant