Svante,

I bet that problem isn't 'unchangeable', but rather the license.

Anyway, it's easy to do what you want.

Read http://central.sonatype.org/pages/ossrh-guide.html.

You will probably want to put the schema into a zip or tar file, though you
can leave it 'naked'. You set up a github.com repo with a pom that uses the
build-helper-maven-plugin to attach the schema file(s) and then you can run
'mvn deploy'.

Then use the maven-dependency-plugin to pull it down in your build.

--benson



On Sun, Dec 4, 2016 at 6:22 AM, Svante Schubert <[email protected]>
wrote:

> Hi,
>
> In the Apache ODF Toolkit (incubating) project we are generating Java
> classes from the ODF XML schema. For this reason, we need to download the
> OASIS ODF XML schema, as Apache does not allow to have unchangeable
> artifacts within the source repository. On the other hand, I would love to
> build offline, without the need to download these schemas over and over
> again for every build. Similar as other Maven dependencies these schemas
> would be great to store within .m2
>
> What is the common Maven way to do such thing. Do you have any pointers,
> examples of a similar problem solution?
>
> Kind regards,
> Svante
> ᐧ
>

Reply via email to