red-soft-ru / redexpert

GNU General Public License v3.0
16 stars 20 forks source link

Build failing? #7

Closed fdcastel closed 2 months ago

fdcastel commented 3 years ago

Trying to build the latest stable (tag v2021.07) from sources with mvn package is failing with

Failed to execute goal on project fbplugin-impl: Could not resolve dependencies for project org.executequery:fbplugin-impl:jar:1.0: Failed to collect dependencies at ru.red-soft.jdbc:jaybird-jdk18:jar:4.0.7: Failed to read artifact descriptor for ru.red-soft.jdbc:jaybird-jdk18:jar:4.0.7: Could not transfer artifact ru.red-soft.jdbc:jaybird-jdk18:pom:4.0.7 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [nexus-red-soft-ru-jaybird (http://nexus.red-soft.ru/repository/jaybird, default, releases+snapshots)] -> [Help 1]

Environment:

java --version
openjdk 16.0.2 2021-07-20
OpenJDK Runtime Environment (build 16.0.2+7-67)
OpenJDK 64-Bit Server VM (build 16.0.2+7-67, mixed mode, sharing)

mvn --version
Apache Maven 3.8.2 (ea98e05a04480131370aa0c110b8c54cf726c06f)
Maven home: C:\ProgramData\chocolatey\lib\maven\apache-maven-3.8.2
Java version: 16.0.2, vendor: Oracle Corporation, runtime: C:\Program Files\OpenJDK\jdk-16.0.2
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

The same environment can be installed with Chocolatey on Windows using:

choco install openjdk maven -y
fdcastel commented 3 years ago

Full output:

PS C:\temp\redexpert> mvn package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.executequery:sql-parser:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 24, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.executequery:sqlLexer:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 24, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.executequery:trace-parser:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 24, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.executequery:procedure-parser:jar:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 24, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] RedExpert-parent                                                   [pom]
[INFO] fbplugin                                                           [jar]
[INFO] fbplugin-impl                                                      [jar]
[INFO] sql-parser                                                         [jar]
[INFO] sqlLexer                                                           [jar]
[INFO] trace-parser                                                       [jar]
[INFO] procedure-parser                                                   [jar]
[INFO] RedExpert                                                          [jar]
[INFO]
[INFO] -----------------< org.executequery:RedExpert-parent >------------------
[INFO] Building RedExpert-parent 2021.07                                  [1/8]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] ---------------------< org.executequery:fbplugin >----------------------
[INFO] Building fbplugin 1.0                                              [2/8]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ fbplugin ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Temp\redexpert\modules\plugins\fbplugin\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ fbplugin ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ fbplugin ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Temp\redexpert\modules\plugins\fbplugin\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ fbplugin ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ fbplugin ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ fbplugin ---
[INFO] Building jar: C:\Temp\redexpert\lib\fbplugin.jar
[INFO]
[INFO] -------------------< org.executequery:fbplugin-impl >-------------------
[INFO] Building fbplugin-impl 1.0                                         [3/8]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] RedExpert-parent 2021.07 ........................... SUCCESS [  0.002 s]
[INFO] fbplugin 1.0 ....................................... SUCCESS [  0.561 s]
[INFO] fbplugin-impl 1.0 .................................. FAILURE [  0.031 s]
[INFO] sql-parser 1.0 ..................................... SKIPPED
[INFO] sqlLexer 1.0 ....................................... SKIPPED
[INFO] trace-parser 1.0 ................................... SKIPPED
[INFO] procedure-parser 1.0 ............................... SKIPPED
[INFO] RedExpert 2021.07 .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.678 s
[INFO] Finished at: 2021-08-21T12:19:37-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project fbplugin-impl: Could not resolve dependencies for project org.executequery:fbplugin-impl:jar:1.0: Failed to collect dependencies at ru.red-soft.jdbc:jaybird-jdk18:jar:4.0.7: Failed to read artifact descriptor for ru.red-soft.jdbc:jaybird-jdk18:jar:4.0.7: Could not transfer artifact ru.red-soft.jdbc:jaybird-jdk18:pom:4.0.7 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [nexus-red-soft-ru-jaybird (http://nexus.red-soft.ru/repository/jaybird, default, releases+snapshots)] -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :fbplugin-impl
vasiliy-yashkov commented 3 years ago

Hello! You can use maven version less than 3.8 (e.g. 3.6.3) to build the project. We'll soon fix the project so that it's built with latest maven. Thanks for the feedback!

fdcastel commented 3 years ago

Thank you, Vasiliy!!

It worked flawlessly with maven 3.6.3.

On Mon, Aug 23, 2021 at 4:40 AM Vasiliy Yashkov @.***> wrote:

Hello! You can use maven version less than 3.8 (e.g. 3.6.3) to build the project. We'll soon fix the project so that it's built with latest maven. Thanks for the feedback!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.