This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256297

Summary: Netbeans add mysql libraries from "unknown" repository.
Product: projects Reporter: alied <alied>
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description alied 2015-10-31 19:44:28 UTC
While reviewing the tutorial "Creating a Maven Swing Application Using Hibernate - NetBeans IDE Tutorial" in the step "Creating the Hibernate Configuration File"

[1] https://netbeans.org/kb/docs/java/maven-hib-java-se.html

Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Linux version 4.2.5 running on amd64
Java; VM; Vendor = 1.8.0_66
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.66-b17

Reproducibility: Happens every time

STEPS:
  * Go through the tutorial
  * After the step "Creating the Hibernate Configuration File" check the project POM

ACTUAL:
 * A new local repository was added to the PO.xml:
    <repositories>
        <repository>
            <id>unknown-jars-temp-repo</id>
            <name>A temporary repository created by NetBeans for libraries and jars it could not identify. Please replace the dependencies in this repository with correct ones and delete this repository.</name>
            <url>file:${project.basedir}/lib</url>
        </repository>
    </repositories>
 * The dependency for mysql connector was added from group "unknown.binary" and version SNAPSHOT:
        <dependency>
            <groupId>unknown.binary</groupId>
            <artifactId>mysql-connector-java-5.1.23-bin</artifactId>
            <version>SNAPSHOT</version>
        </dependency>


EXPECTED:
 * Valid maven coordinates are added to the POM for the mysql connector
Comment 1 alied 2015-10-31 19:44:36 UTC
Created attachment 157084 [details]
IDE log