Bug 1038219

Summary: jcr2vfs: unnecessary directory is created for single-worded jcr package names
Product: [Retired] JBoss BRMS Platform 6 Reporter: Petr Široký <psiroky>
Component: Migration ToolAssignee: Edson Tirelli <etirelli>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: low Docs Contact:
Priority: low    
Version: 6.0.0CC: atangrin, kverlaen, mbaluch, mwinkler, pzapataf
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:12:57 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:

Description Petr Široký 2013-12-04 16:21:48 UTC
Description of problem:
For single-worded JCR package names - e.g. mortgages, the directories like 'src/main/resources/mortgages/mortgages' are created, but the resources are actually saved in 'src/main/resources/mortgages'. I guess the directories are created using groupId + artifactId, which makes sense for multi-worded package names, however in this case it's IMHO wrong.

Following directory structure is created.
<project-mortgages>
|-- pom.xml
|-- project.imports
`-- src
    |-- main
    |   |-- java
    |   |   `-- mortgages
    |   |       |-- Applicant.java
    |   |       |-- Bankruptcy.java
    |   |       |-- IncomeSource.java
    |   |       |-- LoanApplication.java
    |   |       `-- mortgages                        <<<<<<<< This directory should not be there
    |   `-- resources
    |       |-- META-INF
    |       |   `-- kmodule.xml
    |       `-- mortgages
    |           |-- ApplicantDsl.dsl
    |           |-- Bankruptcy\ history.rdrl
    |           |-- CreditApproval.rdslr
    |           |-- credit\ ratings.enumeration
    |           |-- Dummy\ rule.drl
    |           |-- mortgages                        <<<<<<<< This directory should not be there
    |           |-- No\ bad\ credit\ checks.rdrl
    |           |-- no\ NINJAs.rdrl
    |           |-- Pricing\ loans.gdst
    |           |-- RegexDslRule.rdslr
    |           `-- Underage.rdrl
    `-- test
        |-- java
        |   `-- mortgages
        |       `-- mortgages                        <<<<<<<< This directory should not be there
        `-- resources
            `-- mortgages
                |-- Are\ they\ old\ enough.scenario
                |-- Good\ credit\ history\ only.scenario
                |-- mortgages                        <<<<<<<< This directory should not be there
                |-- NINJAs.scenario
                |-- No\ bankruptcies.scenario
                `-- Pricing\ low\ end.scenario

Version-Release number of selected component (if applicable):
6.0.0-ER5 (also community 6.0.0-SNAPSHOT)