Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mrs-2.0: maven cannot download dependency jars : Not authorized #14

Open
FlowerBirds opened this issue Dec 7, 2020 · 2 comments
Open

Comments

@FlowerBirds
Copy link

use mrs-2.0 branch hive-example code.

pom.xml

 <repositories>

        <repository>
            <id>huaweicloudsdk</id>
            <url>https://mirrors.huaweicloud.com/repository/maven/huaweicloudsdk/</url>
            <releases><enabled>true</enabled></releases>
            <snapshots><enabled>true</enabled></snapshots>
        </repository>

        <repository>
            <id>central</id>
            <name>Mavn Centreal</name>
            <url>https://repo1.maven.org/maven2/</url>
        </repository>

    </repositories>

mvn clean compile

[INFO] --------------------< hive-examples:hive-examples >---------------------
[INFO] Building hive-examples mrs-2.0
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from apache.staging.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/glassfish/javax.el/maven-metadata.xml
[WARNING] Could not transfer metadata org.glassfish:javax.el/maven-metadata.xml from/to apache.staging.https (https://repository.apache.org/service/local/staging/deploy/maven2): Not authorized
Downloading from apache.staging.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/glassfish/javax.el/3.0.1-b06-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.glassfish:javax.el:3.0.1-b06-SNAPSHOT/maven-metadata.xml from/to apache.staging.https (https://repository.apache.org/service/local/staging/deploy/maven2): Not authorized
[WARNING] Failure to transfer org.glassfish:javax.el:3.0.1-b06-SNAPSHOT/maven-metadata.xml from https://repository.apache.org/service/local/staging/deploy/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of apache.staging.https has elapsed or updates are forced. Original error: Could not transfer metadata org.glassfish:javax.el:3.0.1-b06-SNAPSHOT/maven-metadata.xml from/to apache.staging.https (https://repository.apache.org/service/local/staging/deploy/maven2): Not authorized
Downloading from apache.staging.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/glassfish/javax.el/3.0.1-b06-SNAPSHOT/javax.el-3.0.1-b06-SNAPSHOT.pom
Downloading from apache.staging.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/glassfish/javax.el/3.0.1-b07-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.glassfish:javax.el:3.0.1-b07-SNAPSHOT/maven-metadata.xml from/to apache.staging.https (https://repository.apache.org/service/local/staging/deploy/maven2): Not authorized
[WARNING] Failure to transfer org.glassfish:javax.el:3.0.1-b07-SNAPSHOT/maven-metadata.xml from https://repository.apache.org/service/local/staging/deploy/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of apache.staging.https has elapsed or updates are forced. Original error: Could not transfer metadata org.glassfish:javax.el:3.0.1-b07-SNAPSHOT/maven-metadata.xml from/to apache.staging.https (https://repository.apache.org/service/local/staging/deploy/maven2): Not authorized
Downloading from apache.staging.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/glassfish/javax.el/3.0.1-b07-SNAPSHOT/javax.el-3.0.1-b07-SNAPSHOT.pom
Downloading from apache.staging.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/glassfish/javax.el/3.0.1-b08-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.glassfish:javax.el:3.0.1-b08-SNAPSHOT/maven-metadata.xml from/to apache.staging.https (https://repository.apache.org/service/local/staging/deploy/maven2): Not authorized
[WARNING] Failure to transfer org.glassfish:javax.el:3.0.1-b08-SNAPSHOT/maven-metadata.xml from https://repository.apache.org/service/local/staging/deploy/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of apache.staging.https has elapsed or updates are forced. Original error: Could not transfer metadata org.glassfish:javax.el:3.0.1-b08-SNAPSHOT/maven-metadata.xml from/to apache.staging.https (https://repository.apache.org/service/local/staging/deploy/maven2): Not authorized
Downloading from apache.staging.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/glassfish/javax.el/3.0.1-b08-SNAPSHOT/javax.el-3.0.1-b08-SNAPSHOT.pom
Downloading from apache.staging.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/glassfish/javax.el/3.0.1-b11-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.glassfish:javax.el:3.0.1-b11-SNAPSHOT/maven-metadata.xml from/to apache.staging.https (https://repository.apache.org/service/local/staging/deploy/maven2): Not authorized
[WARNING] Failure to transfer org.glassfish:javax.el:3.0.1-b11-SNAPSHOT/maven-metadata.xml from https://repository.apache.org/service/local/staging/deploy/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of apache.staging.https has elapsed or updates are forced. Original error: Could not transfer metadata org.glassfish:javax.el:3.0.1-b11-SNAPSHOT/maven-metadata.xml from/to apache.staging.https (https://repository.apache.org/service/local/staging/deploy/maven2): Not authorized
Downloading from apache.staging.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/glassfish/javax.el/3.0.1-b11-SNAPSHOT/javax.el-3.0.1-b11-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  9.624 s
[INFO] Finished at: 2020-12-07T17:44:56+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project hive-examples: Could not resolve dependencies for project hive-examples:hive-examples:jar:mrs-2.0: Failed to collect dependencies at org.apache.hive:hive-service:jar:3.1.0-mrs-2.0 -> org.apache.hive:hive-llap-server:jar:3.1.0-mrs-2.0 -> org.apache.hbase:hbase-server:jar:2.1.1.0101-mrs-2.0 -> org.glassfish.web:javax.servlet.jsp:jar:2.3.2 -> org.glassfish:javax.el:jar:3.0.1-b06-SNAPSHOT: Failed to read artifact descriptor for org.glassfish:javax.el:jar:3.0.1-b06-SNAPSHOT: Could not transfer artifact org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT from/to apache.staging.https (https://repository.apache.org/service/local/staging/deploy/maven2): Not authorized -> [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

@FlowerBirds
Copy link
Author

It's unbeliveable to find SNAPSHOT version in release jars.

@zml4518079
Copy link

I have the same question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants