-
Bug
-
Resolution: Done
-
Critical
-
5.1.0.FINAL
-
None
-
Low
org.infinispan.config.InfinispanConfiguration
line:369 --376
if (is != null) { log.debugf("Using schema %s", localPathToSchema); return is; } if (log.isDebugEnabled()) { log.debugf("Could not find schema on path %s, resolving %s to %s", localPathToSchema, SCHEMA_SYSTEM_PROPERTY, schemaPath()); }
the infinispan 4.2.x infinispan/core/pom.xml
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.1</version> <executions> <execution> <phase>process-classes</phase> <goals> <goal>java</goal> </goals> </execution> </executions> <configuration> <mainClass>org.infinispan.util.JaxbSchemaGenerator</mainClass> <arguments> <argument>${basedir}/src/main/resources/schema</argument> </arguments> </configuration> </plugin>
infinispan 5.1.x infinispan/core/pom.xml
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>net.sf.xframe.xsddoc.Main</mainClass>
<arguments>
<argument>-q</argument>
<argument>-s</argument>
<argument>-t</argument>
<argument>"XML Schema for Infinispan"</argument>
<argument>-o</argument>
<argument>${project.build.directory}/xsd_doc</argument>
<argument>${basedir}/src/main/resources/infinispan-5.1.xsd</argument>
</arguments>
</configuration>
</plugin>
it always take 5s and my log is :
2012-02-01 16:14:40,552 DEBUG [org.infinispan.config.InfinispanConfiguration] (main) Could not find schema on path schema/infinispan-config-5.1.xsd, resolving infinispan.config.schema to http://www.infinispan.org/schemas/infinispan-config-5.1.xsd 2012-02-01 16:15:45,115 WARN [org.infinispan.config.InfinispanConfiguration] (main) ISPN000139: Infinispan configuration schema could not be resolved locally nor fetched from URL. Local path=null, schema path=schema/infinispan-config-5.1.xsd, schema URL=http://www.infinispan.org/schemas/infinispan-config-5.1.xsd