Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1438

Useless configuration in unixauthservice pom.xml lead to project compiler error in eclipse

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.0
    • Component/s: usersync
    • Labels:
      None
    • Environment:
      windows environment
    • Flags:
      Patch

      Description

      Steps
      In windows environment, enter into ranger project root directory
      1.Execute : mvn clean compile package install assembly:assembly -DskipTests -X
      2.Execute :mvn eclipse:eclipse -X
      When the maven project convert into eclipse project occurred error:
      [[ERROR] Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.10:eclipse (default-cli) on project unixauthservice: Cant canonicalize system path:

      {0}:文件名、目录名或卷标语法不正确。 -> [Help 1]
      Caused by: org.apache.maven.plugin.MojoExecutionException: Cant canonicalize system path: {0}

      ]
      3.Remove unless code in unixauthservice pom.xml
      <build>
      <resources>
      <resource>
      <targetPath>${project.build.outputDirectory}</targetPath>
      <directory>conf.dist</directory>
      <includes>
      <include>log4j.properties</include>
      </includes>
      </resource>
      </resources>
      </build>
      4.Rerun : mvn clean compile package install assembly:assembly -DskipTests -X
      5.Rerun :mvn eclipse:eclipse -X (result:sucessed)
      6.Check whether affect the Usersync Components work
      1).Install the ranger-1.0.0-SNAPSHOT-usersync module in a new machine
      2).and Reinstall the ranger-1.0.0-SNAPSHOT-usersync module in original machine
      3)result:both work well ( Log upload in the attachment)

        Attachments

        1. unixauthservice-log.png
          67 kB
          Qiang Zhang
        2. eclipse-error.png
          70 kB
          Qiang Zhang
        3. 0001-RANGER-1438-Useless-configuration-in-unixauthservice.patch
          1.0 kB
          Qiang Zhang

          Activity

            People

            • Assignee:
              zhangqiang2 Qiang Zhang
              Reporter:
              zhangqiang2 Qiang Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: