<br clear="all">Hi all,<br><br>I&#39;m trying to develop a new Forge plugin.   I created a new facet and used the @RequiresFacet annotation and would like to test it.<br>But since the implementation of those java EE facets are in the jar javaee-impl, it doesn&#39;t seems to get picked up by Arquillian.<br>
<br>Anyone an idea how I can proceed?<br><br>Thx<br><br><br>@Alias(&quot;xxx&quot;)<br>@RequiresFacet({DependencyFacet.class, ServletFacet.class, WebResourceFacet.class})<br>public class XxxFacet extends BaseFacet {<br>}<br>
<br><br>public class XxxPluginTest extends AbstractShellTest {<br><br>    @Deployment<br>    public static JavaArchive getDeployment() {<br>        JavaArchive archive = AbstractShellTest.getDeployment().addPackages(true,<br>
                PrimefacesPlugin.class.getPackage());<br>        return archive;<br>    }<br><br>    @Test<br>    public void testCheckXxxFacet() throws Exception {<br><br>        Project p = getProject();<br><br>        Assert.assertNotNull(p);<br>
    }<br>}<br><br><br>Results in the following stacktrace<br>org.jboss.forge.project.facets.FacetNotFoundException: The requested Facet of type [org.jboss.forge.spec.javaee.ServletFacet] could not be loaded.<br>    at org.jboss.forge.project.services.FacetFactory.getFacet(FacetFactory.java:87)<br>
    at org.jboss.forge.project.services.ProjectFactory.registerSingleFacet(ProjectFactory.java:208)<br>    at org.jboss.forge.project.services.ProjectFactory.registerFacets(ProjectFactory.java:188)<br>    at org.jboss.forge.project.services.ProjectFactory.findProjectRecursively(ProjectFactory.java:129)<br>
<br>-- <br>Rudy De Busscher<br><a href="http://www.c4j.be" target="_blank">http://www.c4j.be</a><br><br>