dev-aspectj / aspectj-maven-plugin

AspectJ Maven Plugin
MIT License
48 stars 12 forks source link

AspectJ imports conflict -- package accessible from more than one module #143

Closed bastoica closed 10 months ago

bastoica commented 10 months ago

Hi @kriegaex / team,

I'm getting the following import-related error with one of the latest AspectJ versions 1.9.19 for both Java 11 and 17:

[INFO] Join point 'method-call(void java.lang.Thread.sleep(long))' in Type 'org.apache.hadoop.hive.ql.exec.util.Retryable' (Retryable.java:102) advised by before a
dvice from 'edu.uchicago.cs.systems.wasabi.Interceptor' (wasabi-1.0.0.jar!Interceptor.class:125(from Interceptor.aj))
[ERROR] The package javax.xml.namespace is accessible from more than one module: <unnamed>, java.xml
        /home/bastoica/projects/wasabi/tool/benchmarks/hive/ql/src/java/org/apache/hadoop/hive/ql/udf/xml/UDFXPathUtil.java:25
import javax.xml.namespace.QName;
       ^^^^^^^^^^^^^^^^^^

[ERROR] QName cannot be resolved to a type
        /home/bastoica/projects/wasabi/tool/benchmarks/hive/ql/src/java/org/apache/hadoop/hive/ql/udf/xml/UDFXPathUtil.java:56
public Object eval(String xml, String path, QName qname) {
                                            ^^

[ERROR] The method eval(String, String, QName) from the type UDFXPathUtil refers to the missing type QName
        /home/bastoica/projects/wasabi/tool/benchmarks/hive/ql/src/java/org/apache/hadoop/hive/ql/udf/xml/UDFXPathUtil.java:104
return (Boolean) eval(xml, path, XPathConstants.BOOLEAN);

[ERROR] The method eval(String, String, QName) from the type UDFXPathUtil refers to the missing type QName
        /home/bastoica/projects/wasabi/tool/benchmarks/hive/ql/src/java/org/apache/hadoop/hive/ql/udf/xml/UDFXPathUtil.java:108
return (String) eval(xml, path, XPathConstants.STRING);

[ERROR] The method eval(String, String, QName) from the type UDFXPathUtil refers to the missing type QName
        /home/bastoica/projects/wasabi/tool/benchmarks/hive/ql/src/java/org/apache/hadoop/hive/ql/udf/xml/UDFXPathUtil.java:112
return (Double) eval(xml, path, XPathConstants.NUMBER);

[ERROR] The method eval(String, String, QName) from the type UDFXPathUtil refers to the missing type QName
        /home/bastoica/projects/wasabi/tool/benchmarks/hive/ql/src/java/org/apache/hadoop/hive/ql/udf/xml/UDFXPathUtil.java:116
return (Node) eval(xml, path, XPathConstants.NODE);

[ERROR] The method eval(String, String, QName) from the type UDFXPathUtil refers to the missing type QName
        /home/bastoica/projects/wasabi/tool/benchmarks/hive/ql/src/java/org/apache/hadoop/hive/ql/udf/xml/UDFXPathUtil.java:120
return (NodeList) eval(xml, path, XPathConstants.NODESET);

Digging deeper, the problem appears to be related to faulty imports. I tried explicitly excluding plugins/dependencies as suggested by several StackOverflow posts (for example, this one and this other one), to no avail. Surely I'm missing something obvious, but I honestly cannot figure out what.

So, I created a minimal example to reproduce the issue in the hopes that you'll see what escapes me (check out repo here). I followed your instructions to generate the pom.xml file for the toy library (relevant code) and to modify Hive's original pom.xml (tagged with <!-- Weaver Library -->, plugin entry starts at line 1818). I tried configs specific to both Java 11 and 17 (i.e. <source>, <target>), resulting in the same error.

Steps to reproduce:

  1. Clone the minimal example
    clone https://github.com/bastoica/aspectj_import_issue
  2. Build and install the toy AspectJ library. Given a target application, this toy library weaves several time-related API calls (e.g. Thread.sleep(...))
    cd aspectj_import_issue/weaver
    mvn clean install
  3. Compile a non-trivial application, e.g. Hive:
    cd aspectj_import_issue/hive_36d32ec
    mvn clean compile -fn -DskipTests -Drat.numUnapprovedLicenses=2000 2>&1 | tee build.log
  4. Check out the build logs (you may want to prune non UTF-8 characters). The issue appears when building Hive's query language module (on my system, it fails to weave Retryable.java)
    perl -p -i -e "s/\x1B\[[0-9;]*[a-zA-Z]//g" build.log
    vim build.log

Finally, here are a few details about my environment:

kriegaex commented 10 months ago

Argh, the reproducer is huge, downloading tons of stuff onto my local drive. It would have been better, if you had managed to create a smaller MCVE. But I see, you put effort into documenting how to reproduce it, so I am going to use it.

Before we continue, a hint: This is a bug and feature tracker, not a support platform. Next time, please ask usage questions on Stack Overflow.

kriegaex commented 10 months ago

For me, the project does not build locally:

[INFO] Reactor Summary for Hive 4.0.0-beta-2-SNAPSHOT:
[INFO] 
[INFO] Hive Storage API ................................... SUCCESS [  8.186 s]
[INFO] Hive ............................................... SUCCESS [  5.451 s]
[INFO] Hive Classifications ............................... SUCCESS [  0.379 s]
[INFO] Hive Shims Common .................................. SUCCESS [  5.055 s]
[INFO] Hive Shims 0.23 .................................... SUCCESS [ 11.396 s]
[INFO] Hive Shims ......................................... SUCCESS [  3.284 s]
[INFO] Hive Standalone Metastore .......................... SUCCESS [  0.518 s]
[INFO] Hive Standalone Metastore Common Code .............. FAILURE [  4.240 s]
[INFO] Hive Common ........................................ FAILURE [  3.167 s]
[INFO] Hive Service RPC ................................... SUCCESS [ 30.076 s]
[INFO] Hive Serde ......................................... FAILURE [  2.145 s]
[INFO] Hive Metastore ..................................... FAILURE [  2.330 s]
[INFO] Hive Vector-Code-Gen Utilities ..................... SUCCESS [  2.286 s]
[INFO] Hive Parser ........................................ FAILURE [  0.540 s]
[INFO] Hive UDF ........................................... FAILURE [  0.464 s]
[INFO] Hive Llap Common ................................... FAILURE [  0.427 s]
[INFO] Hive Llap Client ................................... FAILURE [  1.684 s]
[INFO] Hive Llap Tez ...................................... FAILURE [  2.439 s]
[INFO] Hive Metastore Server .............................. FAILURE [  1.187 s]
[INFO] Hive Query Language ................................ FAILURE [  6.004 s]
[INFO] Hive TestUtils ..................................... SUCCESS [  1.097 s]
[INFO] Hive Llap Server ................................... FAILURE [  3.527 s]
[INFO] Hive HPL/SQL ....................................... FAILURE [  0.592 s]
[INFO] Hive Service ....................................... FAILURE [  3.669 s]
[INFO] Hive Accumulo Handler .............................. FAILURE [  2.156 s]
[INFO] Hive JDBC .......................................... FAILURE [  0.582 s]
[INFO] Hive Beeline ....................................... FAILURE [  2.029 s]
[INFO] Hive CLI ........................................... FAILURE [  0.983 s]
[INFO] Hive Contrib ....................................... FAILURE [  0.792 s]
[INFO] Hive Druid Handler ................................. FAILURE [  1.863 s]
[INFO] Hive HBase Handler ................................. FAILURE [  1.119 s]
[INFO] Hive JDBC Handler .................................. FAILURE [  0.810 s]
[INFO] Hive HCatalog ...................................... FAILURE [  0.409 s]
[INFO] Hive HCatalog Core ................................. FAILURE [  2.123 s]
[INFO] Hive HCatalog Pig Adapter .......................... FAILURE [  2.941 s]
[INFO] Hive HCatalog Server Extensions .................... FAILURE [  0.977 s]
[INFO] Hive HCatalog Webhcat Java Client .................. FAILURE [  2.155 s]
[INFO] Hive HCatalog Webhcat .............................. FAILURE [  1.219 s]
[INFO] Hive Streaming ..................................... FAILURE [  0.835 s]
[INFO] Hive Llap External Client .......................... FAILURE [  0.777 s]
[INFO] Hive Shims Aggregator .............................. SUCCESS [  0.201 s]
[INFO] Hive Kudu Handler .................................. FAILURE [  0.669 s]
[INFO] Hive Kafka Storage Handler ......................... FAILURE [ 11.924 s]
[INFO] Hive Packaging ..................................... FAILURE [  9.059 s]
[INFO] Hive Metastore Tools ............................... SUCCESS [  0.077 s]
[INFO] Hive Metastore Tools common libraries .............. FAILURE [  0.909 s]
[INFO] Hive metastore benchmarks .......................... FAILURE [  1.638 s]
[INFO] Hive Upgrade Acid .................................. SUCCESS [  0.020 s]
[INFO] Hive Pre Upgrade Acid .............................. SUCCESS [  8.084 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:35 min
[INFO] Finished at: 2024-01-24T08:15:31+07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (generate-version-annotation) on project hive-standalone-metastore-common: An Ant BuildException has occured: exec returned: 127
[ERROR] around Ant part ...<exec failonerror="true" executable="bash">... @ 4:46 in C:\Users\alexa\Documents\java-src\aj-maven-143\hive_36d32ec\standalone-metastore\metastore-common\target\antrun\build-main.xml
[ERROR] -> [Help 1]
[ERROR] Failed to execute goal on project hive-common: Could not resolve dependencies for project org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent): Could not find artifact org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT in central (https://repo.maven.apache.org/maven2) -> [Help 2]
[ERROR] Failed to execute goal on project hive-serde: Could not resolve dependencies for project org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent): Could not find artifact org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT in central (https://repo.maven.apache.org/maven2) -> [Help 2]
[ERROR] Failed to execute goal on project hive-metastore: Could not resolve dependencies for project org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-parser: Could not resolve dependencies for project org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-udf: Could not resolve dependencies for project org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-llap-common: Could not resolve dependencies for project org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-llap-client: Could not resolve dependencies for project org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-llap-tez: Could not resolve dependencies for project org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-standalone-metastore-server: Could not resolve dependencies for project org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repository.apache.org/snapshots during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of apache.snapshots has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-exec: Could not resolve dependencies for project org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:tests:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-llap-server: Could not resolve dependencies for project org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent): Could not find artifact org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT in central (https://repo.maven.apache.org/maven2) -> [Help 2]
[ERROR] Failed to execute goal on project hive-hplsql: Could not resolve dependencies for project org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-service: Could not resolve dependencies for project org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:tests:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-accumulo-handler: Could not resolve dependencies for project org.apache.hive:hive-accumulo-handler:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:tests:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-jdbc: Could not resolve dependencies for project org.apache.hive:hive-jdbc:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-beeline: Could not resolve dependencies for project org.apache.hive:hive-beeline:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-jdbc:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-cli: Could not resolve dependencies for project org.apache.hive:hive-cli:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-contrib: Could not resolve dependencies for project org.apache.hive:hive-contrib:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-druid-handler: Could not resolve dependencies for project org.apache.hive:hive-druid-handler:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-hbase-handler: Could not resolve dependencies for project org.apache.hive:hive-hbase-handler:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:tests:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-jdbc-handler: Could not resolve dependencies for project org.apache.hive:hive-jdbc-handler:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-hcatalog: Could not resolve dependencies for project org.apache.hive.hcatalog:hive-hcatalog:pom:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-standalone-metastore-server:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-standalone-metastore-server:jar:tests:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-hcatalog-core: Could not resolve dependencies for project org.apache.hive.hcatalog:hive-hcatalog-core:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-cli:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:tests:4.0.0-beta-2-SNAPSHOT (absent): Could not find artifact org.apache.hive:hive-cli:jar:4.0.0-beta-2-SNAPSHOT in central (https://repo.maven.apache.org/maven2) -> [Help 2]
[ERROR] Failed to execute goal on project hive-hcatalog-pig-adapter: Could not resolve dependencies for project org.apache.hive.hcatalog:hive-hcatalog-pig-adapter:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive.hcatalog:hive-hcatalog-core:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-cli:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive.hcatalog:hive-hcatalog-core:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent): Could not find artifact org.apache.hive.hcatalog:hive-hcatalog-core:jar:4.0.0-beta-2-SNAPSHOT in central (https://repo.maven.apache.org/maven2) -> [Help 2]
[ERROR] Failed to execute goal on project hive-hcatalog-server-extensions: Could not resolve dependencies for project org.apache.hive.hcatalog:hive-hcatalog-server-extensions:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive.hcatalog:hive-hcatalog-core:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-cli:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive.hcatalog:hive-hcatalog-core:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive.hcatalog:hive-hcatalog-core:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-webhcat-java-client: Could not resolve dependencies for project org.apache.hive.hcatalog:hive-webhcat-java-client:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive.hcatalog:hive-hcatalog-core:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-cli:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive.hcatalog:hive-hcatalog-server-extensions:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive.hcatalog:hive-hcatalog-core:jar:tests:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive.hcatalog:hive-hcatalog-core:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-webhcat: Could not resolve dependencies for project org.apache.hive.hcatalog:hive-webhcat:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive.hcatalog:hive-hcatalog-core:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-cli:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-jdbc:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive.hcatalog:hive-hcatalog-core:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-streaming: Could not resolve dependencies for project org.apache.hive:hive-streaming:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-cli:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:tests:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-llap-ext-client: Could not resolve dependencies for project org.apache.hive:hive-llap-ext-client:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-jdbc:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-jdbc:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-kudu-handler: Could not resolve dependencies for project org.apache.hive:hive-kudu-handler:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project kafka-handler: Could not resolve dependencies for project org.apache.hive:kafka-handler:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent): Could not find artifact org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT in confluent (https://packages.confluent.io/maven/) -> [Help 2]
[ERROR] Failed to execute goal on project hive-packaging: Could not resolve dependencies for project org.apache.hive:hive-packaging:pom:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-jdbc:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-jdbc:jar:standalone:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-beeline:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-cli:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-contrib:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hbase-handler:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-druid-handler:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:kafka-handler:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-jdbc-handler:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-accumulo-handler:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-ext-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-streaming:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive.hcatalog:hive-hcatalog-core:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive.hcatalog:hive-hcatalog-pig-adapter:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive.hcatalog:hive-hcatalog-server-extensions:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive.hcatalog:hive-webhcat:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive.hcatalog:hive-webhcat-java-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-kudu-handler:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project metastore-tools-common: Could not resolve dependencies for project org.apache.hive:metastore-tools-common:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive.hcatalog:hive-hcatalog-server-extensions:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive.hcatalog:hive-hcatalog-core:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-cli:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent): org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT was not found in https://repository.apache.org/snapshots during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of apache.snapshots has elapsed or updates are forced -> [Help 2]
[ERROR] Failed to execute goal on project hive-metastore-benchmarks: Could not resolve dependencies for project org.apache.hive:hive-metastore-benchmarks:jar:4.0.0-beta-2-SNAPSHOT: The following artifacts could not be resolved: org.apache.hive:metastore-tools-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive.hcatalog:hive-hcatalog-server-extensions:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive.hcatalog:hive-hcatalog-core:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-cli:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-serde:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-service:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-server:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:tests:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-hplsql:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-metastore:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-exec:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-parser:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-udf:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-client:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-common:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-llap-tez:jar:4.0.0-beta-2-SNAPSHOT (absent), org.apache.hive:hive-standalone-metastore-server:jar:4.0.0-beta-2-SNAPSHOT (absent): Could not find artifact org.apache.hive:metastore-tools-common:jar:4.0.0-beta-2-SNAPSHOT in apache.snapshots (https://repository.apache.org/snapshots) -> [Help 2]

I run the build on Windows, but from Git Bash. So the Ant job runs, but seems not to find some dependencies. I am not so inclined to try to figure that out, because it is unrelated to AspectJ Maven.

BTW, you do not need to use a script to remove escape sequences from the log, if you build with -B or --batch-mode.

Update: If it helps, this is what the Ant build file in question looks like:

<?xml version="1.0" encoding="UTF-8" ?>
<project name="maven-antrun-" default="main"  >
<target name="main">
  <exec failonerror="true" executable="bash">
    <arg value="C:\Users\alexa\Documents\java-src\aj-maven-143\hive_36d32ec\standalone-metastore\metastore-common/src/main/resources/saveVersion.sh"/>
    <arg value="4.0.0-beta-2-SNAPSHOT"/>
    <arg value="4.0.0-beta-2"/>
    <arg value="C:\Users\alexa\Documents\java-src\aj-maven-143\hive_36d32ec\standalone-metastore\metastore-common/src"/>
  </exec>
</target>
</project>

Do I need some kind of extra repositories added to my build? Please instruct me.

kriegaex commented 10 months ago

What I can already tell you is that after importing the Maven project into IntelliJ IDEA, I find the corresponding class in not just two but four libraries, including the JDK:

IntelliJ IDEA screenshot showing search result for class javax.xml.namespace.QName

kriegaex commented 10 months ago

Here is a minimal reproducer:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>dev.aspectj</groupId>
  <artifactId>aj-maven-143-mcve</artifactId>
  <version>1.0-SNAPSHOT</version>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <maven.compiler.source>11</maven.compiler.source>
     <maven.compiler.target>11</maven.compiler.target>
    <aspectj.version>1.9.21</aspectj.version>
    <aspectj-maven.version>1.13.1</aspectj-maven.version>
   </properties>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.11.0</version>
        <!-- Let the AspectJ compiler do the work -->
        <executions>
          <execution>
            <id>default-compile</id>
            <phase>none</phase>
          </execution>
          <execution>
            <id>default-testCompile</id>
            <phase>none</phase>
          </execution>
        </executions>
        <configuration>
           <compilerId>eclipse</compilerId>
         </configuration>
         <dependencies>
           <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-compiler-eclipse</artifactId>
             <version>2.13.0</version>
           </dependency>
         </dependencies>
      </plugin>
      <plugin>
        <groupId>dev.aspectj</groupId>
        <artifactId>aspectj-maven-plugin</artifactId>
        <version>${aspectj-maven.version}</version>
        <executions>
          <execution>
            <!--<phase>none</phase>-->
            <goals>
              <goal>compile</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <showWeaveInfo>true</showWeaveInfo>
          <complianceLevel>${maven.compiler.target}</complianceLevel>
          <encoding>UTF-8</encoding>
          <enablePreview>false</enablePreview>
          <proc>none</proc>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjtools</artifactId>
            <version>${aspectj.version}</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>org.aspectj</groupId>
      <artifactId>aspectjrt</artifactId>
      <version>${aspectj.version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.hive</groupId>
      <artifactId>hive-exec</artifactId>
      <version>4.0.0-beta-1</version>
    </dependency>
  </dependencies>

</project>
package dev.aspectj.example;

import javax.xml.namespace.QName;

public class Application {
  public static void main(String[] args) {
    QName qName= new QName("test");
  }
}

Now run mvn clean compile:

[INFO] --- aspectj:1.13.1:compile (default) @ aj-maven-143-mcve ---
[INFO] Showing AJC message detail for messages of types: [error, warning, fail]
[ERROR] The type javax.xml.namespace.QName is not accessible
    C:\Users\alexa\Documents\java-src\aj-maven-143\aj-maven-143-mcve\src\main\java\dev\aspectj\example\Application.java:3
import javax.xml.namespace.QName;
       ^^^^^^^^^^^^^^^^^^^^^^^^^

[ERROR] QName cannot be resolved to a type
    C:\Users\alexa\Documents\java-src\aj-maven-143\aj-maven-143-mcve\src\main\java\dev\aspectj\example\Application.java:7
QName qName= new QName("test");
^^^^^

[ERROR] QName cannot be resolved to a type
    C:\Users\alexa\Documents\java-src\aj-maven-143\aj-maven-143-mcve\src\main\java\dev\aspectj\example\Application.java:7
QName qName= new QName("test");
                 ^^^^^

But this is not an AspectJ Compiler (AJC) problem. AJC forks Eclipse Java Compiler (ECJ), and if you deactivate AspectJ Maven by <phase>none</phase> and instead remove the same option from Maven Compiler (which I already prepared to use ECJ, as you can see above), the result is:

[INFO] --- compiler:3.11.0:compile (default-compile) @ aj-maven-143-mcve ---
...
[INFO] Changes detected - recompiling the module! :source
[INFO] Compiling with eclipse [debug target 11] to target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] C:\Users\alexa\Documents\java-src\aj-maven-143\aj-maven-143-mcve\src\main\java\dev\aspectj\example\Application.java:[3,8] The type javax.xml.namespace.QName is not accessible
[ERROR] C:\Users\alexa\Documents\java-src\aj-maven-143\aj-maven-143-mcve\src\main\java\dev\aspectj\example\Application.java:[7,5] QName cannot be resolved to a type
[ERROR] C:\Users\alexa\Documents\java-src\aj-maven-143\aj-maven-143-mcve\src\main\java\dev\aspectj\example\Application.java:[7,22] QName cannot be resolved to a type
[INFO] 3 errors 

Same deal. The question is rather, why Javac accepts that, because due to the Java Module System (Jigsaw) introduced in Java 9, the requirement of "unique visibility" according to JLS is violated in this situation. I am not a friend of JMS, just explaining. The long explanation is in this Stack Overflow answer.

I am not a modules expert myself, trying to mostly ignore their existence as much as I can, but following Stefan Herrmann's advice from Stack Overflow, I added this module-info.java to my mini project:

module dev.aspectj.example {
  requires java.xml;
}

Now, both with ECJ and AJC, the project compiles.

[INFO] --- aspectj:1.13.1:compile (default) @ aj-maven-143-mcve ---
[INFO] Showing AJC message detail for messages of types: [error, warning, fail]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

The correct solution in your case might be the other way around, maybe you need to require one of the other libraries as modules instead, if they contain more code. Or maybe a dependency exclude also works, but it would be a workaround and only be applicable if you really need no other classes from the excluded libraries. In my minimal example, this works when compiling with ECJ:

<dependency>
  <groupId>org.apache.hive</groupId>
  <artifactId>hive-exec</artifactId>
  <version>4.0.0-beta-1</version>
  <exclusions>
    <exclusion>
      <groupId>stax</groupId>
      <artifactId>stax-api</artifactId>
    </exclusion>
  </exclusions>
</dependency>

Then, you do not need the module info and the compiler finds the XML classes from the JDK only. But like I said, it is rather a workaround.

The same exclusion also works for AspectJ Maven. Before, when I wrote that it does not work, I accidentally tested the wrong configuration.

kriegaex commented 10 months ago

I pushed the reproducer to https://github.com/kriegaex/aj-maven-143-mcve for reference.

bastoica commented 10 months ago

Hi @kriegaex, first off a huge, huge thank you for looking into this and providing such detailed suggestions!!

I'm still going through your comments and will post again, for archival purposes, once I get everything figured out. Also, sorry if this wasn't quite the right place to ask my question. I'll use SO for similar issues next time.


Argh, the reproducer is huge, downloading tons of stuff onto my local drive. It would have been better, if you had managed to create a smaller MCVE. But I see, you put effort into documenting how to reproduce it, so I am going to use it.

Sorry about that! I didn't realize the repro will be 1+ GB long. Next time I'll try creating a (much) smaller MCVE.

I saw your question about the build failing too late... These errors look like Maven repository shenanigans to me. I know it's a moot point now, but two things helped when I was dealing with a similar issue:


What I can already tell you is that after importing the Maven project into IntelliJ IDEA, I find the corresponding class in not just two but four libraries, including the JDK [...]

Oh, shoot! I missed the last library. I'm on Linux (console) and was relying on Maven's dependency tree to spot-check (i.e., $ mvn dependency:tree). But this is quite a rough process -- I should've just dragged the code into IntelliJ instead...


Here is a minimal reproducer: [...]

Wow! I should've started with a toy application. In my defense, however, I genuinely thought this is some sort of dependency hell and shaving off modules, code, etc. will just obscure the issue. Great repro and thanks for sharing.


Again, thank you so much for your help. I'm trying out your suggestions and post back here with the outcome, for posterity :-)