Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #11702

To build a java package with maven

From Mechtilde Stehmann <mechtilde@debian.org>
Newsgroups linux.debian.maint.java
Subject To build a java package with maven
Date 2020-06-20 12:50 +0200
Message-ID <AjJep-6PW-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hello

Again I'm trying to build a< new Java library which I need as a
dependency. This is Jcabi-Aspects (https://github.com/jcabi/jcabi-aspects)

when I build it, the compiler claims that the dependency can't be resolved:
javax.validation:validation-api:jar:debian for the file
https://github.com/jcabi/jcabi-aspects/blob/master/src/main/java/com/jcabi/aspects/aj/MethodValidator.java

line 36-39

I hoped to found a solution in building
https://github.com/eclipse-ee4j/beanvalidation-api as
libbeanvalidation-api-java.

which contains the class Validation.

In the d/rules I did the entry

export CLASSPATH := /usr/share/java/jakarta.validation-api.jar

This is the jar file in the package libbeanvalidation-api-java

and in d/maven.rules
s/javax.validation/jakarta.validation/
s/validation-api/jakarta.validation-api/ * s/.*/debian/ * compile

In the pom.xml I found the entry.

        <dependency>
            <groupId>javax.validation</groupId>
             <artifactId>validation-api</artifactId>
             <scope>compile</scope>
        </dependency>
When I look into the package libbeanvalidation-api-java I found this entry:
/usr/share/maven-repo/jakarta/validation/jakarta.validation-api/debian/jakarta.validation-api-debian.jar

But I get the error message that
package javax.validation does not exist

Can someone point me to the right entries?

Thanks in advance

-- 
Mechtilde Stehmann
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F

Back to linux.debian.maint.java | Previous | NextNext in thread | Find similar


Thread

To build a java package with maven Mechtilde Stehmann <mechtilde@debian.org> - 2020-06-20 12:50 +0200
  Re: To build a java package with maven Thorsten Glaser <t.glaser@tarent.de> - 2020-06-20 17:00 +0200
    Re: To build a java package with maven tony mancill <tmancill@debian.org> - 2020-06-20 17:20 +0200
      Re: To build a java package with maven Emmanuel Bourg <ebourg@apache.org> - 2020-06-21 01:30 +0200
    Re: To build a java package with maven Mechtilde <ooo@mechtilde.de> - 2020-06-20 18:20 +0200
      Re: To build a java package with maven Thorsten Glaser <t.glaser@tarent.de> - 2020-06-20 19:10 +0200
        Re: To build a java package with maven Mechtilde Stehmann <mechtilde@debian.org> - 2020-06-20 20:00 +0200
          Re: To build a java package with maven Thorsten Glaser <t.glaser@tarent.de> - 2020-06-20 20:30 +0200
            Re: To build a java package with maven Mechtilde Stehmann <mechtilde@debian.org> - 2020-06-21 08:10 +0200
              Re: To build a java package with maven Emmanuel Bourg <ebourg@apache.org> - 2020-06-21 11:00 +0200
                Re: To build a java package with maven Mechtilde Stehmann <mechtilde@debian.org> - 2020-06-21 11:40 +0200
      Re: To build a java package with maven Emmanuel Bourg <ebourg@apache.org> - 2020-06-21 01:20 +0200
        OT javax.mail (was Re: To build a java package with maven) Thorsten Glaser <t.glaser@tarent.de> - 2020-06-21 01:30 +0200
          Re: OT javax.mail (was Re: To build a java package with maven) Emmanuel Bourg <ebourg@apache.org> - 2020-06-21 01:50 +0200
        Re: To build a java package with maven Mechtilde Stehmann <mechtilde@debian.org> - 2020-06-21 08:00 +0200

csiph-web