[forge-issues] [JBoss JIRA] (FORGE-894) Forge DependencyFacet cannot resolve dependencies in reactor projects without first installing necessary dependencies in the local Repository
Fred Bricon (JIRA)
jira-events at lists.jboss.org
Sun May 12 11:44:06 EDT 2013
[ https://issues.jboss.org/browse/FORGE-894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773622#comment-12773622 ]
Fred Bricon commented on FORGE-894:
-----------------------------------
I may be wrong but my gut feeling is you're trying to build "tests" (and each sub-module) outside the reactor from the parent project. Just like Eclipse would work by resolving all projects from the workspace outside a maven reactor, you may need to add a repositorySession.setWorkspaceReader(new SomeForgeWorkspaceReader()) in your getBuildingRequest(boolean) method, that'd resolve all forge projects in a forge session.
> Forge DependencyFacet cannot resolve dependencies in reactor projects without first installing necessary dependencies in the local Repository
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-894
> URL: https://issues.jboss.org/browse/FORGE-894
> Project: Forge
> Issue Type: Bug
> Components: Maven Integration
> Affects Versions: 2.0.0.Alpha3
> Reporter: Lincoln Baxter III
> Assignee: Lincoln Baxter III
> Fix For: 2.0.0.Alpha4
>
>
> As the title states, maven project building requests do not resolv reactor project dependencies.
> {code}
> parent/
> - addon --> spi
> - api
> - impl
> - spi
> - tests --> addon
> {code}
> the tests/ module dependency resolution result does not contain a transitive dependency to the spi/ module, however, when building from maven cli, it clearly should and does have this dependency - so this is a pure tooling issue due to the fact that the addon/ sub-module actually cannot be resolved.
> This can be reproduced in the branch: https://github.com/forge/core/tree/FORGE-894
> Running the test:
> {code}
> Failed tests: testCreateAddonProject(org.jboss.forge.addons.AddonProjectConfiguratorTest): SPI module is not present in the TESTS module
> {code}
> Relevant code (where the resolution is performed) is here: https://github.com/forge/core/blob/FORGE-894/maven/impl-projects/src/main/java/org/jboss/forge/maven/projects/MavenFacetImpl.java#L271
--
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