We're updating the issue view to help you get more done. 

Execution project artifacts are always empty, so dependencies are never included

Description

1 mavenProject.getExecutionProject().getArtifacts()

always returns an empty array. The logic at:
https://github.com/hibernate/hibernate-orm/blob/5.2.5/tooling/hibernate-enhance-maven-plugin/src/main/java/org/hibernate/orm/tooling/maven/MavenEnhancePlugin.java#L170
appears to be incorrect (at least, it is in my testing - I'm using maven 3.3.9).

I couldn't find any documentation for what an execution project is supposed to be. Based on what I can glean from https://issues.apache.org/jira/browse/MNG-3941, it sounds like it's not appropriate in this use case.

Therefore, I'm attaching a PR that remove the use of executionProject and makes work as intended:
https://github.com/hibernate/hibernate-orm/pull/1657

Environment

None

Status

Assignee

Unassigned

Reporter

Craig Andrews

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

5.2.5

Priority

Major