Closed yuuyins closed 3 years ago
As ffe suggested, using Maven 3.6.0 solves the issue (I was using 3.8.1 before). Now I can successfully build Modelio 4.1.0 with the below nix-shell environment:
{ pkgs ? import <nixpkgs> { } }:
let
maven360 = pkgs.maven3.overrideAttrs (oldAttrs: rec {
pname = "apache-maven";
version = "3.6.0";
src = pkgs.fetchurl {
url = "https://archive.apache.org/dist/maven/maven-3/${version}/binaries/${pname}-${version}-bin.tar.gz";
sha256 = "0ds61yy6hs7jgmld64b65ss6kpn5cwb186hw3i4il7vaydm386va";
};
});
in with pkgs;
mkShell {
nativeBuildInputs = [
eclipses.eclipse-sdk
maven360
openjdk8_headless
];
buildInputs = [
glibc
atk
gtk2
cairo
glib
webkitgtk
xorg.libXtst
gcc
swt
jre8
freetype
perl
python
];
JAVA_HOME = openjdk8_headless.home;
LANG = "C.UTF-8";
LC_ALL = "C.UTF-8";
}
Build success.
[INFO] --- tycho-p2-director-plugin:1.5.0:archive-products (archive-products) @ products ---
[INFO] Building tar: /mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/products/target/products/org.modelio.product-linux.gtk.x86_64.tar.gz
[INFO] Building zip: /mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/products/target/products/org.modelio.product-win32.win32.x86_64.zip
[INFO] Building tar: /mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/products/target/products/org.modelio.product-macosx.cocoa.x86_64.tar.gz
[INFO]
[INFO] -------------------< org.modelio:modelio-aggregator >-------------------
[INFO] Building modelio-aggregator 4.1.0-SNAPSHOT [156/156]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] modelio-parent 4.1.0-SNAPSHOT ...................... SUCCESS [ 0.003 s]
[INFO] org.modelio.core.utils 4.1.0-SNAPSHOT .............. SUCCESS [ 4.259 s]
[INFO] org.modelio.platform.utils 4.1.0-SNAPSHOT .......... SUCCESS [ 0.319 s]
[INFO] org.modelio.core.kernel 4.1.0-SNAPSHOT ............. SUCCESS [ 1.136 s]
[INFO] org.modelio.core.session 4.1.0-SNAPSHOT ............ SUCCESS [ 1.013 s]
[INFO] org.modelio.core.metamodel.api 4.1.0-SNAPSHOT ...... SUCCESS [ 1.032 s]
[INFO] org.modelio.core.metamodel.impl 4.1.0-SNAPSHOT ..... SUCCESS [ 3.725 s]
[INFO] org.modelio.core.store.exml 4.1.0-SNAPSHOT ......... SUCCESS [ 0.583 s]
[INFO] org.modelio.version 4.1.0-SNAPSHOT ................. SUCCESS [ 0.108 s]
[INFO] org.modelio.core.project.data 4.1.0-SNAPSHOT ....... SUCCESS [ 0.525 s]
[INFO] org.modelio.core.project 4.1.0-SNAPSHOT ............ SUCCESS [ 0.611 s]
[INFO] org.modelio.platform.rcp 4.1.0-SNAPSHOT ............ SUCCESS [ 0.246 s]
[INFO] org.modelio.platform.ui 4.1.0-SNAPSHOT ............. SUCCESS [ 0.619 s]
[INFO] org.modelio.platform.preferences 4.1.0-SNAPSHOT .... SUCCESS [ 0.293 s]
[INFO] org.modelio.core.modelshield 4.1.0-SNAPSHOT ........ SUCCESS [ 0.112 s]
[INFO] org.modelio.platform.api 4.1.0-SNAPSHOT ............ SUCCESS [ 0.796 s]
[INFO] org.modelio.platform.core 4.1.0-SNAPSHOT ........... SUCCESS [ 0.233 s]
[INFO] org.modelio.platform.mda.infra 4.1.0-SNAPSHOT ...... SUCCESS [ 0.564 s]
[INFO] org.modelio.platform.search.engine 4.1.0-SNAPSHOT .. SUCCESS [ 0.083 s]
[INFO] org.modelio.platform.model.ui 4.1.0-SNAPSHOT ....... SUCCESS [ 0.829 s]
[INFO] org.modelio.platform.script.engine 4.1.0-SNAPSHOT .. SUCCESS [ 2.523 s]
[INFO] org.modelio.platform.project 4.1.0-SNAPSHOT ........ SUCCESS [ 0.505 s]
[INFO] org.modelio.platform.module.commands 4.1.0-SNAPSHOT SUCCESS [ 0.163 s]
[INFO] org.modelio.platform.module.browser.commands 4.1.0-SNAPSHOT SUCCESS [ 0.164 s]
[INFO] org.modelio.app.model.browser.view 4.1.0-SNAPSHOT .. SUCCESS [ 0.382 s]
[INFO] org.modelio.app.admtool 4.1.0-SNAPSHOT ............. SUCCESS [ 0.269 s]
[INFO] org.modelio.app.admtool.ext_org 4.1.0-SNAPSHOT ..... SUCCESS [ 0.183 s]
[INFO] org.modelio.app.editors.texteditors 4.1.0-SNAPSHOT . SUCCESS [ 0.273 s]
[INFO] org.modelio.app.diagram.persistence 4.1.0-SNAPSHOT . SUCCESS [ 0.117 s]
[INFO] org.modelio.app.diagram.styles 4.1.0-SNAPSHOT ...... SUCCESS [ 0.507 s]
[INFO] org.modelio.app.editors.richnote 4.1.0-SNAPSHOT .... SUCCESS [ 0.342 s]
[INFO] org.modelio.app.diagram.elements 4.1.0-SNAPSHOT .... SUCCESS [ 2.830 s]
[INFO] org.modelio.app.diagram.editor 4.1.0-SNAPSHOT ...... SUCCESS [ 0.830 s]
[INFO] org.modelio.app.diagram.api 4.1.0-SNAPSHOT ......... SUCCESS [ 0.412 s]
[INFO] org.modelio.app.project.conf 4.1.0-SNAPSHOT ........ SUCCESS [ 0.274 s]
[INFO] org.modelio.app.audit 4.1.0-SNAPSHOT ............... SUCCESS [ 0.444 s]
[INFO] org.modelio.modelermodule 9.2.0 .................... SUCCESS [ 1.117 s]
[INFO] org.modelio.app.xmi 4.1.0-SNAPSHOT ................. SUCCESS [ 2.049 s]
[INFO] org.modelio.app.patterns 4.1.0-SNAPSHOT ............ SUCCESS [ 0.514 s]
[INFO] org.modelio.app.ramcs 4.1.0-SNAPSHOT ............... SUCCESS [ 0.300 s]
[INFO] org.modelio.platform.model.view.template 4.1.0-SNAPSHOT SUCCESS [ 0.128 s]
[INFO] org.modelio.app.creation.wizard 4.1.0-SNAPSHOT ..... SUCCESS [ 0.375 s]
[INFO] org.modelio.app.api.impl 4.1.0-SNAPSHOT ............ SUCCESS [ 0.499 s]
[INFO] org.modelio.app.api.impl.ext_org 4.1.0-SNAPSHOT .... SUCCESS [ 0.024 s]
[INFO] org.modelio.app.audit.ext_org 4.1.0-SNAPSHOT ....... SUCCESS [ 0.164 s]
[INFO] org.modelio.app.creation.wizard.ext_org 4.1.0-SNAPSHOT SUCCESS [ 0.148 s]
[INFO] org.modelio.app.diagram.browser 4.1.0-SNAPSHOT ..... SUCCESS [ 0.320 s]
[INFO] org.modelio.app.diagram.diagramauto 4.1.0-SNAPSHOT . SUCCESS [ 0.268 s]
[INFO] org.modelio.app.diagram.outline 4.1.0-SNAPSHOT ..... SUCCESS [ 0.137 s]
[INFO] org.modelio.app.diagram.styles.ext_org 4.1.0-SNAPSHOT SUCCESS [ 0.056 s]
[INFO] org.modelio.app.diagram.symbol 4.1.0-SNAPSHOT ...... SUCCESS [ 0.239 s]
[INFO] org.modelio.app.ui 4.1.0-SNAPSHOT .................. SUCCESS [ 0.185 s]
[INFO] org.modelio.app.model.property 4.1.0-SNAPSHOT ...... SUCCESS [ 0.511 s]
[INFO] org.modelio.app.module.propertytab 4.1.0-SNAPSHOT .. SUCCESS [ 0.228 s]
[INFO] org.modelio.app.edition.dialogs 4.1.0-SNAPSHOT ..... SUCCESS [ 0.335 s]
[INFO] org.modelio.app.script.ui 4.1.0-SNAPSHOT ........... SUCCESS [ 0.275 s]
[INFO] org.modelio.app.edition.notes 4.1.0-SNAPSHOT ....... SUCCESS [ 0.271 s]
[INFO] org.modelio.app.editors.richnote.libreoffice 4.1.0-SNAPSHOT SUCCESS [ 48.161 s]
[INFO] org.modelio.app.editors.richnote.microsoft 4.1.0-SNAPSHOT SUCCESS [ 16.627 s]
[INFO] org.modelio.app.link.editor 4.1.0-SNAPSHOT ......... SUCCESS [ 0.298 s]
[INFO] org.modelio.app.link.editor.ext_org 4.1.0-SNAPSHOT . SUCCESS [ 0.224 s]
[INFO] org.modelio.app.model.browser.view.ext_org 4.1.0-SNAPSHOT SUCCESS [ 0.195 s]
[INFO] org.modelio.app.model.import 4.1.0-SNAPSHOT ........ SUCCESS [ 0.187 s]
[INFO] org.modelio.app.model.search.ui 4.1.0-SNAPSHOT ..... SUCCESS [ 0.211 s]
[INFO] org.modelio.platform.update.repo 4.1.0-SNAPSHOT .... SUCCESS [ 0.198 s]
[INFO] org.modelio.app.update 4.1.0-SNAPSHOT .............. SUCCESS [ 0.181 s]
[INFO] org.modelio.app.module.catalog 4.1.0-SNAPSHOT ...... SUCCESS [ 0.187 s]
[INFO] org.modelio.app.project.conf.ext_org 4.1.0-SNAPSHOT SUCCESS [ 0.259 s]
[INFO] org.modelio.app.project.ui 4.1.0-SNAPSHOT .......... SUCCESS [ 0.229 s]
[INFO] org.modelio.app.project.ui.ext_org 4.1.0-SNAPSHOT .. SUCCESS [ 0.242 s]
[INFO] org.modelio.app.propertyview 4.1.0-SNAPSHOT ........ SUCCESS [ 0.234 s]
[INFO] org.modelio.app.semantic.browser 4.1.0-SNAPSHOT .... SUCCESS [ 0.204 s]
[INFO] org.modelio.app.ui.welcome 4.1.0-SNAPSHOT .......... SUCCESS [ 0.138 s]
[INFO] org.modelio.app.ui.ext_org 4.1.0-SNAPSHOT .......... SUCCESS [ 0.187 s]
[INFO] org.modelio.app.ui.perspective 4.1.0-SNAPSHOT ...... SUCCESS [ 0.054 s]
[INFO] org.modelio.app.update.ext_org 4.1.0-SNAPSHOT ...... SUCCESS [ 0.103 s]
[INFO] org.modelio.bpmn.diagram.editor 4.1.0-SNAPSHOT ..... SUCCESS [ 1.306 s]
[INFO] org.modelio.bpmn.metamodel.api 4.1.0-SNAPSHOT ...... SUCCESS [ 0.023 s]
[INFO] org.modelio.bpmn.metamodel.implementation 4.1.0-SNAPSHOT SUCCESS [ 0.028 s]
[INFO] org.modelio.bpmn.metamodel.contribution 4.1.0-SNAPSHOT SUCCESS [ 0.039 s]
[INFO] org.modelio.bpmn.ui 4.1.0-SNAPSHOT ................. SUCCESS [ 0.230 s]
[INFO] org.modelio.bpmn-xml 4.1.0-SNAPSHOT ................ SUCCESS [ 0.624 s]
[INFO] org.modelio.platform.metamodel.extensions 4.1.0-SNAPSHOT SUCCESS [ 0.032 s]
[INFO] org.modelio.platform.project.ext_org 4.1.0-SNAPSHOT SUCCESS [ 0.114 s]
[INFO] org.modelio.uml.statikdiagram.editor 4.1.0-SNAPSHOT SUCCESS [ 1.295 s]
[INFO] org.modelio.uml.activitydiagram.editor 4.1.0-SNAPSHOT SUCCESS [ 0.805 s]
[INFO] org.modelio.uml.communicationdiagram.editor 4.1.0-SNAPSHOT SUCCESS [ 0.264 s]
[INFO] org.modelio.uml.objectdiagram.editor 4.1.0-SNAPSHOT SUCCESS [ 0.232 s]
[INFO] org.modelio.uml.compositediagram.editor 4.1.0-SNAPSHOT SUCCESS [ 0.159 s]
[INFO] org.modelio.uml.deploymentdiagram.editor 4.1.0-SNAPSHOT SUCCESS [ 0.241 s]
[INFO] org.modelio.uml.metamodel.api 4.1.0-SNAPSHOT ....... SUCCESS [ 0.018 s]
[INFO] org.modelio.uml.metamodel.contribution 4.1.0-SNAPSHOT SUCCESS [ 0.028 s]
[INFO] org.modelio.uml.metamodel.implementation 4.1.0-SNAPSHOT SUCCESS [ 0.065 s]
[INFO] org.modelio.uml.sequencediagram.editor 4.1.0-SNAPSHOT SUCCESS [ 0.589 s]
[INFO] org.modelio.uml.statediagram.editor 4.1.0-SNAPSHOT . SUCCESS [ 0.490 s]
[INFO] org.modelio.uml.usecasediagram.editor 4.1.0-SNAPSHOT SUCCESS [ 0.340 s]
[INFO] org.modelio.uml.ui 4.1.0-SNAPSHOT .................. SUCCESS [ 1.595 s]
[INFO] org.modelio.uml.ui.ext.org 4.1.0-SNAPSHOT .......... SUCCESS [ 0.225 s]
[INFO] org.modelio.application.core 4.1.0-SNAPSHOT ........ SUCCESS [ 0.087 s]
[INFO] org.modelio.application.perspective 4.1.0-SNAPSHOT . SUCCESS [ 0.062 s]
[INFO] org.modelio.application.plugdule 4.1.0-SNAPSHOT .... SUCCESS [ 0.052 s]
[INFO] org.modelio.application.preferences 4.1.0-SNAPSHOT . SUCCESS [ 0.032 s]
[INFO] org.modelio.application.project 4.1.0-SNAPSHOT ..... SUCCESS [ 0.084 s]
[INFO] org.modelio.application.services 4.1.0-SNAPSHOT .... SUCCESS [ 0.049 s]
[INFO] org.modelio.application.ui 4.1.0-SNAPSHOT .......... SUCCESS [ 0.061 s]
[INFO] org.modelio.application.welcome 4.1.0-SNAPSHOT ..... SUCCESS [ 0.043 s]
[INFO] org.modelio.diagrams.auto 4.1.0-SNAPSHOT ........... SUCCESS [ 0.042 s]
[INFO] org.modelio.diagrams.core 4.1.0-SNAPSHOT ........... SUCCESS [ 0.072 s]
[INFO] doc-parent 4.1.0-SNAPSHOT .......................... SUCCESS [ 0.001 s]
[INFO] org.modelio.documentation.bpmn 4.1.0-SNAPSHOT ...... SUCCESS [01:41 min]
[INFO] org.modelio.documentation.copyright 4.1.0-SNAPSHOT . SUCCESS [ 0.794 s]
[INFO] org.modelio.documentation.metamodel.uml 4.1.0-SNAPSHOT SUCCESS [ 0.252 s]
[INFO] org.modelio.documentation.modelioapi 4.1.0-SNAPSHOT SUCCESS [ 0.986 s]
[INFO] org.modelio.documentation.modeliomodeler 4.1.0-SNAPSHOT SUCCESS [ 3.046 s]
[INFO] org.modelio.documentation.modeliomodeler.toc 4.1.0-SNAPSHOT SUCCESS [ 0.122 s]
[INFO] org.modelio.documentation.vaudit 4.1.0-SNAPSHOT .... SUCCESS [ 1.875 s]
[INFO] org.modelio.documentation.welcome 4.1.0-SNAPSHOT ... SUCCESS [ 0.150 s]
[INFO] org.modelio.documentation.modeler 4.1.0-SNAPSHOT ... SUCCESS [ 0.060 s]
[INFO] org.modelio.formalism.bpmn 4.1.0-SNAPSHOT .......... SUCCESS [ 0.117 s]
[INFO] org.modelio.formalism.uml 4.1.0-SNAPSHOT ........... SUCCESS [ 0.112 s]
[INFO] org.modelio.functions.admintool 4.1.0-SNAPSHOT ..... SUCCESS [ 0.046 s]
[INFO] org.modelio.functions.audit 4.1.0-SNAPSHOT ......... SUCCESS [ 0.041 s]
[INFO] org.modelio.functions.bundlefiles 4.1.0 ............ SUCCESS [ 1.016 s]
[INFO] org.modelio.functions.editors 4.1.0-SNAPSHOT ....... SUCCESS [ 0.045 s]
[INFO] org.modelio.functions.elementedition 4.1.0-SNAPSHOT SUCCESS [ 0.059 s]
[INFO] org.modelio.functions.fle 4.1.0-SNAPSHOT ........... SUCCESS [ 0.040 s]
[INFO] org.modelio.functions.modelbrowser 4.1.0-SNAPSHOT .. SUCCESS [ 0.042 s]
[INFO] org.modelio.functions.modelimport 4.1.0-SNAPSHOT ... SUCCESS [ 0.041 s]
[INFO] org.modelio.functions.modelviewtemplate 4.1.0-SNAPSHOT SUCCESS [ 0.025 s]
[INFO] org.modelio.functions.modules 4.1.0-SNAPSHOT ....... SUCCESS [ 0.072 s]
[INFO] org.modelio.functions.patterns 4.1.0-SNAPSHOT ...... SUCCESS [ 0.035 s]
[INFO] org.modelio.functions.script 4.1.0-SNAPSHOT ........ SUCCESS [ 0.034 s]
[INFO] org.modelio.functions.search 4.1.0-SNAPSHOT ........ SUCCESS [ 0.035 s]
[INFO] org.modelio.functions.update 4.1.0-SNAPSHOT ........ SUCCESS [ 0.030 s]
[INFO] org.modelio.functions.xmi 4.1.0-SNAPSHOT ........... SUCCESS [ 0.023 s]
[INFO] org.modelio.platform.feature 4.9.0.v20180906-1121 .. SUCCESS [ 0.306 s]
[INFO] org.modelio.platform.libraries 4.1.0-SNAPSHOT ...... SUCCESS [ 0.065 s]
[INFO] org.modelio.documentation.metamodel.archimate 4.1.0-SNAPSHOT SUCCESS [ 0.121 s]
[INFO] org.modelio.documentation.archimate 4.1.0-SNAPSHOT . SUCCESS [ 0.636 s]
[INFO] aggregator-doc-en 4.1.0-SNAPSHOT ................... SUCCESS [ 0.001 s]
[INFO] org.modelio.documentation.bpmn.nl_fr 4.1.0-SNAPSHOT SUCCESS [ 0.569 s]
[INFO] org.modelio.documentation.copyright.nl_fr 4.1.0-SNAPSHOT SUCCESS [ 0.422 s]
[INFO] org.modelio.documentation.vaudit.nl_fr 4.1.0-SNAPSHOT SUCCESS [ 2.118 s]
[INFO] org.modelio.documentation.modeliomodeler.nl_fr 4.1.0-SNAPSHOT SUCCESS [ 2.207 s]
[INFO] org.modelio.documentation.modeliomodeler.toc.nl_fr 4.1.0-SNAPSHOT SUCCESS [ 0.059 s]
[INFO] org.modelio.documentation.welcome.nl_fr 4.1.0-SNAPSHOT SUCCESS [ 0.150 s]
[INFO] aggregator-doc-fr 4.1.0-SNAPSHOT ................... SUCCESS [ 0.000 s]
[INFO] aggregator-plugins-doc 4.1.0-SNAPSHOT .............. SUCCESS [ 0.001 s]
[INFO] org.modelio.documentation.modeler.feature 4.1.0-SNAPSHOT SUCCESS [ 0.017 s]
[INFO] aggregator-features-en 4.1.0-SNAPSHOT .............. SUCCESS [ 0.001 s]
[INFO] org.modelio.documentation.modeler.nl_fr.feature 4.1.0-SNAPSHOT SUCCESS [ 0.031 s]
[INFO] aggregator-features-fr 4.1.0-SNAPSHOT .............. SUCCESS [ 0.001 s]
[INFO] aggregator-features 4.1.0-SNAPSHOT ................. SUCCESS [ 0.001 s]
[INFO] aggregator-doc 4.1.0-SNAPSHOT ...................... SUCCESS [ 0.001 s]
[INFO] products 4.1.0-SNAPSHOT ............................ SUCCESS [01:00 min]
[INFO] modelio-aggregator 4.1.0-SNAPSHOT .................. SUCCESS [ 0.001 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:39 min
Please, can you edit Build Modelio Index and Packagemodelio to use Maven 3.6.0 instead of “Maven 3”?
Hi Yuuyins,
Thanks you for your feedback and the suggested changes were made.
Best regards,
Solved
See https://github.com/ModelioOpenSource/Modelio/issues/25#issuecomment-896049263.
Description
I’m trying to build Modelio 4.1.0 from source on a Nix environment. However, the build fails with:
~2 years ago an user reported the same issue in the Modelio forum, but no solution was reported. Any idea?
Reproducing
Install Nix
Get Modelio 4.1.0 source (or the latest commit)
Go to directory
AGGREGATOR
Create file
shell.nix
in the directoryAGGREGATOR
Create file
settings-custom.xml
in the directoryAGGREGATOR
run
nix-shell shell.nix
optionally run
mvn --settings ./settings-custom.xml clean
.run
mvn --settings ./settings-custom.xml package
.