Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6916

A hyphen sign in name of local repository causes build failure

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Invalid
    • Affects Version/s: 3.6.3
    • Fix Version/s: None
    • Component/s: Bootstrap & Build
    • Labels:
    • Environment:
      Windows 10 Professional Build 1909

      Oracle JDK 11.0.7

      IntelliJ IDEA 2020.1 (Ultimate Edition)
      Build #IU-201.6668.121, built on April 8, 2020

      Maven 3.6.3

      Description

      I created a maven project in IntelliJ idea. And there is only one dependency: JUnit 4.13. I found that if the name of the local maven repository contains a hyphen sign, the build will fail.

      local maven repository name example: E:\Dev\maven-repository

      The error is: package org.junit does not exist

      ------------

      Update: This issue is caused by IntelliJ IDEA 2020.1.1 and 2020.1.2

      Maven works fine from the command line.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xietianxin123 axin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: