https://bugs.freedesktop.org/show_bug.cgi?id=62353

--- Comment #5 from DavidO <[email protected]> ---
(In reply to comment #3)
> (In reply to comment #0)
> > Java artifacts should be accessibla through standard maven repositories, i.
> > e. jenkins-ci maven repository
> 
> I have little knowledge of Maven, so am not sure what it means for the
> public URE jars available via the LO SDK to be accessible via Maven.

Differentiate between two different use cases: compilation, i. e. creation of
binaries optionally combined with unit/functional/smoke tests and real
usage/production.

Check this:
https://github.com/davido/gerrit-buildbot-plugin/blob/master/pom.xml#L100

to create gerrit-plugin you don't need gerrit.
All you need is java & maven installed on your machine and this line in your
pom.xml:

    <dependency>
      <groupId>com.google.gerrit</groupId>
      <artifactId>gerrit-${Gerrit-ApiType}-api</artifactId>
      <version>${Gerrit-ApiVersion}</version>
      <scope>provided</scope>
    </dependency>

that all.

see it here in action on this jenkins instance:
https://ci.idaia.de/job/gerrit-buildbot/131/console

Note three facts here: 

1. there is nothing installed on that machine besides Java & Maven
2. Source tree include *no* gerrit binary artifacts at all.
3. to switch to different Version to gerrit you change one line: 

<Gerrit-ApiVersion>2.6-SNAPSHOT</Gerrit-ApiVersion>

And the dependency above does the magic for you.
The only requirement is that on some maven repository it can find that binary
artifact.

To translate it to LO it would mean, to define a couple of modules

    <dependency>
      <groupId>org.libreoffice</groupId>
      <artifactId>libreoffice-odk-{juh|jurt|ridl|unoil|...}</artifactId>
      <version>4.1</version>
    </dependency>

And upload the artifacts to some maven repository (for each release version)

Then you can take something like that:

http://sourceforge.net/projects/lopdfconverter/

and migrate it to maven tool chain and compile it on clean machine with two
dependencies installed:
java & maven and nothing else, and that for all LO releases (for which of
course maven artifacts can be found and fetched from some maven repo).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to