1. OpenJPA
  2. OPENJPA-2077

Pom references to org.codehaus.mojo openjpa-maven-plugin cause problems


    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:


      I made a change to XMLPersistenceMetaDataParser, adding a call to StringUtils.endsWithIgnoreCase().It worked fine in eclipse. But it failed with a maven build with a NoSuchMethodException. StringUtils is in commons-lang. This method is introduced in version 2.4 The openjpa-parent pom.xml does specify version 2.4, so it should work. But, it also specifies org.codehaus.mojo openjpa-maven-plugin. Investigation discovered that this is pulling in commons-lang version 2.1,which is being used and gives the exception.

      I've discussed this with several people. The consensus is that the openjpa-maven-plugin that was introduced by OPENJPA-1934 was meant as a replacement for the codehaus version. So, I've changed multiple pom files, replacing references to the codehaus version with the apache version. I've tested these changes on a complete build and it works fine.

      I'll wait a day or 2 before committing, in case someone knows of a problem with this.


        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        5d 3h 29m 1 Dianne Richards 26/Nov/11 23:07
        Resolved Resolved Closed Closed
        67d 18h 11m 1 Albert Lee 02/Feb/12 17:19
        Albert Lee made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Albert Lee added a comment -

        Close issue in preparation for 2.2.0 release.

        Albert Lee added a comment - Close issue in preparation for 2.2.0 release.
        Dianne Richards made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Dianne Richards created issue -


          • Assignee:
            Dianne Richards
            Dianne Richards
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: