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

Resolve tiles from current reactor #65

Closed
erwint opened this issue Jul 4, 2016 · 16 comments
Closed

Resolve tiles from current reactor #65

erwint opened this issue Jul 4, 2016 · 16 comments

Comments

@erwint
Copy link
Contributor

erwint commented Jul 4, 2016

If a tile is defined in the current reactor and used in one of the modules, it should be resolved directly from the reactor. Otherwise you need to install the tiles in a pre-build step first.

erwint pushed a commit to GEBIT/maven-tiles that referenced this issue Jul 4, 2016
If a tile is defined in the current reactor and used in one of the
modules, it should be resolved directly from the reactor. Otherwise you
need to install the tiles in a pre-build step first.

Change-Id: I3b30874fabc0833de9be21bde7142dbd7dc5dcf5
@erwint
Copy link
Contributor Author

erwint commented Jul 4, 2016

gerrithub sumission added: https://review.gerrithub.io/#/c/282730/

erwint pushed a commit to GEBIT/maven-tiles that referenced this issue Jul 4, 2016
If a tile is defined in the current reactor and used in one of the
modules, it should be resolved directly from the reactor. Otherwise you
need to install the tiles in a pre-build step first.

Change-Id: I3b30874fabc0833de9be21bde7142dbd7dc5dcf5
@rvowles
Copy link
Member

rvowles commented Jul 15, 2016

patch looks good. we really do need some better integration tests to ensure stuff isn't breaking existing things.

I'll pull this change in the weekend and see what happens to our stuff.

@talios
Copy link
Member

talios commented Jul 16, 2016

On 15 Jul 2016, at 12:02, Richard Vowles wrote:

patch looks good. we really do need some better integration tests to ensure stuff isn't breaking existing things.

I'll pull this change in the weekend and see what happens to our stuff.

I've been meaning to get a chance to look at these PR/revs but have been snowed under with work. I did see one of them was to allow defining tiles inside a reactor build. If we land that, when we could setup some multi-module builds using invoker as tests - define a tile and use it in a test.

Altho that might want a tile per test which could be cumbersome, we could just set up a separate repo with a test tile.

Mark Derricutt
http://www.theoryinpractice.net
http://www.chaliceofblood.net
http://plus.google.com/+MarkDerricutt
http://twitter.com/talios
http://facebook.com/mderricutt

@rvowles
Copy link
Member

rvowles commented Jul 17, 2016

Yes, agreed - we really need to get better testing for this, particularly
because 2.8 ostensibly broke something.

On Sat, Jul 16, 2016 at 8:55 PM, Mark Derricutt notifications@github.com
wrote:

On 15 Jul 2016, at 12:02, Richard Vowles wrote:

patch looks good. we really do need some better integration tests to
ensure stuff isn't breaking existing things.

I'll pull this change in the weekend and see what happens to our stuff.

I've been meaning to get a chance to look at these PR/revs but have been
snowed under with work. I did see one of them was to allow defining tiles
inside a reactor build. If we land that, when we could setup some
multi-module builds using invoker as tests - define a tile and use it in a
test.

Altho that might want a tile per test which could be cumbersome, we could
just set up a separate repo with a test tile.

Mark Derricutt
http://www.theoryinpractice.net
http://www.chaliceofblood.net
http://plus.google.com/+MarkDerricutt
http://twitter.com/talios
http://facebook.com/mderricutt


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#65 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADZ2IecgbJh57-9bTlZICeKWF7GkAlcks5qWJx8gaJpZM4JERZP
.


Richard Vowles,
Groovy, Java, Javascript, AngularJS - Contract Software for Hire!

ph: +64275467747, web: www.google.com/+RichardVowles

@ivoleitao
Copy link

I'm also affected by this bug. Any workarounds while it's not solved ?

@rvowles
Copy link
Member

rvowles commented Oct 19, 2016

I merged this fix @ivoleitao and released 2.9

@ivoleitao
Copy link

Hello,

I only recently needed this feature and noticed that the code was not merged. I've forked this and merged the code and I can confirm that it's working perfectly.

I'ts possible to merge this fix and release a new version ?

Many Tnks,
Regards,
Ivo Leitão

@rvowles
Copy link
Member

rvowles commented Mar 26, 2018

You are using 2.10?

@ivoleitao
Copy link

ivoleitao commented Mar 26, 2018

Yes,

I checked the master also and the code is not merged. I've looked at https://review.gerrithub.io/#/c/282730/ most specifically to the method:

protected Artifact resolveTile(MavenSession mavenSession, Artifact tileArtifact) throws MavenExecutionException {

and it's missing code (not only this one but others also). If you compare that method in https://github.com/repaint-io/maven-tiles/blob/master/src/main/groovy/io/repaint/maven/tiles/TilesMavenLifecycleParticipant.groovy with the one from the commit in here c8c44f0 they are different.

Regards,
Ivo Leitão

@talios
Copy link
Member

talios commented Mar 27, 2018

I've merged the two reviews:

and everything seems to be working ok so far on local projects. Have also made some dependency updates ( latest Groovy, gmaven, maven ) and will push that for a review tonight as well, and hopefully get a release out.

@talios talios reopened this Mar 27, 2018
rvowles pushed a commit that referenced this issue Mar 27, 2018
…29418/repaint-io/maven-tiles into feature/to-merge

* ssh://review.gerrithub.io:29418/repaint-io/maven-tiles:
  Resolve tiles from current reactor (Fixes #65)

Change-Id: I454352ee1f8932494d8d29567ab9ecb31b4529c4
@talios
Copy link
Member

talios commented Mar 27, 2018

2.11 now released.

@ivoleitao
Copy link

Hello, I've updated to the new version but unfortunately something has gone terrible wrong since my builds stopped working. I think this must be related with some of the dependency updates. I'm obtaining a rather strange error message:

[ERROR] Unable to load, try another Isolator. org.sonatype.aether.impl.VersionRangeResolver -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException

I cannot build any of my projects that use 2.11 :-(. I've reverted to a internal version that I have generated and which I have merged and everything started work again.

Regards,
Ivo Leitão

@talios
Copy link
Member

talios commented Mar 27, 2018

What version of Maven are you using? I tested against 3.5.1 and the current 3.5.3 releases. Are you using an older 3.3.x or something?

@talios
Copy link
Member

talios commented Mar 27, 2018

You're right - it doesn't work under 3.3.9 anymore.

@ivoleitao
Copy link

Hi,
yes I'm using 3.3.9 version

Regards,

@kemitix
Copy link

kemitix commented Apr 10, 2018

IntelliJ still bundles Maven 3.3.9, which is the most convenient version to use when you work on multiple environments can't rely on the path to maven to be consistent.

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

5 participants