- Posts: 7
- Thank you received: 0
- Forum
- Users
- Installation
- Build fails: can't trasfer javadesigner:jar from/to maven-default-http-blocker
×
Modelio 4.0.0 released (07 Nov 2019)
Modelio 4.0.0 has been released ( www.modelio.org/forum/4-announcements/45...-4-0-0-released.html )
Build fails: can't trasfer javadesigner:jar from/to maven-default-http-blocker
10 months 3 weeks ago - 10 months 3 weeks ago #6437 by yyyy
SOLVED
See www.modelio.org/forum/8-installation/486...tp-blocker.html#6442
Description
I'm trying to build Modelio 4.1.0 from source on a Nix environment. However, the build fails with:
Any idea?
Reproducing
1. Install nix
2. Get Modelio 4.1.0 source
3. go to directory AGGREGATOR
4. Create file shell.nix in the directory AGGREGATOR4. run nix-shell shell.nix
5. optionally run mvn clean
5. run mvn package
See www.modelio.org/forum/8-installation/486...tp-blocker.html#6442
Description
I'm trying to build Modelio 4.1.0 from source on a Nix environment. However, the build fails with:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.5.0:compile (default-compile) on project org.modelio.core.utils: Could not resolve extra classpath entry: Could not transfer artifact org.modelio:javadesigner:jar:2.2.0 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [modelio-repository-maven (http://repository.modelio.org/, default, releases+snapshots)]
[ERROR] org.modelio:javadesigner:jar:2.2.0
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] maven-default-http-blocker (http://0.0.0.0/, releases=true, snapshots=true),
[ERROR] rcp-Eclipse (file:///mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/modelio/core/core.utils/../../../dev-platform/rcp-target/rcp-eclipse/eclipse, releases=false, snapshots=false),
[ERROR] astyle (file:///mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/modelio/core/core.utils/../../../dev-platform/rcp-target/modelio-integ/org.astyle/astyle, releases=false, snapshots=false),
[ERROR] tika (file:///mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/modelio/core/core.utils/../../../dev-platform/rcp-target/modelio-integ/apache/tika, releases=false, snapshots=false),
[ERROR] praticalxml (file:///mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/modelio/core/core.utils/../../../dev-platform/rcp-target/modelio-integ/sf-practicalxml/praticalxml, releases=false, snapshots=false),
[ERROR] jdbm (file:///mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/modelio/core/core.utils/../../../dev-platform/rcp-target/modelio-integ/org.jdbm/jdbm, releases=false, snapshots=false),
[ERROR] log4j (file:///mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/modelio/core/core.utils/../../../dev-platform/rcp-target/apache/log4j, releases=false, snapshots=false),
[ERROR] commons-compress (file:///mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/modelio/core/core.utils/../../../dev-platform/rcp-target/apache/commons-compress, releases=false, snapshots=false),
[ERROR] commons-lang (file:///mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/modelio/core/core.utils/../../../dev-platform/rcp-target/apache/commons-lang, releases=false, snapshots=false),
[ERROR] nebula-nattable (file:///mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/modelio/core/core.utils/../../../dev-platform/rcp-target/org.eclipse/nebula-nattable, releases=false, snapshots=false),
[ERROR] nebula-incubator (file:///mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/modelio/core/core.utils/../../../dev-platform/rcp-target/org.eclipse/nebula-incubator, releases=false, snapshots=false),
[ERROR] nebula (file:///mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/modelio/core/core.utils/../../../dev-platform/rcp-target/org.eclipse/nebula, releases=false, snapshots=false),
[ERROR] gef-draw2d (file:///mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/modelio/core/core.utils/../../../dev-platform/rcp-target/org.eclipse/gef-draw2d, releases=false, snapshots=false),
[ERROR] uml2 (file:///mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/modelio/core/core.utils/../../../dev-platform/rcp-target/org.eclipse/uml2, releases=false, snapshots=false),
[ERROR] emf (file:///mnt/pro/dev/modelio/4.1.0/linux/v4.1.0/Modelio-4.1.0/modelio/core/core.utils/../../../dev-platform/rcp-target/org.eclipse/emf, releases=false, snapshots=false),
[ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :org.modelio.core.utils
Any idea?
Reproducing
1. Install nix
2. Get Modelio 4.1.0 source
3. go to directory AGGREGATOR
4. Create file shell.nix in the directory AGGREGATOR
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
nativeBuildInputs = [
eclipses.eclipse-sdk
maven3
openjdk8_headless
];
buildInputs = [
glibc
atk
gtk2
cairo
glib
webkitgtk
xorg.libXtst
gcc
swt
jre8
freetype
perl
python
];
JAVA_HOME = openjdk8_headless.home;
}
5. optionally run mvn clean
5. run mvn package
Last Edit: 10 months 3 weeks ago by yyyy.
Please Log in or Create an account to join the conversation.
10 months 3 weeks ago #6439 by yyyy
i just tried running mvn clean before package but got same issue.
Please Log in or Create an account to join the conversation.
10 months 3 weeks ago - 10 months 3 weeks ago #6442 by yyyy
SOLVED
Maven >= 3.8.1 blocks HTTP requests by default ( stackoverflow.com/questions/66980047 ). So I created the file AGGREGATOR/settings-custom.xml
and run mvn --settings ./settings-custom.xml package which workarounded the issue for downloading from repository.modelio.org/ and repo.maven.apache.org/ .
But now I am facing a compilation issue: www.modelio.org/forum/8-installation/4867
Maven >= 3.8.1 blocks HTTP requests by default ( stackoverflow.com/questions/66980047 ). So I created the file AGGREGATOR/settings-custom.xml
<?xml version="1.0" encoding="utf-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">
<mirrors>
<mirror>
<id>modelio-repository-http-unblocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>repository.modelio.org</name>
<url>http://repository.modelio.org/</url>
<blocked>false</blocked>
</mirror>
<mirror>
<id>apache-maven-repository-http-unblocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>repo.maven.apache.org</name>
<url>http://repo.maven.apache.org/</url>
<blocked>false</blocked>
</mirror>
</mirrors>
</settings>
and run mvn --settings ./settings-custom.xml package which workarounded the issue for downloading from repository.modelio.org/ and repo.maven.apache.org/ .
But now I am facing a compilation issue: www.modelio.org/forum/8-installation/4867
Last Edit: 10 months 3 weeks ago by yyyy.
Please Log in or Create an account to join the conversation.
Moderators: cde
- Forum
- Users
- Installation
- Build fails: can't trasfer javadesigner:jar from/to maven-default-http-blocker
Time to create page: 0.039 seconds