Il 07/01/2013 18:46, gil ha scritto:
Il 07/01/2013 17:14, Jochen Schmitt ha scritto:
Hallo,
Unfortunately, I have an issue to build scala-2.10.0 on rawhide. I have
got the following error message from the buildsystem:
artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) biz.aQute:bnd:jar:1.50.0
[artifact:dependencies]
[artifact:dependencies] Try downloading the file manually from the
project website.
[artifact:dependencies]
[artifact:dependencies] Then, install it using the command:
[artifact:dependencies] mvn install:install-file
-DgroupId=biz.aQute -DartifactId=bnd -Dversion=1.50.0 -Dpackaging=jar
-Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies] Alternatively, if you host your own
repository you can deploy the file there:
[artifact:dependencies] mvn deploy:deploy-file
-DgroupId=biz.aQute -DartifactId=bnd -Dversion=1.50.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) org.apache.maven:super-pom:jar:2.0
[artifact:dependencies] 2) biz.aQute:bnd:jar:1.50.0
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies]
[artifact:dependencies] for artifact:
[artifact:dependencies] org.apache.maven:super-pom:jar:2.0
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] central (http://repo1.maven.org/maven2)
[artifact:dependencies]
[artifact:dependencies]
BUILD FAILED
/builddir/build/BUILD/scala-2.10.0-sources/build.xml:283: Unable to
resolve artifact: Missing:
----------
1) biz.aQute:bnd:jar:1.50.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=biz.aQute -DartifactId=bnd
-Dversion=1.50.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the
file there:
mvn deploy:deploy-file -DgroupId=biz.aQute -DartifactId=bnd
-Dversion=1.50.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
Path to dependency:
1) org.apache.maven:super-pom:jar:2.0
2) biz.aQute:bnd:jar:1.50.0
----------
1 required artifact is missing.
for artifact:
org.apache.maven:super-pom:jar:2.0
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
It may be nice, if anyone can get me a hint to solve this
issue.
Best Regards:
Jochen Schmitt
hi,
should be disabled the maven-ant-tasks support with a patch...
and add the system aqute-bnd library path where needed
regards
gil
e.g.
line 301 <typedef resource="aQute/bnd/ant/taskdef.properties"
classpathref="extra.tasks.classpath" />
should be replaced by
<taskdef resource="aQute/bnd/ant/taskdef.properties"
classpath="/usr/share/java/aqute-bnd.jar"/>
use aqute-bnd.jar because aqute-bndlib.jar don't provides an ant bnd task
p.s. attached a new build script for some scala component (includes jline)
in the spec file should append these BR
BuildRequires: jansi
BuildRequires: jansi-native
BuildRequires: junit
<?xml version="1.0"?>
<!-- scala 2.10.0-RC3 build file by gil -->
<!-- scala 2.10.0 build file by gil -->
<!-- for rebuild only this scala components -->
<project name="scala-components" basedir=".">
<property name="version" value="2.10.0"/>
<property name="lib.dir" value="${basedir}/lib"/>
<property name="fjbg.dir" value="${basedir}/fjbg"/>
<property name="fjbg.src.dir" value="${basedir}/src/fjbg"/>
<property name="fjbg.build.dir" value="${fjbg.dir}/classes"/>
<property name="fjbg.jar" value="${basedir}/lib/fjbg.jar"/>
<property name="forkjoin.dir" value="${basedir}/forkjoin"/>
<property name="forkjoin.src.dir" value="${basedir}/src/forkjoin"/>
<property name="forkjoin.build.dir" value="${forkjoin.dir}/classes"/>
<property name="forkjoin.jar" value="${basedir}/lib/forkjoin.jar"/>
<property name="msil.dir" value="${basedir}/msil"/>
<property name="msil.src.dir" value="${basedir}/src/msil"/>
<property name="msil.build.dir" value="${msil.dir}/classes/msil"/>
<property name="msil.jar" value="${basedir}/lib/msil.jar"/>
<property name="jline.dir" value="${basedir}/jline"/>
<property name="jline.src.dir" value="${basedir}/src/jline/src/main/java"/>
<property name="jline.res.dir" value="${basedir}/src/jline/src/main/resources"/>
<property name="jline.build.dir" value="${jline.dir}/classes"/>
<property name="jline.jar" value="${basedir}/lib/jline.jar"/>
<target name="build"
depends="build.fjbg,build.forkjoin,build.jline,build.msil" description="Compile the sources">
</target>
<target name="dist" depends="clean,build"
description="generate the distribution" >
</target>
<target name="clean">
<delete file="${fjbg.jar}" />
<delete file="${forkjoin.jar}" />
<delete file="${jline.jar}" />
<delete file="${msil.jar}" />
<delete dir="${fjbg.dir}" />
<delete dir="${forkjoin.dir}" />
<delete dir="${jline.dir}" />
<delete dir="${msil.dir}" />
</target>
<path id="scalac.classpath">
<fileset dir="/usr/share/java" includes="ant.jar"/>
<fileset dir="${lib.dir}" includes="scala-compiler.jar"/>
<fileset dir="${lib.dir}" includes="scala-library.jar"/>
<fileset dir="${lib.dir}" includes="scala-reflect.jar"/>
<fileset dir="${basedir}/lib" includes="fjbg.jar"/>
<fileset dir="${basedir}/lib" includes="forkjoin.jar"/>
<pathelement location="${msil.build.dir}"/>
</path>
<path id="jline.classpath">
<fileset dir="/usr/share/java" includes="jansi.jar"/>
<fileset dir="/usr/share/java-jni" includes="jansi-native.jar"/>
<fileset dir="/usr/share/java" includes="junit.jar"/>
</path>
<path id="fjbg.classpath">
<pathelement location="${fjbg.build.dir}/**"/>
</path>
<path id="forkjoin.classpath">
<pathelement location="${forkjoin.build.dir}/**"/>
</path>
<target name="build.fjbg" description="Build Scala fjbg component">
<compile-javac
buildclasspath="fjbg.classpath"
dirsrc="${fjbg.src.dir}"
destfile="${fjbg.build.dir}"/>
<make-jar
basedir="${fjbg.build.dir}"
destfile="${fjbg.jar}"/>
</target>
<target name="build.forkjoin" description="Build Scala forkjoin component">
<compile-javac
buildclasspath="forkjoin.classpath"
dirsrc="${forkjoin.src.dir}"
destfile="${forkjoin.build.dir}"/>
<make-jar
basedir="${forkjoin.build.dir}"
destfile="${forkjoin.jar}"/>
</target>
<target name="build.msil" description="Build Scala msil component">
<mkdir dir="${msil.build.dir}"/>
<compile-scala
dirsrc="${msil.src.dir}"
destfile="${msil.build.dir}" />
<make-jar
basedir="${msil.build.dir}"
destfile="${msil.jar}"/>
</target>
<target name="build.jline" description="Build Scala jline">
<mkdir dir="${jline.build.dir}"/>
<compile-javac
buildclasspath="jline.classpath"
dirsrc="${jline.src.dir}"
destfile="${jline.build.dir}" />
<copy todir="${jline.build.dir}">
<fileset dir="${jline.res.dir}"/>
</copy>
<make-jar
basedir="${jline.build.dir}"
destfile="${jline.jar}"/>
</target>
<macrodef name="compile-javac">
<attribute name="destfile"/>
<attribute name="dirsrc"/>
<attribute name="excludes" default=""/>
<attribute name="includes" default=""/>
<attribute name="buildclasspath" default=""/>
<sequential>
<mkdir dir="@{destfile}"/>
<javac
srcdir="@{dirsrc}"
destdir="@{destfile}"
classpathref="@{buildclasspath}"
debug="true"
target="1.5" source="1.5">
<exclude name="@{excludes}"/>
</javac>
</sequential>
</macrodef>
<taskdef name="scalac" classname="scala.tools.ant.sabbus.ScalacFork" classpathref="scalac.classpath"/>
<macrodef name="compile-scala">
<attribute name="destfile"/>
<attribute name="dirsrc"/>
<attribute name="excludes" default=""/>
<attribute name="includes" default=""/>
<attribute name="buildclasspath" default=""/>
<sequential>
<javac
srcdir="@{dirsrc}"
destdir="@{destfile}"
includes="**/*.java"
excludes="**/tests/**"
debug="true"
target="1.5" source="1.5">
</javac>
<scalac
srcdir="@{dirsrc}"
destdir="@{destfile}"
compilerpathref="scalac.classpath">
<include name="**/*.scala"/>
<compilationpath>
<pathelement location="${msil.build.dir}"/>
<pathelement location="/usr/share/java/ant.jar"/>
<pathelement location="${lib.dir}/scala-compiler.jar"/>
<pathelement location="${lib.dir}/scala-library.jar"/>
<pathelement location="${lib.dir}/scala-reflect.jar"/>
<pathelement location="${basedir}/lib/fjbg.jar"/>
<pathelement location="${basedir}/lib/forkjoin.jar"/>
</compilationpath>
</scalac>
</sequential>
</macrodef>
<macrodef name="make-jar">
<attribute name="destfile"/>
<attribute name="basedir"/>
<attribute name="excludes" default=""/>
<attribute name="includes" default="**"/>
<attribute name="resources" default=""/>
<attribute name="paramvalue" default=""/>
<sequential>
<jar destfile="@{destfile}"
basedir="@{basedir}"
includes="@{includes}">
</jar>
</sequential>
</macrodef>
</project>
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel