Hi!<br><br>You need to add the &quot;org.jboss.forge:javaee-impl&quot; as a &quot;test&quot; scoped maven dependency in your pom.xml.<br><br>We should probably update the docs to reflect this.<br><br>Let me know if this does the trick,<br>
<br>Thanks!<br>~Lincoln<br><br><div class="gmail_quote">On Fri, Nov 25, 2011 at 10:55 AM, Rudy De Busscher <span dir="ltr">&lt;<a href="mailto:rdebusscher@gmail.com">rdebusscher@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<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)<span class="HOEnZb"><font color="#888888"><br>

<br>-- <br>Rudy De Busscher<br><a href="http://www.c4j.be" target="_blank">http://www.c4j.be</a><br><br>
</font></span><br>_______________________________________________<br>
forge-users mailing list<br>
<a href="mailto:forge-users@lists.jboss.org">forge-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-users" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>&quot;Keep it Simple&quot;<br>