Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4582

Extensions not working when defined in a module

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.0-alpha-6
    • None
    • Class Loading
    • None

    Description

      We want to use Maven Extensions so we can easily look up configuration files. This is our project configuration:

      build-project (contains only list of modules):

      <modules>
      <module>parent-project</module>
      <module>subproject1</module>
      <!-- more modules -->
      </modules>

      parent-project (contains only configurations, has no declared <parent> project):

      <build>
      <extensions>
      <extension>
      <!-- artifact with config files -->
      </extension>
      </extensions>
      <plugins>
      <plugin>
      <!-- plugin that searches config files on classpath (with Plexus ResourceManager) -->
      </plugin>
      </plugin>
      </build>

      subproject1 (has parent-project as <parent>, executes plugin)

      With maven-2.2.1 the config files are correctly loaded and available on the classpath. With maven-3.0-alpha-6, the config files are not on the classpath.

      If we move the extension up into the "build-project", the config files are available again, but we would like to keep configurations out of the build-project.

      Can you please fix the extension classpath loading?

      Attachments

        1. exampleWithLogs.zip
          42 kB
          Jochen Ehret

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              jochenehret Jochen Ehret
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: