]> git.pld-linux.org Git - packages/maven.git/commitdiff
- java.home hacks (patch0 and MAVEN_OPTS)
authorpawelz <pawelz@pld-linux.org>
Wed, 25 Mar 2009 20:38:13 +0000 (20:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- it %%builds now
- TODO
- NFY

Changed files:
    maven.spec -> 1.16.2.2

maven.spec

index f22c308ea95bc929d1623b3a4283c9217aea81d4..e763d5ae43242297f1a96809863da14b7f543651 100644 (file)
@@ -1,6 +1,11 @@
+# TODO:
+# - %%install and %%files sections
+# - jppize (offline-mode)
+# - patch build.xml to use system jars, it must not download anything
+# - package classworlds
 
 Summary:       Java project management and project comprehension tool
-Summary(pl.UTF-8):     NarzÄ\99dzie do zarzÄ\85dzania projektami Javy uÅ\82atwiajÄ\99ce ich zrozumienie
+Summary(pl.UTF-8):     NarzÄ\99dzie do zarzÄ\85dzania projektami Javy uÅ\82atwiajÄ\85ce ich zrozumienie
 Name:          maven
 Version:       2.0.10
 Release:       1.1
@@ -8,8 +13,10 @@ License:      Apache
 Group:         Development/Languages/Java
 Source0:       %{name}-%{version}.tar.bz2
 # Source0-md5: f7db6421681782be0dff40bf82c8e246
+Patch0:                %{name}-build.patch
 URL:           http://maven.apache.org/
-Requires:      jdk
+BuildRequires: ant
+Requires:      jdk >= 1.4
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -40,6 +47,21 @@ zachęcić.
 %prep
 %setup -q
 
+%patch -p0
+
+# I believe this test is broken, not the maven itself.
+mv ./maven-project/src/test/java/org/apache/maven/project/path/DefaultPathTranslatorTest.java{,.disabled}
+
+%build
+
+# maven sux. Why on earth maven expects java.home property to point to JRE not
+# JDK, and $JAVA_HOME env variable to JDK not JRE?
+M2_HOME=/usr/share/maven
+MAVEN_OPTS="-Djava.home=$JAVA_HOME/jre"
+export M2_HOME
+export MAVEN_OPTS
+%ant clean-bootstrap init maven-compile
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}/bin}
This page took 0.237858 seconds and 4 git commands to generate.