summaryrefslogtreecommitdiff
path: root/bin/fake_pom.xml
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2013-10-27 20:32:40 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-02 05:06:13 -0500
commit78e4b97a18a18f84c228de64fc48cee48138fbfe (patch)
treee88a27adadd9488042486ce21b3fcdb8107f6d97 /bin/fake_pom.xml
parent1db25c330abdc5f3c3b27a6b4029f306ab497af1 (diff)
Set up tool chain to install LO artifacts in Maven repositories
Add <path_to_libo>/bin to your path. After full LO compile, the LO Java artifacts can be installed in the local Maven repository: mvn.py -a install -v 4.2.0 -s juh:jar:<path_to>/juh.jar mvn.py -a install -v 4.2.0 -s jurt:jar:<path_to>/jurt.jar mvn.py -a install -v 4.2.0 -s ridl:jar:<path_to>/ridl.jar mvn.py -a install -v 4.2.0 -s unoil:jar:<path_to>/unoil.jar With the artifacts installed this way, it is now possible to consume LO artifacts from custom pom.xml: [...] <properties> <LibreOffice-Version>4.2.0</LibreOffice-Version> </properties> [...] <dependencies> <dependency> <groupId>org.libreoffice</groupId> <artifactId>juh</artifactId> <version>${LibreOffice-Version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.libreoffice</groupId> <artifactId>jurt</artifactId> <version>${LibreOffice-Version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.libreoffice</groupId> <artifactId>ridl</artifactId> <version>${LibreOffice-Version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.libreoffice</groupId> <artifactId>unoil</artifactId> <version>${LibreOffice-Version}</version> <scope>provided</scope> </dependency> </dependencies> Change-Id: I2ad982ae23c78242ed8f1ac4c88c6be424cc7a0d Reviewed-on: https://gerrit.libreoffice.org/6453 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'bin/fake_pom.xml')
-rw-r--r--bin/fake_pom.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/fake_pom.xml b/bin/fake_pom.xml
new file mode 100644
index 000000000000..50599f3ab4a7
--- /dev/null
+++ b/bin/fake_pom.xml
@@ -0,0 +1,6 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.libreoffice</groupId>
+ <artifactId>LibreOffice-Maven</artifactId>
+ <version>1</version>
+</project>