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

A hyphen sign in name of local repository causes build failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Invalid
    • 3.6.3
    • None
    • Bootstrap & Build
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: