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

Multi-module project doesn't work when parent isn't in repo #37

Open
Randgalt opened this issue May 28, 2015 · 9 comments
Open

Multi-module project doesn't work when parent isn't in repo #37

Randgalt opened this issue May 28, 2015 · 9 comments
Assignees

Comments

@Randgalt
Copy link
Contributor

NOTE: I've only tried this with groovy

I have a standard multi module project ala:

src
pom.groovy
module1
             src
             pom.groovy
module2
            src
            pom.groovy

Performing "mvn compile" from the root produces: "[FATAL] Non-resolvable parent POM for..."

However, if I then do: "mvn -N install" from the root and then do "mvn compile" it works fine.

@Randgalt
Copy link
Contributor Author

FYI - adding:

relativePath '../pom.groovy'

To the parent section fixes the problem

@jvanzyl
Copy link
Contributor

jvanzyl commented May 29, 2015

Yah, that's still a bug. It's not being defaulted correctly.

@Randgalt
Copy link
Contributor Author

Any timeframe for a fix or is there a workaround? It's a hard stop for me right now.

Edit: I should say that I'm using the translator to build the groovy files which is why I can't just add the relativePath

@jvanzyl
Copy link
Contributor

jvanzyl commented May 29, 2015

I can definitely look at it on Monday. Can you work around in the project you're working on adding the relativePath manually, or change the translator to output it?

@Randgalt
Copy link
Contributor Author

I'll look at having the translator do it.

@Randgalt
Copy link
Contributor Author

Hmm - this is hard to do. The mvn runtime seems to be using an embedded reference to TeslaModelTranslator. My changes aren't getting used.

@jvanzyl
Copy link
Contributor

jvanzyl commented May 29, 2015

I can take a look at anything you have tonight.

@szantopeter
Copy link
Contributor

szantopeter commented Jan 11, 2017

@jvanzyl @Randgalt Have you had any chance to look into this? I am still facing the issue with a multi module groovy project. You can find the project here (also the build logs in travis)

https://github.com/ExampleDriven/maven-polyglot-groovy-example

Adding relativePath did not help.

Note : This happens with groovy and scala build scripts as well

szantopeter added a commit to ExampleDriven/maven-polyglot-groovy-example that referenced this issue Jan 11, 2017
@szantopeter
Copy link
Contributor

This is a showstopper bug, as a new multi module project can't be compiled @jvanzyl @Randgalt Have you had any luck with this?

@jvanzyl jvanzyl self-assigned this Oct 20, 2021
headius added a commit to headius/polyglot-maven that referenced this issue Aug 3, 2023
This is part of work to update the entire JRuby/Maven stack, in
order to update the version of JRuby used and to address API
deprecations at rubygems.org.

This PR updates JRuby to latest (9.4.3.0) and moves all plugins
to their new org.jruby.maven group ID with latest versions.

Fixes takari#37.

We will need to coordinate getting this released along with the
maven plugins in the very near term. Because of the rubygems.org
API being shut down next week (the 8th), we are under the gun.

See jruby/mavengem#9, jruby/jruby-maven-plugins#126,
jruby/maven-tools#38 and jruby/jruby#7872.
cstamas added a commit that referenced this issue Aug 25, 2023
This is part of work to update the entire JRuby/Maven stack, in order to update the version of JRuby used and to address API deprecations at rubygems.org.

This PR updates JRuby to latest (9.4.3.0) and moves all plugins to their new org.jruby.maven group ID with latest versions.

Part of the fix for jruby/maven-tools#37. (incorrectly tagged as #37 here before)

We will need to coordinate getting this released along with the maven plugins in the very near term. Because of the rubygems.org API being shut down next week (the 8th), we are under the gun.

See jruby/mavengem#9, jruby/jruby-maven-plugins#126, jruby/maven-tools#38 and jruby/jruby#7872.
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