Jaroslav Tulach created NETBEANS-4845:
-----------------------------------------

             Summary: javaee.wildfly cannot be built without access to network
                 Key: NETBEANS-4845
                 URL: https://issues.apache.org/jira/browse/NETBEANS-4845
             Project: NetBeans
          Issue Type: Bug
          Components: serverplugins - WildFly
    Affects Versions: 12.0, 12.1
            Reporter: Jaroslav Tulach
            Assignee: Emmanuel Hugonnet


Hello Emmanuel,

as noted 
[PR-2000|https://github.com/apache/netbeans/pull/2000#issuecomment-675890873] I 
have troubles building *wildfly* support behind corporate proxy. Probably the 
goal of "Removing external downloads and updating schemas" wasn't fully 
fulfilled. My proxy says that [http://java.sun.com/xml/ns/javaee/javaee_6.xsd] 
doesn't exists. When I replace:
{code:java}
--- 
a/enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-common_6_0_1.xsd
+++ 
b/enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-common_6_0_1.xsd
@@ -61,7 +61,7 @@
 consistency with the Servlet API. </xsd:documentation>
 </xsd:annotation>
 
- <xsd:import namespace="http://java.sun.com/xml/ns/javaee"; 
schemaLocation="http://java.sun.com/xml/ns/javaee/javaee_6.xsd"/>
+ <xsd:import namespace="http://java.sun.com/xml/ns/javaee"; 
schemaLocation="javaee_6.xsd"/>
 
 <xsd:group name="descriptionGroup">
 <xsd:sequence> {code}
Then my build succeeds. Btw. I did a grep and there are more places that would 
deserve replacement:
{code:java}
netbeans$ grep -r xsd.import.*namespace enterprise/javaee.wildfly/src/
enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/javaee_6.xsd:
 <xsd:import namespace="http://www.w3.org/XML/1998/namespace";
enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-web_14_1.xsd:
 <xsd:import namespace="http://xmlns.jcp.org/xml/ns/javaee"; 
schemaLocation="http://www.jboss.org/schema/jbossas/web-app_4_0.xsd"/>
enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-common_6_0_1.xsd:
 <xsd:import namespace="http://java.sun.com/xml/ns/javaee"; 
schemaLocation="javaee_6.xsd"/>
enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-common_8_1.xsd:
 <xsd:import namespace="http://xmlns.jcp.org/xml/ns/javaee"; 
schemaLocation="http://www.jboss.org/schema/jbossas/javaee_8.xsd"/>
enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/javaee_8.xsd:
 <xsd:import namespace="http://www.w3.org/XML/1998/namespace";
enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-web_7_3_1.xsd:
 <xsd:import namespace="http://java.sun.com/xml/ns/javaee"; 
schemaLocation="http://www.jboss.org/schema/jbossas/web-app_3_0.xsd"/>
{code}
however when I tried to replace the other, I got missing file errors likeĀ 
{{FileNotFoundException: 
netbeans/enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/web-common_4_0.xsd}}
 - I guess there are additional transitive dependencies that need to be fixed. 
As such I decided to leave a note here rather than fixing just the one xsd file.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to