Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-1884

maven-activemq-plugin doesn't have proper VM transport support

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 5.1.0
    • NEEDS_REVIEW
    • Broker
    • None

    Description

      I tried to use broker by forking it for integration test purposes, but noticed that VM transport doesn't work because of maven classloader created duplicate VMTransportFactory.class instances <http://maven.apache.org/guides/mini/guide-maven-classloading.html>.

      I even tried to create a plexus container singleton-keep-alive component <http://plexus.codehaus.org/ref/component-configuration.html> from broker service in order to make sure that same instance of VMTransportFactory is shared thorough integration test phases. This way I was able to create start stop goals for the plugin which worked great at pre and post integration test phases but component failed to exist in different plugins at integration test phase.

      I guess the right approach is to introduce a maven build extension <http://docs.codehaus.org/display/MAVEN/Maven+2.1+Plugin+and+Extension+Loading+Design>

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            tuomas_kiviaho Tuomas Kiviaho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: