Uploaded image for project: 'Hibernate ORM'
  1. Hibernate ORM
  2. HHH-11287

requiresDependencyResolution must bet set in plugin.xml to include maven dependencies in enhancement classpath

    Details

      Description

      In HHH-10145 Closed , a change was made intending to include maven dependencies in enhancement classpath.

      However, the plugin descriptor (plugin.xml) was not changed. Maven requires the plugin descriptor to include:

      <requiresDependencyResolution>compile+runtime</requiresDependencyResolution>
      

      or else it doesn't resolve dependencies before invoking the mojo so mavenProject.getArtifacts() always returns an empty array.

      If Maven was used to build hibernate-enhance-maven-plugin, then maven-plugin-annotations would keep plugin.xml in sync wit the annotations... however, that's not the case here, so care must be taken to keep plugin.xml and the @Mojo annotation on the MavenEnhancePlugin in sync.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: