Link to the XSD file from different XML files located in different modules of the project?

I have an XSD file that is mentioned in three different XML files in different modules of the project using:

<item-groups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xml_schemas/item_groups.xml.xsd">

I am trying to figure out how to avoid manually copying XSD to each module that it needs, so I don't need to support three files instead of one.

Is there a way in maven that I can only have one version in one of my modules, and during build it copies it to the other two?

Thank!

+3
source share
1 answer

, XSD , , , , Maven Dependency dependency:unpack. , generate-resources, XSD ( , ) , . . .

0

Source: https://habr.com/ru/post/1759318/


All Articles