[forge-issues] [JBoss JIRA] (FORGE-1013) Java resource path is hard-coded to src/main/resources

Fred Bricon (JIRA) jira-events at lists.jboss.org
Mon Jul 15 07:16:26 EDT 2013


Fred Bricon created FORGE-1013:
----------------------------------

             Summary: Java resource path is hard-coded to src/main/resources
                 Key: FORGE-1013
                 URL: https://issues.jboss.org/browse/FORGE-1013
             Project: Forge
          Issue Type: Bug
          Components: Resources API
    Affects Versions: 1.3.3.Final
            Reporter: Fred Bricon


After converting a stock Eclipse project (having just an src/ source folder) to Maven (Configure...>Convert to Maven), the java and resource directories are set to src. 

When configuring persistence via forge, a new persistence.xml is generated under src/main/resources. Turns out MavenResourceFacet has hard-coded paths for main and test resources : https://github.com/forge/core/blob/c178b19bbae655b04648be21e2a368a5e57cf7d3/project-model-maven/src/main/java/org/jboss/forge/maven/facets/MavenResourceFacet.java#L48

The resource paths should be inferred from the Maven pom instead, (<resources> and <testResources> nodes)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list