I don&#39;t think that using the CDIFacet for this purpose is the right thing to do. The CDI Facet represents a java project with CDI enabled, so I don&#39;t think a POM project fits that description :)<br><br>I would just add the CDI api as a dependency, though I suppose I should ask, why are you trying to do this in this particular way?<br>
<br>~Lincoln<br><br><div class="gmail_quote">On Sun, May 15, 2011 at 2:02 AM, Tim Pedone <span dir="ltr">&lt;<a href="mailto:macdude357@gmail.com">macdude357@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;">
As part of implementing the ability to add dependencies based off the<br>
dependencyManagement section of a parent pom, it would be helpful for<br>
testing purposes (and likely for users as well) to be able to create a<br>
project of type &quot;pom&quot;.  I copied the NewProjectPlugin and used it to<br>
create a PomProjectPlugin.   I removed the Java facet and set the<br>
packaging to &quot;pom&quot;; however, it seems that<br>
ProjectFactory.createProject() calls registerFacet() which attempts to<br>
add every facet (CDI, JEE, etc.) to the project.  The CDI facet fails<br>
because the project is not a war or jar.  Is that behavior correct<br>
(adding the CDI facet to all projects)?<br>
_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><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>