View previous topic :: View next topic |
Author |
Message |
OWNSyouAll Tux's lil' helper

Joined: 20 Apr 2010 Posts: 99
|
Posted: Sun Jun 26, 2011 8:40 pm Post subject: using maven-3.0 to compile |
|
|
I'm trying to create an ebuild for craftbukkit
i'm having trouble getting it to compile though.
The ebuild so far looks like this
craftbukkit-9999.ebuild
Code: |
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit eutils games java-pkg-2 git
DESCRIPTION=""
HOMEPAGE="http://bukkit.org/"
EGIT_REPO_URI="git://github.com/Bukkit/CraftBukkit.git"
SRC_URI=""
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/jdk:1.6"
RDEPEND="virtual/jre:1.6"
S="${WORKDIR}"
pkg_setup() {
java-pkg-2_pkg_setup
games_pkg_setup
}
src_unpack() {
git_src_unpack
}
src_compile() {
mvn-3.0 clean package
}
src_install() {
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
}
|
When i try to compile it though i get this error
Code: |
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building CraftBukkit 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.bukkit.org/artifactory/plugins-release/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
ACCESS DENIED mkdir: /root/.m2/repository/org
ISE:write_logfile unable to append logfile
ISE mkdir(/root/.m2/repository/org): No such file or directory
abs_path: /root/.m2/repository/org
res_path: /root/.m2/repository/org
/usr/lib64/libsandbox.so(+0x37e2)[0x7fbfc026a7e2]
/usr/lib64/libsandbox.so(+0x3853)[0x7fbfc026a853]
/usr/lib64/libsandbox.so(+0x50f4)[0x7fbfc026c0f4]
/usr/lib64/libsandbox.so(mkdir+0x84)[0x7fbfc0270694]
/opt/icedtea6-bin-1.10.2/jre/lib/amd64/libjava.so(Java_java_io_UnixFileSystem_createDirectory+0x63)[0x7fbfbdd03693]
[0x7fbfba2b7d68]
/proc/5996/cmdline: /opt/icedtea6-bin-1.10.2/bin/java -classpath /usr/share/maven-bin-3.0/boot/plexus-classworlds-2.4.jar -Dclassworlds.conf=/usr/share/maven-bin-3.0/bin/m2.conf -Dmaven.home=/usr/share/maven-bin-3.0 org.codehaus.plexus.classworlds.launcher.Launcher clean package
/var/tmp/portage/games-server/craftbukkit-9999/temp/environment: line 4547: 5996 Aborted mvn-3.0 clean package
|
|
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23353
|
Posted: Sun Jun 26, 2011 9:42 pm Post subject: |
|
|
Something is improperly trying to write to your home directory. You will need to patch the upstream code to respect the boundaries of the sandbox. |
|
Back to top |
|
 |
OWNSyouAll Tux's lil' helper

Joined: 20 Apr 2010 Posts: 99
|
Posted: Sun Jun 26, 2011 11:23 pm Post subject: |
|
|
Hu wrote: | Something is improperly trying to write to your home directory. You will need to patch the upstream code to respect the boundaries of the sandbox. |
It appears that maven is trying to get access to the .m2 folder so it can download the packages. I don't believe changing the upstream to craftbukkit will change this maybe it would be better to tell maven to download the files somewhere else? But i cant see if there is a way to do that. |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23353
|
Posted: Sun Jun 26, 2011 11:54 pm Post subject: |
|
|
That could be. I am not familiar with Maven. Most sandbox violations arise from poorly written Makefile constructs (or equivalent) that refer to a path outside the work area, so I blamed upstream by default. If they are using a tool which writes outside the sandbox automatically, that is even worse. Maven should not be downloading any files at all. That is the job of the package manager. If Maven requires files that are not provided by craftbukkit, then you need to make other arrangements to have those files available. This might mean writing supporting ebuilds that package and install the required files. |
|
Back to top |
|
 |
marens Apprentice


Joined: 05 Aug 2004 Posts: 173
|
Posted: Mon Jun 27, 2011 6:21 am Post subject: |
|
|
Short description: This project enables the ability to natively use Apache Maven in Java packages in the main tree. With this, packagers who use Apache Maven as the project management tool gain the ability to write Ebuilds easily and it will provide the complete support for the existing maven-to-ant feature.
http://socghop.appspot.com/gsoc/proposal/review/google/gsoc2011/kasun_gajasinghe/1 _________________ If English was good enough for Jesus, then it's good enough for you! |
|
Back to top |
|
 |
sera Retired Dev

Joined: 29 Feb 2008 Posts: 1017 Location: CET
|
Posted: Mon Jun 27, 2011 8:22 am Post subject: |
|
|
And if you can't wait for the gsoc project to be finished run maven ant:ant on the projected and put the generated build files into the files dir.
Then in the ebuild use those build files and the java-ant-2 eclass. Maven isn't ready to be run from inside ebuilds. |
|
Back to top |
|
 |
OWNSyouAll Tux's lil' helper

Joined: 20 Apr 2010 Posts: 99
|
Posted: Mon Jun 27, 2011 2:20 pm Post subject: |
|
|
sera wrote: | And if you can't wait for the gsoc project to be finished run maven ant:ant on the projected and put the generated build files into the files dir.
Then in the ebuild use those build files and the java-ant-2 eclass. Maven isn't ready to be run from inside ebuilds. |
running mvn-3.0 ant:ant while it does make a ant build file it still trys to download files and put them in ~/.m2/ so that doesn't help it looks like ill have to wait until maven support comes or put an ant build in upstream. |
|
Back to top |
|
 |
sera Retired Dev

Joined: 29 Feb 2008 Posts: 1017 Location: CET
|
Posted: Mon Jun 27, 2011 2:39 pm Post subject: |
|
|
OWNSyouAll wrote: | running mvn-3.0 ant:ant while it does make a ant build file it still trys to download files and put them in ~/.m2/ so that doesn't help it looks like ill have to wait until maven support comes or put an ant build in upstream. |
The idea is to run ant:ant outside of an ebuild and let it do what it wants.
The resultin build.xml file can then be copied from the ebuilds files dir in src_prepare. There are probably a couple hundred ebuilds which do exactly this.
Ie:
Code: |
java_prepare() {
cp "${FILESDIR}"/build.xml build.xml || die "Failed to copy build.xml"
}
|
java_prepare is called by the eclass src_prepare and should be used for java ebuilds. |
|
Back to top |
|
 |
OWNSyouAll Tux's lil' helper

Joined: 20 Apr 2010 Posts: 99
|
Posted: Mon Jun 27, 2011 3:51 pm Post subject: |
|
|
Still getting the same problem
Code: |
Buildfile: /var/tmp/portage/games-server/craftbukkit-9999/work/build.xml
test-offline:
get-deps:
BUILD FAILED
/var/tmp/portage/games-server/craftbukkit-9999/work/maven-build.xml:215: Can't write to /root/.m2/repository/org/bukkit/bukkit/0.0.1-SNAPSHOT/bukkit-0.0.1-SNAPSHOT.jar
Total time: 0 seconds
|
craftbukkit-9999.ebuild
Code: |
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit eutils games java-pkg-2 git
DESCRIPTION=""
HOMEPAGE="http://bukkit.org/"
EGIT_REPO_URI="git://github.com/Bukkit/CraftBukkit.git"
SRC_URI=""
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/jdk:1.6"
RDEPEND="virtual/jre:1.6"
S="${WORKDIR}"
pkg_setup() {
java-pkg-2_pkg_setup
games_pkg_setup
}
src_unpack() {
git_src_unpack
}
src_prepare() {
cp "${FILESDIR}"/build.xml build.xml || die "Failed to copy build.xml"
cp "${FILESDIR}"/maven-build.xml maven-build.xml || die "Failed to copy maven-build.xml"
cp "${FILESDIR}"/maven-build.properties maven-build.properties || die "Failed to copy maven-build.properties"
}
src_compile() {
ant
}
src_install() {
java-pkg_newjar target/craftbukkit-0.0.1-SNAPSHOT.jar ${PN}.jar
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
}
|
build.xml
Code: |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
<!-- ====================================================================== -->
<project name="craftbukkit" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Import maven-build.xml into the current project -->
<!-- ====================================================================== -->
<import file="maven-build.xml"/>
<!-- ====================================================================== -->
<!-- Help target -->
<!-- ====================================================================== -->
<target name="help">
<echo message="Please run: $ant -projecthelp"/>
</target>
</project>
|
maven-build.xml
Code: |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
<!-- ====================================================================== -->
<!-- ====================================================================== -->
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
<!-- ====================================================================== -->
<!-- -->
<!-- Any modifications will be overwritten. -->
<!-- -->
<!-- Generated by Maven Ant Plugin on 6/27/11 11:23 AM -->
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
<!-- -->
<!-- ====================================================================== -->
<project name="craftbukkit-from-maven" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property file="${user.home}/.m2/maven.properties"/>
<property file="maven-build.properties"/>
<property name="maven.build.finalName" value="craftbukkit-0.0.1-SNAPSHOT"/>
<property name="maven.build.dir" value="target"/>
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
<property name="maven.build.srcDir.0" value="src/main/java"/>
<property name="maven.build.resourceDir.0" value="src/main/resources"/>
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
<property name="maven.build.testDir.0" value="src/test/java"/>
<property name="maven.build.testResourceDir.0" value="src/test/resources"/>
<property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
<property name="maven.repo.local" value="${user.home}/.m2/repository"/>
<property name="maven.settings.offline" value="false"/>
<property name="maven.settings.interactiveMode" value="true"/>
<!-- ====================================================================== -->
<!-- Defining classpaths -->
<!-- ====================================================================== -->
<path id="build.classpath">
<pathelement location="${maven.repo.local}/org/bukkit/bukkit/0.0.1-SNAPSHOT/bukkit-0.0.1-SNAPSHOT.jar"/>
<pathelement location="${maven.repo.local}/org/yaml/snakeyaml/1.7/snakeyaml-1.7.jar"/>
<pathelement location="${maven.repo.local}/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.jar"/>
<pathelement location="${maven.repo.local}/org/bukkit/minecraft-server/1.6.6_01/minecraft-server-1.6.6_01.jar"/>
<pathelement location="${maven.repo.local}/net/sf/jopt-simple/jopt-simple/3.2/jopt-simple-3.2.jar"/>
<pathelement location="${maven.repo.local}/jline/jline/0.9.94/jline-0.9.94.jar"/>
<pathelement location="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar"/>
<pathelement location="${maven.repo.local}/org/xerial/sqlite-jdbc/3.7.2/sqlite-jdbc-3.7.2.jar"/>
<pathelement location="${maven.repo.local}/mysql/mysql-connector-java/5.1.14/mysql-connector-java-5.1.14.jar"/>
<pathelement location="${maven.repo.local}/org/avaje/ebean/2.7.3/ebean-2.7.3.jar"/>
<pathelement location="${maven.repo.local}/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar"/>
</path>
<path id="build.test.classpath">
<pathelement location="${maven.repo.local}/org/bukkit/bukkit/0.0.1-SNAPSHOT/bukkit-0.0.1-SNAPSHOT.jar"/>
<pathelement location="${maven.repo.local}/org/yaml/snakeyaml/1.7/snakeyaml-1.7.jar"/>
<pathelement location="${maven.repo.local}/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.jar"/>
<pathelement location="${maven.repo.local}/org/bukkit/minecraft-server/1.6.6_01/minecraft-server-1.6.6_01.jar"/>
<pathelement location="${maven.repo.local}/net/sf/jopt-simple/jopt-simple/3.2/jopt-simple-3.2.jar"/>
<pathelement location="${maven.repo.local}/jline/jline/0.9.94/jline-0.9.94.jar"/>
<pathelement location="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar"/>
<pathelement location="${maven.repo.local}/org/xerial/sqlite-jdbc/3.7.2/sqlite-jdbc-3.7.2.jar"/>
<pathelement location="${maven.repo.local}/mysql/mysql-connector-java/5.1.14/mysql-connector-java-5.1.14.jar"/>
<pathelement location="${maven.repo.local}/org/avaje/ebean/2.7.3/ebean-2.7.3.jar"/>
<pathelement location="${maven.repo.local}/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar"/>
</path>
<!-- ====================================================================== -->
<!-- Cleaning up target -->
<!-- ====================================================================== -->
<target name="clean" description="Clean the output directory">
<delete dir="${maven.build.dir}"/>
</target>
<!-- ====================================================================== -->
<!-- Compilation target -->
<!-- ====================================================================== -->
<target name="compile" depends="get-deps" description="Compile the code">
<mkdir dir="${maven.build.outputDir}"/>
<javac destdir="${maven.build.outputDir}"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="1.5"
verbose="false"
fork="false"
source="1.5">
<src>
<pathelement location="${maven.build.srcDir.0}"/>
</src>
<classpath refid="build.classpath"/>
</javac>
</target>
<!-- ====================================================================== -->
<!-- Test-compilation target -->
<!-- ====================================================================== -->
<target name="compile-tests"
depends="compile"
description="Compile the test code"
unless="maven.test.skip">
<mkdir dir="${maven.build.testOutputDir}"/>
</target>
<!-- ====================================================================== -->
<!-- Run all tests -->
<!-- ====================================================================== -->
<target name="test"
depends="compile-tests, junit-missing"
unless="junit.skipped"
description="Run the test cases"/>
<target name="test-junit-present">
<available classname="junit.framework.Test" property="junit.present"/>
</target>
<target name="test-junit-status"
depends="test-junit-present">
<condition property="junit.missing">
<and>
<isfalse value="${junit.present}"/>
<isfalse value="${maven.test.skip}"/>
</and>
</condition>
<condition property="junit.skipped">
<or>
<isfalse value="${junit.present}"/>
<istrue value="${maven.test.skip}"/>
</or>
</condition>
</target>
<target name="junit-missing"
depends="test-junit-status"
if="junit.missing">
<echo>=================================== WARNING ===================================</echo>
<echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
<echo>===============================================================================</echo>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
<target name="javadoc" description="Generates the Javadoc of the application">
<javadoc sourcepath="${maven.build.srcDir.0}"
packagenames="*"
destdir="${maven.reporting.outputDirectory}/apidocs"
access="protected"
old="false"
verbose="false"
version="true"
use="true"
author="true"
splitindex="false"
nodeprecated="false"
nodeprecatedlist="false"
notree="false"
noindex="false"
nohelp="false"
nonavbar="false"
serialwarn="false"
charset="ISO-8859-1"
linksource="false"
breakiterator="false"/>
</target>
<!-- ====================================================================== -->
<!-- Package target -->
<!-- ====================================================================== -->
<target name="package" depends="compile,test" description="Package the application">
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
compress="true"
index="false"
basedir="${maven.build.outputDir}"
excludes="**/package.html"/>
</target>
<!-- ====================================================================== -->
<!-- A dummy target for the package named after the type it creates -->
<!-- ====================================================================== -->
<target name="jar" depends="package" description="Builds the jar for the application"/>
<!-- ====================================================================== -->
<!-- Download dependencies target -->
<!-- ====================================================================== -->
<target name="test-offline">
<condition property="maven.mode.offline">
<equals arg1="${maven.settings.offline}" arg2="true"/>
</condition>
</target>
<target name="get-deps"
depends="test-offline"
description="Download all dependencies"
unless="maven.mode.offline">
<mkdir dir="${maven.repo.local}"/>
<mkdir dir="${maven.repo.local}/org/bukkit/bukkit/0.0.1-SNAPSHOT"/>
<get src="http://repo.bukkit.org/artifactory/repo/org/bukkit/bukkit/0.0.1-SNAPSHOT/bukkit-0.0.1-SNAPSHOT.jar"
dest="${maven.repo.local}/org/bukkit/bukkit/0.0.1-SNAPSHOT/bukkit-0.0.1-SNAPSHOT.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/bukkit/bukkit/0.0.1-SNAPSHOT/bukkit-0.0.1-SNAPSHOT.jar"
dest="${maven.repo.local}/org/bukkit/bukkit/0.0.1-SNAPSHOT/bukkit-0.0.1-SNAPSHOT.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/yaml/snakeyaml/1.7"/>
<get src="http://repo.bukkit.org/artifactory/repo/org/yaml/snakeyaml/1.7/snakeyaml-1.7.jar"
dest="${maven.repo.local}/org/yaml/snakeyaml/1.7/snakeyaml-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/yaml/snakeyaml/1.7/snakeyaml-1.7.jar"
dest="${maven.repo.local}/org/yaml/snakeyaml/1.7/snakeyaml-1.7.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/com/googlecode/json-simple/json-simple/1.1"/>
<get src="http://repo.bukkit.org/artifactory/repo/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.jar"
dest="${maven.repo.local}/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.jar"
dest="${maven.repo.local}/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/bukkit/minecraft-server/1.6.6_01"/>
<get src="http://repo.bukkit.org/artifactory/repo/org/bukkit/minecraft-server/1.6.6_01/minecraft-server-1.6.6_01.jar"
dest="${maven.repo.local}/org/bukkit/minecraft-server/1.6.6_01/minecraft-server-1.6.6_01.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/bukkit/minecraft-server/1.6.6_01/minecraft-server-1.6.6_01.jar"
dest="${maven.repo.local}/org/bukkit/minecraft-server/1.6.6_01/minecraft-server-1.6.6_01.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/net/sf/jopt-simple/jopt-simple/3.2"/>
<get src="http://repo.bukkit.org/artifactory/repo/net/sf/jopt-simple/jopt-simple/3.2/jopt-simple-3.2.jar"
dest="${maven.repo.local}/net/sf/jopt-simple/jopt-simple/3.2/jopt-simple-3.2.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/net/sf/jopt-simple/jopt-simple/3.2/jopt-simple-3.2.jar"
dest="${maven.repo.local}/net/sf/jopt-simple/jopt-simple/3.2/jopt-simple-3.2.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/jline/jline/0.9.94"/>
<get src="http://repo.bukkit.org/artifactory/repo/jline/jline/0.9.94/jline-0.9.94.jar"
dest="${maven.repo.local}/jline/jline/0.9.94/jline-0.9.94.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/jline/jline/0.9.94/jline-0.9.94.jar"
dest="${maven.repo.local}/jline/jline/0.9.94/jline-0.9.94.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/junit/junit/3.8.1"/>
<get src="http://repo.bukkit.org/artifactory/repo/junit/junit/3.8.1/junit-3.8.1.jar"
dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar"
dest="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/xerial/sqlite-jdbc/3.7.2"/>
<get src="http://repo.bukkit.org/artifactory/repo/org/xerial/sqlite-jdbc/3.7.2/sqlite-jdbc-3.7.2.jar"
dest="${maven.repo.local}/org/xerial/sqlite-jdbc/3.7.2/sqlite-jdbc-3.7.2.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.7.2/sqlite-jdbc-3.7.2.jar"
dest="${maven.repo.local}/org/xerial/sqlite-jdbc/3.7.2/sqlite-jdbc-3.7.2.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/mysql/mysql-connector-java/5.1.14"/>
<get src="http://repo.bukkit.org/artifactory/repo/mysql/mysql-connector-java/5.1.14/mysql-connector-java-5.1.14.jar"
dest="${maven.repo.local}/mysql/mysql-connector-java/5.1.14/mysql-connector-java-5.1.14.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.14/mysql-connector-java-5.1.14.jar"
dest="${maven.repo.local}/mysql/mysql-connector-java/5.1.14/mysql-connector-java-5.1.14.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/avaje/ebean/2.7.3"/>
<get src="http://repo.bukkit.org/artifactory/repo/org/avaje/ebean/2.7.3/ebean-2.7.3.jar"
dest="${maven.repo.local}/org/avaje/ebean/2.7.3/ebean-2.7.3.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/org/avaje/ebean/2.7.3/ebean-2.7.3.jar"
dest="${maven.repo.local}/org/avaje/ebean/2.7.3/ebean-2.7.3.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/javax/persistence/persistence-api/1.0"/>
<get src="http://repo.bukkit.org/artifactory/repo/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar"
dest="${maven.repo.local}/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar"
dest="${maven.repo.local}/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar"
usetimestamp="false"
ignoreerrors="true"/>
</target>
</project>
|
maven-build.properties
Code: |
#Generated by Maven Ant Plugin - DO NOT EDIT THIS FILE!
#Mon Jun 27 11:23:47 GMT 2011
project.build.outputDirectory=${maven.build.outputDir}
project.build.directory=${maven.build.dir}
maven.test.reports=${maven.build.dir}/test-reports
maven.build.finalName=craftbukkit-0.0.1-SNAPSHOT
api.version=unknown
maven.reporting.outputDirectory=${maven.build.dir}/site
maven.build.testResourceDir.0=src/test/resources
maven.build.outputDir=${maven.build.dir}/classes
maven.build.resourceDir.0=src/main/resources
maven.build.testOutputDir=${maven.build.dir}/test-classes
maven.repo.local=${user.home}/.m2/repository
maven.settings.offline=false
maven.build.dir=target
project.build.sourceEncoding=UTF-8
maven.settings.interactiveMode=true
maven.build.testDir.0=src/test/java
maven.build.srcDir.0=src/main/java
|
|
|
Back to top |
|
 |
sera Retired Dev

Joined: 29 Feb 2008 Posts: 1017 Location: CET
|
Posted: Mon Jun 27, 2011 4:06 pm Post subject: |
|
|
You need to append java-ant-2 to the inherit line and remove src_compile from the ebuild or call java-ant-2_src_compile in the ebuilds src_compile.
This should get you quite a bit further. Also by looking at the build.xml it looks like you are missing some dependencies. |
|
Back to top |
|
 |
Chewi Developer


Joined: 01 Sep 2003 Posts: 886 Location: Edinburgh, Scotland
|
Posted: Wed Nov 02, 2011 11:38 pm Post subject: |
|
|
Sorry I'm late to this party. There was a little progress with the GSoC stuff but I'm not a big Maven fan and it wasn't going to do things right here anyway. Craftbukkit has a few dependencies that aren't in the tree and bundling them all up wouldn't be the right thing to do. I've just about finished my Craftbukkit ebuild that does everything properly. Please refer to this thread for updates on that. |
|
Back to top |
|
 |
|