Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building Jolliday v_0_5_9 #120

Open
Mechtilde opened this issue Oct 6, 2019 · 15 comments
Open

Building Jolliday v_0_5_9 #120

Mechtilde opened this issue Oct 6, 2019 · 15 comments

Comments

@Mechtilde
Copy link

Hello
I tried to build jollyday myself to package it for the Debian repository. I need it as a dependency of JVerein. I also want to package JVerein for Debian.

I get the following message: build/jollyday-0.5.9/src/main/java/de/jollyday/datasource/ConfigurationDataSource.java:[19,26] package de.jollyday.config does not exist

If I look deeper into the source code I can't find the directors src/main/java/de/jollyday/config. There is no any directory and no file "config".

How can I proceed?

Any hints?

Kind regards
Mechtilde

@svendiedrichsen
Copy link
Owner

svendiedrichsen commented Oct 6, 2019

You must build Jollyday using maven. The missing package and its classes will be generated by maven and packaged during build into the target jar file.

Can't you use the ready built jar files from the maven repo for your debian build? After all there are some checksums that go with the jar files which you probably would like to ship in your build too. And those will differ from the official ones if you rebuild the jar.

@Mechtilde
Copy link
Author

Hello

I build Jollyday with maven.
Where can I get the sources for it? Then I can build it before I build Jollyday.

Kind regards

@svendiedrichsen
Copy link
Owner

svendiedrichsen commented Oct 6, 2019

The missing classes will be generated from Holiday.xsd file. Which is in the sources. The pom.xml file contains a section for the jax-maven-plugin which calls xjc tool to generate the sources. There seems to be a problem with the xjc tool on your machine. Which JDK are you using?
Could you run maven with -X option and post the output?

@svendiedrichsen
Copy link
Owner

@Mechtilde Did you make any progress on this?

@Mechtilde
Copy link
Author

Mechtilde commented Oct 9, 2019 via email

@svendiedrichsen
Copy link
Owner

@Mechtilde jax-maven-plugin is a maven plugin. You don't need to package this. It will be downloaded by maven when needed.

@Mechtilde
Copy link
Author

Mechtilde commented Oct 9, 2019 via email

@svendiedrichsen
Copy link
Owner

svendiedrichsen commented Oct 9, 2019

@Mechtilde
Copy link
Author

The missing classes will be generated from Holiday.xsd file. Which is in the sources. The pom.xml file contains a section for the jax-maven-plugin which calls xjc tool to generate the sources. There seems to be a problem with the xjc tool on your machine. Which JDK are you using?
I use OpenJDK 11.

I build jax-maven-plugin successfully; but building Jollyday failed with the same error message.

Which changes are also needed to use jax-maven-plugin (https://salsa.debian.org/java-team/jax-maven-plugin).
i can also provide the binary *.jar if desired.

Kind regards

@Mechtilde
Copy link
Author

Hello,
I did a little bit progress with a lot of trickery.

Now I looked for javax.xml.bind.annotation which should be shipped by Java 8. Now I have to use Java 11.
I need it in src/main/java/de/jollyday/config/org/example/holiday/ChristianHoliday.java:11 ff.

@burberius
Copy link

burberius commented Nov 4, 2019

The current version of Jolliday can't be built on newer JDK version, see also #116 and #72

@Mechtilde
Copy link
Author

Mechtilde commented Nov 10, 2019 via email

@burberius
Copy link

I just packaged it with openJDK 11 without errors!
There were just some warnings in the tests about classloader.
I event set the java version to 11 in the pom and it still built!
So looks like there are only problems with >=12

@Mechtilde
Copy link
Author

Hello
is there a timeframe to be buildable with Java >= 11?

Or is there a workaround?

I want to build JVerein which depends on Jollyday.

@svendiedrichsen
Copy link
Owner

Hello
is there a timeframe to be buildable with Java >= 11?

Or is there a workaround?

I want to build JVerein which depends on Jollyday.

As you can see from the comment of @burberius Jollyday is buildable with JDK 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants