Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-921

Maven build fails if test phase is given

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.7
    • Fix Version/s: 2.0.8, 2.0.9
    • Component/s: Core
    • Labels:
      None

      Description

      If you run a mvn clean test on the root pom, the build fails because the mina-integration-xbean test fails with the following error:

      -------------------------------------------------------
       T E S T S
      -------------------------------------------------------
      Running org.apache.mina.integration.xbean.SpringXBeanTest
      log4j:WARN No appenders could be found for logger (org.apache.xbean.spring.context.FileSystemXmlApplicationContext).
      log4j:WARN Please initialize the log4j system properly.
      log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.329 sec <<< FAILURE!

      Results :

      Tests in error: 
        testNioDatagramAcceptor(org.apache.mina.integration.xbean.SpringXBeanTest): Unrecognized xbean element mapping: nioDatagramAcceptor in namespace http://mina.apache.org/config/1.0

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

      Running mvn install fixes the issue

      Seems to be related to maven-xbean-plugin

        Activity

        Hide
        maguro Alan Cabrera added a comment -

        (Deleted old msg since I was testing the wrong branch, whoops)

        Weird error.

        Show
        maguro Alan Cabrera added a comment - (Deleted old msg since I was testing the wrong branch, whoops) Weird error.
        Hide
        elecharny Emmanuel Lecharny added a comment -

        I confirm the issue. Investigating...

        Show
        elecharny Emmanuel Lecharny added a comment - I confirm the issue. Investigating...
        Hide
        jeffmaury Jeff MAURY added a comment - - edited

        Seems to be related to the maven-xbean-plugin which is bound to the generate-sources phase and that needs to access the source files from the core and the Maven test phase does not generate the source jar. Running mvn package fixes the issue
        Don't know if we can bound the source:jar Mojo to the same phase

        Show
        jeffmaury Jeff MAURY added a comment - - edited Seems to be related to the maven-xbean-plugin which is bound to the generate-sources phase and that needs to access the source files from the core and the Maven test phase does not generate the source jar. Running mvn package fixes the issue Don't know if we can bound the source:jar Mojo to the same phase
        Hide
        elecharny Emmanuel Lecharny added a comment -

        Postponed. Not really a big issue, but would be cool to find a fix for this one.

        Show
        elecharny Emmanuel Lecharny added a comment - Postponed. Not really a big issue, but would be cool to find a fix for this one.

          People

          • Assignee:
            Unassigned
            Reporter:
            jeffmaury Jeff MAURY
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development