-
Bug
-
Resolution: Done
-
Blocker
-
2.0.0.Final
-
None
FacesFacet declares an optional constraint on ServletFacet. FacetFactoryImpl checks if the optional constraint is satisfied in https://github.com/forge/core/blob/master/facets/impl/src/main/java/org/jboss/forge/addon/facets/FacetFactoryImpl.java#L306 , hence not registering the candidate facet.
This test summarizes the problem (in
org.jboss.forge.addon.javaee.faces.FacesFacetTest):
@Test public void testFacesFacetInstalledAfterProjectIsEvictedFromCache() { Project project = projectFactory.createTempProject(); facetFactory.install(project, FacesFacet_2_2.class); Assert.assertTrue("Should have FacesFacet", project.hasFacet(FacesFacet.class)); Assert.assertTrue("Should have FacesFacet_2_2", project.hasFacet(FacesFacet_2_2.class)); projectFactory.invalidateCaches(); project = projectFactory.findProject(project.getRootDirectory()); Assert.assertTrue("Should have FacesFacet", project.hasFacet(FacesFacet.class)); Assert.assertTrue("Should have FacesFacet_2_2", project.hasFacet(FacesFacet_2_2.class)); }
- blocks
-
FORGE-1551 After executing faces-setup command, facesFacet isn't available on project
- Closed