[ http://jira.codehaus.org/browse/MOJO-1694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=270806#comment-270806 ]
Pavel VeselĂ˝ commented on MOJO-1694: ------------------------------------ Well, yes, that is my goal. I would like to have artifact with one file - catalog.xml, which will refer to XML schemas contained in other artifacts as files. For specific example I want to check if spring context configuration files contained in project are valid. I work for bank, so my XML validator does not have option to download XML schemas from internet and I can't use some hard coded location because validation should be available for both developers and CI tools like Hudson which each use different environment with different policies. Most proper option is get everything from artifacts anyway. I am trying to configure it in pom, but with no luck yet. If you can show me a correct way, I would be glad. Here is my pom so far: {code:xml} <?xml version="1.0"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <artifactId>reactor-config-artifact-test</artifactId> <groupId>org.pavelvesely.test</groupId> <version>1.0-SNAPSHOT</version> </parent> <groupId>org.pavelvesely.test</groupId> <artifactId>config-artifact-xml-test</artifactId> <version>1.0-SNAPSHOT</version> <name>config-artifact-xml-test</name> <url>http://pavelvesely.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>xml-maven-plugin</artifactId> <version>1.0</version> <executions> <execution> <phase>validate</phase> <goals> <goal>validate</goal> </goals> </execution> </executions> <configuration> <catalogs> <catalog>catalog.xml</catalog> </catalogs> <validationSets> <validationSet> <dir>src/main/resources</dir> <includes> <include>*.xml</include> <include>*.xsd</include> </includes> <validating>true</validating> </validationSet> </validationSets> </configuration> <dependencies> <dependency> <groupId>org.pavelvesely.test</groupId> <artifactId>config-artifact-xml-catalog</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>3.0.5.RELEASE</version> </dependency> </dependencies> </project> {code} > Allow catalogs to load from dependency > -------------------------------------- > > Key: MOJO-1694 > URL: http://jira.codehaus.org/browse/MOJO-1694 > Project: Mojo > Issue Type: Improvement > Components: xml > Affects Versions: xml-maven-plugin 1.0 > Reporter: Pavel VeselĂ˝ > Assignee: Jochen Wiedmann > > I would like to have option to supply catalog file as dependency. Generally > it would be nice to use same resource locator as for schemas. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email