Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-2375

1.8.x maven build is platform dependent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.8.0
    • Fix Version/s: OpenMRS 1.8.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      As 1.8.0 is our first mavenized release, we have discovered some problems related to builds in heterogenous environments. In Bamboo, we are not able to build with mvn due to encoding problems, e.g.:

      build	17-Jun-2011 16:13:51	/opt/bamboohome/xml-data/build-dir/JAVADOC-V18X-JOB1/api/src/main/java/org/openmrs/util/databasechange/BooleanConceptChangeSet.java:[59,52] unmappable character for encoding ASCII
      build	17-Jun-2011 16:13:51	/opt/bamboohome/xml-data/build-dir/JAVADOC-V18X-JOB1/api/src/main/java/org/openmrs/util/databasechange/BooleanConceptChangeSet.java:[59,53] unmappable character for encoding ASCII
      build	17-Jun-2011 16:13:51	/opt/bamboohome/xml-data/build-dir/JAVADOC-V18X-JOB1/api/src/main/java/org/openmrs/util/databasechange/BooleanConceptChangeSet.java:[60,47] unmappable character for encoding ASCII
      build	17-Jun-2011 16:13:51	/opt/bamboohome/xml-data/build-dir/JAVADOC-V18X-JOB1/api/src/main/java/org/openmrs/util/databasechange/BooleanConceptChangeSet.java:[60,48] unmappable character for encoding ASCII
      build	17-Jun-2011 16:13:51	/opt/bamboohome/xml-data/build-dir/JAVADOC-V18X-JOB1/api/src/main/java/org/openmrs/util/databasechange/BooleanConceptChangeSet.java:[67,49] unmappable character for encoding ASCII
      build	17-Jun-2011 16:13:51	/opt/bamboohome/xml-data/build-dir/JAVADOC-V18X-JOB1/api/src/main/java/org/openmrs/util/databasechange/BooleanConceptChangeSet.java:[67,50] unmappable character for encoding ASCII
      

      A bit of research shows this is not uncommon, and that the mvn-compiler-plugin configuration needs to be updated to include an encoding reference, e.g.,

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
      

      Source: http://stackoverflow.com/questions/1562843/howto-use-maven-in-a-heterogenous-environment-with-different-encodings

      This is a blocker for us being able to set up Bamboo to use Maven correctly starting with the 1.8.x branch.

        Attachments

          Activity

            People

            Assignee:
            bwolfe Ben Wolfe
            Reporter:
            michael Michael Downey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: