



















@Spixmaster: It is fixed now. Sorry for the issues, but eclipse's mirror system is a bit ... peculiar
I compiled from source. The tests fail so they have to be disabled.
Even then the result is broken.
❯ lemminx
Picked up _JAVA_OPTIONS: -Djava.util.prefs.userRoot=/home/matheus/.config/java/
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
no main manifest attribute, in /usr/share/java/lemminx/lemminx-0.31.1.jar
# Maintainer: Bart Libert <bart plus aur at libert dot email>
# Contributor: Radim Sückr <kontakt@radimsuckr.cz>
# This PKGBUILD is based on https://aur.archlinux.org/packages/jdtls, thank you
pkgname=lemminx
pkgver=0.31.1
_jarname="${pkgname}-${pkgver}.jar"
pkgrel=1
pkgdesc='Eclipse XML language server'
arch=('any')
url='https://github.com/eclipse/lemminx'
license=('EPL-2.0')
depends=('java-runtime')
makedepends=()
# https://download.eclipse.org/lemminx/releases/
source=("${pkgname}-v${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz"
'launcher.sh')
sha512sums=('1d1b0d532991de8da7e1fb864f3094bf997aac236573eda4a9a30ba230517a1701ce71e7aed174dfad7be1caa1b15043a33912e95f7752561f1c6bfcf3981e8d'
'21973956910861bb7c608a0240cc8fd2ef15a5753bfee8df36dfda39721a06d474a66c59a22501b990fb3d3d063531a385dca62a7e91b248c1cb9509aff77cec')
changelog="CHANGELOG.md"
build()
{
cd "${srcdir}"/"${pkgname}"-"${pkgver}"/ || exit 1
./mvnw clean verify -DskipTests
}
package()
{
install -Dm644 "${srcdir}"/"${pkgname}"-"${pkgver}"/org.eclipse.lemminx/target/org.eclipse.lemminx-0.31.1.jar "${pkgdir}/usr/share/java/lemminx/${_jarname}"
# for file in ${srcdir}/license/*; do
# install -Dm644 "${srcdir}/license/${file##*/}" "${pkgdir}/usr/share/licenses/${pkgname}/${file##*/}"
# done
install -Dm755 "${srcdir}/launcher.sh" "${pkgdir}/usr/bin/lemminx"
}
I fixed the PKGBUILD locally. Even then, it is still broken.
❯ lemminx
Error: Invalid or corrupt jarfile /usr/share/java/lemminx/lemminx-0.31.1.jar
In general, the approach is wrong. Do not install a binary. Otherwise, the package should be called lemminx-bin.
Use ./mvnw clean verify.
Error happens.
install: cannot stat '/home/matheus/.cache/paru/clone/lemminx/src/license/*': No such file or directory
Please follow RFC16 use EPL-2.0
Oh they stopped doing releases and switched to tags instead. Hope others also see this. Sorry for flagging.
Why is the version at 20 when the release on the git page is only at 11?
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
Hi everyone... It is giving error again in the license directory
Removing the license check/copy code, like @spixmaster showed below, worked for me. Thanks!