Hi all,

I'm moving the JOOReports and JOOConverter (http://jooreports.sourceforge.net) open source projects to a maven2-based build, with an eye to publishing the artifacts to a public repository.

The migration was very easy thanks to the excellent documentation, especially "Better Builds with Maven".

Now for the issue. JOOConverter converts between different document formats using OpenOffice.org automation. To do so it depends on some jars provided by OpenOffice.org. These jars are included in any OpenOffice.org installation. They aren *not* available in any public maven repository. I've raised an issue with the OOo team asking them to publish the jars but I'll be very surprised if they actually listen to that request.

I'd like some advice on how to declare them as dependencies, so that projects that in turn depends on JOOConverter will get them as transitive dependencies with minimum effort. Options I see are

1. install OOo jars manually on the local m2 repo with mvn install:install-file; users will have to do the same; or

2. declare OOo jars as system dependencies, e.g.

   <dependency>
     <groupId>org.openoffice</groupId>
     <artifactId>unoil</artifactId>
     <version>2.0</version>
     <scope>system</scope>
     <systemPath>${openoffice.home}/program/classes/unoil.jar</systemPath>
   </dependency>

 and have users pass

  mvn -Dopenoffice.home=/path/to/their/openoffice ...

 (but system jars don't seem to get packaged e.g. in webapps)

A third (and probably the best) option would be to publish these jars under the JOOConverter groupId, but I'm not sure I'm allowed to do this since I'm not the author.

Thanks

Mirko


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to