Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1107987

Summary: Can't create new maven settings.xml during installation
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Denno <dennis.noordzij>
Component: InstallerAssignee: Thomas Hauser <thauser>
Status: CLOSED CURRENTRELEASE QA Contact: Len DiMaggio <ldimaggi>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: atangrin, dennis.noordzij, dlesage, felias, fnguyen, jstastny, vhalbert
Target Milestone: ER2Keywords: QA-Closed
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Users could not create a new Maven path during installation. This was due to the installer being unclear as it required the name of the file, not just the path to it. To solve this problem, the installer will now append a default 'settings.xml' filename onto the user provided value if the value given is a directory that exists.
Story Points: ---
Clone Of: 1053627 Environment:
DV6 CR2
Last Closed: 2016-02-10 08:53:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Denno 2014-06-11 08:48:04 UTC
+++ This bug was initially created as a clone of Bug #1053627 +++

Description of problem:

Installer says in the Maven window: Specify the path to a valid settings.xml file, or the path where a new settings.xml should be created.

I can't specify a path, it keeps complaining that the specified path is not valid. Path I gave: C:\Localdata\JBoss\maven (folder exists!)

Error message I'm getting: 
"The chosen path either does not exist or is not a directory."

I also tried to provide an existing settings.xml file, but it gives the same issue. (How can I get some logging? I'm not getting any logging streams either.)

Comment 2 Thomas Hauser 2014-06-11 13:48:41 UTC
Hello Denno,

I believe that you need to enter the new file name also, so C:\Localdata\JBoss\maven\settings.xml should be created if you give it that path. This points to a problem with the explanatory text that we should fix.

Comment 3 Thomas Hauser 2014-08-05 15:50:00 UTC
The installer will now append a default 'settings.xml' filename onto the user provided value if the value given is a directory that exists. There are a few possibilities now for a given value

Suppose the user provides this location:
/home/user/folder1/folder2

1) folder1 and folder2 exist and are directories:
 - settings.xml created at /home/user/folder1/folder2/settings.xml
2) folder1 doesn't exist:
 - settings.xml created at /home/user/folder1/folder2 (the filename folder2 is taken to be the desired name for the file.)
3) folder2 exists and is a file:
 - if the file is a valid maven settings.xml file: required changes are added
 - if not: the user is warned

Comment 4 Thomas Hauser 2014-08-06 18:21:35 UTC
A link is also displayed to the user so they can view the schema.