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

Ability to add Java sources to plugins classpath from .mvn directory

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      In plugins like asciidoctor-maven-plugin it is possible to add Java Asciidoctor extensions and other customizations to the conversion process.
      These need to be available to the asciidoctor-maven-plugin classpath and due to how maven manages plugin's dependencies, this means that users need to publish these extension in a maven repo or create multi-module projects like in this example https://github.com/asciidoctor/asciidoctor-maven-examples/tree/master/java-extension-example.
      This is cumbersome and a bit of overkill when some users just want to add a single class.

      So, I wonder if would make sense to be able to add Java sources in the ".mvn" directory that are compiled and added to the classpath so that maven plugins can use them.
      Ideally, to avoid classpath issues, I'd like to be able to tell which plugins use the code, maybe with an XML descriptor or some directory convention.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Abel S.Romero Abel Salgado Romero
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: