It looks like this is only used for a single enum. I will remove it in jboss metadata, and use our own version of the enum instead.<div><br></div><div>Stuart<br><br><br><br><div class="gmail_quote">On Tue Dec 16 2014 at 11:15:48 AM Scott Marlow <<a href="mailto:smarlow@redhat.com" target="_blank">smarlow@redhat.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I tried adding javax.persistence.api to org.jboss.metadata.common [3]<br>
but get the following build error [4].<br>
<br>
ERROR] Failed to execute goal<br>
org.wildfly.build:wildfly-<u></u>feat<u></u>ure-pack-build-maven-<u></u>plugin:1.<u></u>0.0.Alpha6:build<br>
(feature-pack-build) on project wildfly-web-feature-pack: Execution<br>
feature-pack-build of goal<br>
org.wildfly.build:wildfly-<u></u>feat<u></u>ure-pack-build-maven-<u></u>plugin:1.<u></u>0.0.Alpha6:build<br>
failed: java.lang.RuntimeException: Some errors were encountered<br>
creating the feature pack<br>
[ERROR] Missing module ModuleIdentifier{name='javax.<u></u>p<u></u>ersistence.api',<br>
slot='main'}. Module was required by<br>
[ModuleIdentifier{name='org.<u></u>jb<u></u>oss.metadata.common', slot='main'}]<br>
[ERROR]<br>
<br>
Is there another file besides<br>
web-feature-pack/src/main/<u></u>reso<u></u>urces/modules/system/<u></u>layers/<u></u>base/org/jboss/<u></u>metadata/<u></u>common/main/module.<u></u>xml<br>
that also needs the dependency?<br>
<br>
Scott<br>
<br>
[3]<br>
<a href="https://github.com/scottmarlow/wildfly/tree/jbossmetadata_javaxpersistence" target="_blank">https://github.com/<u></u>scottmarlow<u></u>/wildfly/tree/<u></u>jbossmetadata_<u></u>javaxpersistence</a><br>
<br>
[4] <a href="https://gist.github.com/scottmarlow/7d04490677e93a7de35f" target="_blank">https://gist.github.com/<u></u>scottm<u></u>arlow/<u></u>7d04490677e93a7de35f</a><br>
<br>
On 12/15/2014 04:29 PM, Stuart Douglas wrote:<br>
> Yes<br>
><br>
> Stuart<br>
><br>
> Scott Marlow wrote:<br>
>> On 12/15/2014 03:46 PM, Stuart Douglas wrote:<br>
>>> By adding the imports?<br>
>><br>
>> The current location for the module definition appears to be<br>
>> web-feature-pack/src/main/<u></u>reso<u></u>urces/modules/system/<u></u>layers/<u></u>base/org/jboss/<u></u>metadata/<u></u>common/main/module.<u></u>xml,<br>
>><br>
>> is that the right location for org.jboss.metadata.common?<br>
>><br>
>><br>
>>><br>
>>> Stuart<br>
>>><br>
>>> Scott Marlow wrote:<br>
>>>> Some of the WildFly 9 TCK tests are failing because<br>
>>>> javax.persistence.api is missing from the org.jboss.metadata.common<br>
>>>> module. In WildFly 8.2, we had [1] org.jboss.metadata which had various<br>
>>>> javax APIs. In WildFly 9, org.jboss.metadata.ejb has the different<br>
>>>> javax APIs but org.jboss.metadata.common [2] does not.<br>
>>>><br>
>>>> How should this be fixed?<br>
>>>><br>
>>>> Scott<br>
>>>><br>
>>>> [1]<br>
>>>> <a href="https://github.com/wildfly/wildfly/blob/8.x/build/src/main/resources/modules/system/layers/base/org/jboss/metadata/main/module.xml" target="_blank">https://github.com/wildfly/<u></u>wil<u></u>dfly/blob/8.x/build/src/<u></u>main/<u></u>resources/modules/system/<u></u>layer<u></u>s/base/org/jboss/<u></u>metadata/<u></u>main/module.xml</a><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> <module xmlns="urn:jboss:module:1.3" name="org.jboss.metadata"><br>
>>>> <properties><br>
>>>> <property name="jboss.api" value="private"/><br>
>>>> </properties><br>
>>>><br>
>>>> <resources><br>
>>>> <!-- Insert resources here --><br>
>>>> </resources><br>
>>>><br>
>>>> <dependencies><br>
>>>> <module name="javax.annotation.api"/><br>
>>>> <module name="javax.api"/><br>
>>>> <module name="javax.ejb.api" optional="true"/><br>
>>>> <module name="javax.interceptor.api" optional="true"/><br>
>>>> <module name="javax.jws.api" optional="true"/><br>
>>>> <module name="javax.persistence.api" optional="true"/><br>
>>>> <module name="javax.servlet.api" optional="true"/><br>
>>>> <module name="javax.servlet.jsp.api" optional="true"/><br>
>>>> <module name="javax.xml.bind.api" optional="true"/><br>
>>>> <module name="javax.xml.ws.api" optional="true"/><br>
>>>> <module name="org.jboss.ejb3" optional="true"/><br>
>>>> <module name="org.jboss.staxmapper"/><br>
>>>> <module name="org.jboss.logging"/><br>
>>>> </dependencies><br>
>>>> </module><br>
>>>><br>
>>>> [2]<br>
>>>> dist/target/wildfly-9.0.0.<u></u>Alph<u></u>a2-SNAPSHOT/modules/<u></u>system/<u></u>layers/base/org/jboss/<u></u>metadata<u></u>/common/main/module.<u></u>xml<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> <module xmlns="urn:jboss:module:1.3" name="org.jboss.metadata.<u></u>commo<u></u>n"><br>
>>>> <properties><br>
>>>> <property name="jboss.api" value="private"/><br>
>>>> </properties><br>
>>>><br>
>>>> <resources><br>
>>>> <resource-root path="jboss-metadata-common-8.<u></u><u></u>1.2.Final.jar"/><br>
>>>> </resources><br>
>>>><br>
>>>> <dependencies><br>
>>>> <module name="javax.annotation.api"/><br>
>>>> <module name="javax.api"/><br>
>>>> <module name="org.jboss.staxmapper"/><br>
>>>> <module name="org.jboss.logging"/><br>
>>>> </dependencies><br>
>>>> </module><br>
>>>> ______________________________<u></u><u></u>_________________<br>
>>>> wildfly-dev mailing list<br>
>>>> <a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
>>>> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/<u></u>mailma<u></u>n/listinfo/wildfly-dev</a><br>
</blockquote></div></div>