Comments (6)
What do you mean by Java8? Is there two Java8?
The Jenkins-server that builds everything and runs the tests uses the docker image with java bundled. It uses the image maven:3-ibmjava-8. That in turn contains Java 8.
$ sudo docker exec e89ade7424a8 java -version java version "1.8.0_241" Java(TM) SE Runtime Environment (build 8.0.6.6 - pxa6480sr6fp6-20200303_01(SR6 FP6)) IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20200124_438197 (JIT enabled, AOT enabled) OpenJ9 - 6754bf2 OMR - dca2cde IBM - 5cc5f54) JCL - 20200303_01 based on Oracle jdk8u241-b07 $
When buildnig and testing on my Linux host I successfully use another Java8:
$ java -version java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
As I hope you noticed from my comment on the Change in Gerrithub, your changes makes many tests fail on that Jenkins-server.
from argouml.
The java version is one thing, the target compilation version is another.
I guess the issue comes from parentpom/pom.xml which has the definition:
<compileSource>1.6</compileSource>
I've changed that locally to use:
<compileSource>11</compileSource>
From maven, I'm using:
java -version
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing)
And from Intellij Idea, I was using JDK 1.8.0162 with target version 1.8.
I recently had to abandon the JDK 1.8 in favor of OpenJDK 11.
from argouml.
When running the unit tests with maven, I'm getting:
Tests run: 1175, Failures: 0, Errors: 1, Skipped: 0
The failed test is org.argouml.uml.ui.foundation.extension_mechanisms. TestUMLTagDefinitionComboBoxModel
and it fails because it tries to download a file at http://argouml.org/user-profiles/
.
Caused by: org.argouml.model.XmiReferenceException: http://argouml.org/user-profiles/Profile4testGetApplic
ableTagDefinitionsIssue60082556515217236653360.xmi
at org.argouml.model.mdr.XmiReaderImpl.parse(XmiReaderImpl.java:355)
at org.argouml.persistence.ModelMemberFilePersister.readModels(ModelMemberFilePersister.java:277)
... 29 more
Caused by: javax.jmi.xmi.MalformedXMIException: org.xml.sax.SAXException: XMI parsing error at line: 32: h
ttp://argouml.org/user-profiles/Profile4testGetApplicableTagDefinitionsIssue60082556515217236653360.xmi
org.argouml.model.XmiReferenceRuntimeException: http://argouml.org/user-profiles/Profile4testGetApplicable
TagDefinitionsIssue60082556515217236653360.xmi
at org.netbeans.lib.jmi.xmi.SAXReader.read(SAXReader.java:62)
at org.argouml.model.mdr.XmiReaderImpl.parse(XmiReaderImpl.java:282)
... 30 more
</error>
from argouml.
When running the unit tests with maven, I'm getting:
Tests run: 1175, Failures: 0, Errors: 1, Skipped: 0
Rebase the argouml project (repo sync, repo rebase). I have fixed that now.
from argouml.
I guess the issue comes from parentpom/pom.xml which has the definition:
<compileSource>1.6</compileSource>
ArgoUML shouldn't really care about what version of Java it is compiled by and for. Should we stop specifying compileSource in parentpom?
from argouml.
The compileSource
is necessary otherwise the build fails.
I've rebased and changed the parent pom to:
<compileSource>8</compileSource>
and now I'm getting the following
Tests run: 1175, Failures: 0, Errors: 0, Skipped: 0
For me it seems reasonable to compile and use JRE 8 as target.
from argouml.
Related Issues (20)
- "Undo" and "Redo" functionality. HOT 2
- Add basic build instructions to the main README.md HOT 4
- Error: Maven compile task. HOT 4
- how to add plugin HOT 3
- Failed to create a prop panel HOT 2
- Setting up on new machine, empty repository HOT 7
- No Java Runtime Environment HOT 14
- Missing Preferences in top-level menu with JDK 17 HOT 1
- Why doesnt work on the windows 11. I cloned the files, but build related function was not created. HOT 1
- Use batik 1.14
- Allow to have several directories to search for UML default profiles
- Please give me a link to jar or docker file HOT 2
- Can not open sequence diagram HOT 1
- ArgoUML cannot be installed on any windows systems HOT 1
- Missing Long type for Java class fields HOT 2
- Cannot set generic List for field type HOT 1
- Fail to build using JDK 8 or higher HOT 1
- Add Golang support HOT 1
- Continuously throwing java.lang.InterruptedException to syslog fills disk after some minutes HOT 1
- mvn compile fails on Ubuntu - tried many jdks HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argouml.