#java #maven #jsp
#Ява #знаток #jsp
Вопрос:
Ошибка: не удалось не удалось передать артефакт орг.restlet.Джи:орг.restlet:пом:2.1.1 из/в центральный…….. Мой проект основан на веб-приложении jsp servelet, Почему maven даже пытается загрузить зависимость «org.restlet» из центрального репозитория, если ее нет в POM.XML даже не во всем проекте. Я работаю в AWS, у которого нет Интернета и который очень ограничен .Приложив много усилий, я перенес все зависимости, скопировав папку .m2 в среду AWS, а также на правой вкладке maven в intellij все зависимости загружены, и красного подчеркивания нет. Тем не менее maven пытается загрузить зависимость от рестлета, так как у машины нет Интернета, maven:война падает.
Мой файл pom
lt;?xml version="1.0" encoding="UTF-8"?gt; lt;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 http://maven.apache.org/xsd/maven-4.0.0.xsd"gt; lt;modelVersiongt;4.0.0lt;/modelVersiongt; lt;groupIdgt;rrrrrrrrrrrrrrrrrrrrrrrrlt;/groupIdgt; lt;artifactIdgt;xxxxxxxxxxxxxxxxlt;/artifactIdgt; lt;versiongt;1lt;/versiongt; lt;packaginggt;warlt;/packaginggt; lt;namegt;ffffffffffffffffffff[enter image description here][1]lt;/namegt; lt;urlgt;http://maven.apache.orglt;/urlgt; lt;propertiesgt; lt;project.build.sourceEncodinggt;UTF-8lt;/project.build.sourceEncodinggt; lt;maven.compiler.sourcegt;1.8lt;/maven.compiler.sourcegt; lt;maven.compiler.targetgt;1.8lt;/maven.compiler.targetgt; lt;/propertiesgt; lt;dependenciesgt; lt;!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api --gt; lt;dependencygt; lt;groupIdgt;javax.servletlt;/groupIdgt; lt;artifactIdgt;javax.servlet-apilt;/artifactIdgt; lt;versiongt;4.0.1lt;/versiongt; lt;scopegt;providedlt;/scopegt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/javax.servlet/servlet-api --gt; lt;dependencygt; lt;groupIdgt;javax.servletlt;/groupIdgt; lt;artifactIdgt;servlet-apilt;/artifactIdgt; lt;versiongt;3.0-alpha-1lt;/versiongt; lt;scopegt;providedlt;/scopegt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/org.json/json --gt; lt;dependencygt; lt;groupIdgt;org.jsonlt;/groupIdgt; lt;artifactIdgt;jsonlt;/artifactIdgt; lt;versiongt;20190722lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple --gt; lt;dependencygt; lt;groupIdgt;com.googlecode.json-simplelt;/groupIdgt; lt;artifactIdgt;json-simplelt;/artifactIdgt; lt;versiongt;1.1.1lt;/versiongt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;json-simple-2.1.2lt;/groupIdgt; lt;artifactIdgt;json-simple-2.1.2lt;/artifactIdgt; lt;scopegt;systemlt;/scopegt; lt;versiongt;1.0lt;/versiongt; lt;systemPathgt;${basedir}srcmainwebappWEB-INFlibjson-simple-2.1.2.jarlt;/systemPathgt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/com.google.guava/guava --gt; lt;dependencygt; lt;groupIdgt;com.google.guavalt;/groupIdgt; lt;artifactIdgt;guavalt;/artifactIdgt; lt;versiongt;19.0lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils --gt; lt;dependencygt; lt;groupIdgt;commons-beanutilslt;/groupIdgt; lt;artifactIdgt;commons-beanutilslt;/artifactIdgt; lt;versiongt;1.9.4lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/commons-lang/commons-lang --gt; lt;dependencygt; lt;groupIdgt;commons-langlt;/groupIdgt; lt;artifactIdgt;commons-langlt;/artifactIdgt; lt;versiongt;2.6lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/com.jcraft/jsch --gt; lt;dependencygt; lt;groupIdgt;com.jcraftlt;/groupIdgt; lt;artifactIdgt;jschlt;/artifactIdgt; lt;versiongt;0.1.55lt;/versiongt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;DQCHbaselt;/groupIdgt; lt;artifactIdgt;DQCHbaselt;/artifactIdgt; lt;versiongt;1.0lt;/versiongt; lt;scopegt;systemlt;/scopegt; lt;systemPathgt;${basedir}srcmainwebappWEB-INFlibDQCHbase.jarlt;/systemPathgt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;elasticsearchlt;/groupIdgt; lt;artifactIdgt;elasticsearchlt;/artifactIdgt; lt;versiongt;1.0lt;/versiongt; lt;scopegt;systemlt;/scopegt; lt;systemPathgt;${basedir}srcmainwebappWEB-INFlibelasticsearch-1.0.1.jarlt;/systemPathgt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;esclientlt;/groupIdgt; lt;artifactIdgt;esclientlt;/artifactIdgt; lt;versiongt;1.0lt;/versiongt; lt;scopegt;systemlt;/scopegt; lt;systemPathgt;${basedir}srcmainwebappWEB-INFlibesclient.jarlt;/systemPathgt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;FeedApprovallt;/groupIdgt; lt;artifactIdgt;FeedApprovallt;/artifactIdgt; lt;versiongt;1.0lt;/versiongt; lt;scopegt;systemlt;/scopegt; lt;systemPathgt;${basedir}srcmainwebappWEB-INFlibFeedApproval.jarlt;/systemPathgt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;hadoop-auth-2.5.1-mapr-1501lt;/groupIdgt; lt;artifactIdgt;hadoop-auth-2.5.1-mapr-1501lt;/artifactIdgt; lt;versiongt;1.0lt;/versiongt; lt;scopegt;systemlt;/scopegt; lt;systemPathgt;${basedir}srcmainwebappWEB-INFlibhadoop-auth-2.5.1-mapr-1501.jarlt;/systemPathgt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;hadoop-client-2.5.1-mapr-1501lt;/groupIdgt; lt;artifactIdgt;hadoop-client-2.5.1-mapr-1501lt;/artifactIdgt; lt;versiongt;1.0lt;/versiongt; lt;scopegt;systemlt;/scopegt; lt;systemPathgt;${basedir}srcmainwebappWEB-INFlibhadoop-client-2.5.1-mapr-1501.jarlt;/systemPathgt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;hadoop-common-2.5.1-mapr-1501lt;/groupIdgt; lt;artifactIdgt;hadoop-common-2.5.1-mapr-1501lt;/artifactIdgt; lt;versiongt;1.0lt;/versiongt; lt;scopegt;systemlt;/scopegt; lt;systemPathgt;${basedir}srcmainwebappWEB-INFlibhadoop-common-2.5.1-mapr-1501.jarlt;/systemPathgt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;hbase-client-0.98.12-mapr-1506lt;/groupIdgt; lt;artifactIdgt;hbase-client-0.98.12-mapr-1506lt;/artifactIdgt; lt;versiongt;1.0lt;/versiongt; lt;scopegt;systemlt;/scopegt; lt;systemPathgt;${basedir}srcmainwebappWEB-INFlibhbase-client-0.98.12-mapr-1506.jarlt;/systemPathgt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;hbase-common-0.98.12-mapr-1506lt;/groupIdgt; lt;artifactIdgt;hbase-common-0.98.12-mapr-1506lt;/artifactIdgt; lt;versiongt;1.0lt;/versiongt; lt;scopegt;systemlt;/scopegt; lt;systemPathgt;${basedir}srcmainwebappWEB-INFlibhbase-common-0.98.12-mapr-1506.jarlt;/systemPathgt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;hbase-protocol-0.98.12-mapr-1506lt;/groupIdgt; lt;artifactIdgt;hbase-protocol-0.98.12-mapr-1506lt;/artifactIdgt; lt;versiongt;1.0lt;/versiongt; lt;scopegt;systemlt;/scopegt; lt;systemPathgt;${basedir}srcmainwebappWEB-INFlibhbase-protocol-0.98.12-mapr-1506.jarlt;/systemPathgt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;zookeeper-3.4.5-mapr-1406lt;/groupIdgt; lt;artifactIdgt;zookeeper-3.4.5-mapr-1406lt;/artifactIdgt; lt;versiongt;1.0lt;/versiongt; lt;scopegt;systemlt;/scopegt; lt;systemPathgt;${basedir}srcmainwebappWEB-INFlibzookeeper-3.4.5-mapr-1406.jarlt;/systemPathgt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;SolrClient-Testlt;/groupIdgt; lt;artifactIdgt;SolrClient-Testlt;/artifactIdgt; lt;scopegt;systemlt;/scopegt; lt;versiongt;1.0lt;/versiongt; lt;systemPathgt;${basedir}srcmainwebappWEB-INFlibSolrClient-Test.jarlt;/systemPathgt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;io.jsonwebtokenlt;/groupIdgt; lt;artifactIdgt;jjwt-apilt;/artifactIdgt; lt;versiongt;0.11.2lt;/versiongt; lt;exclusionsgt; lt;exclusiongt; lt;groupIdgt;${project.groupId}lt;/groupIdgt; lt;artifactIdgt;${project.artifactId}lt;/artifactIdgt; lt;/exclusiongt; lt;/exclusionsgt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;io.jsonwebtokenlt;/groupIdgt; lt;artifactIdgt;jjwt-impllt;/artifactIdgt; lt;versiongt;0.11.2lt;/versiongt; lt;scopegt;runtimelt;/scopegt; lt;exclusionsgt; lt;exclusiongt; lt;groupIdgt;${project.groupId}lt;/groupIdgt; lt;artifactIdgt;${project.artifactId}lt;/artifactIdgt; lt;/exclusiongt; lt;/exclusionsgt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;io.jsonwebtokenlt;/groupIdgt; lt;artifactIdgt;jjwt-gsonlt;/artifactIdgt; lt;versiongt;0.11.2lt;/versiongt; lt;scopegt;runtimelt;/scopegt; lt;exclusionsgt; lt;exclusiongt; lt;groupIdgt;${project.groupId}lt;/groupIdgt; lt;artifactIdgt;${project.artifactId}lt;/artifactIdgt; lt;/exclusiongt; lt;/exclusionsgt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/org.apache.solr/solr-analysis-extras --gt; lt;dependencygt; lt;groupIdgt;org.apache.solrlt;/groupIdgt; lt;artifactIdgt;solr-analysis-extraslt;/artifactIdgt; lt;versiongt;4.5.0lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/org.apache.solr/solr-cell --gt; lt;dependencygt; lt;groupIdgt;org.apache.solrlt;/groupIdgt; lt;artifactIdgt;solr-celllt;/artifactIdgt; lt;versiongt;4.5.0lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/org.apache.solr/solr-clustering --gt; lt;dependencygt; lt;groupIdgt;org.apache.solrlt;/groupIdgt; lt;artifactIdgt;solr-clusteringlt;/artifactIdgt; lt;versiongt;4.5.0lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/org.apache.solr/solr-core --gt; lt;dependencygt; lt;groupIdgt;org.apache.solrlt;/groupIdgt; lt;artifactIdgt;solr-corelt;/artifactIdgt; lt;versiongt;4.5.0lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/org.apache.solr/solr-dataimporthandler --gt; lt;dependencygt; lt;groupIdgt;org.apache.solrlt;/groupIdgt; lt;artifactIdgt;solr-dataimporthandlerlt;/artifactIdgt; lt;versiongt;4.5.0lt;/versiongt; lt;scopegt;testlt;/scopegt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/org.apache.solr/solr-dataimporthandler-extras --gt; lt;dependencygt; lt;groupIdgt;org.apache.solrlt;/groupIdgt; lt;artifactIdgt;solr-dataimporthandler-extraslt;/artifactIdgt; lt;versiongt;4.5.0lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/org.apache.solr/solr-langid --gt; lt;dependencygt; lt;groupIdgt;org.apache.solrlt;/groupIdgt; lt;artifactIdgt;solr-langidlt;/artifactIdgt; lt;versiongt;4.5.0lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/org.apache.solr/solr-solrj --gt; lt;dependencygt; lt;groupIdgt;org.apache.solrlt;/groupIdgt; lt;artifactIdgt;solr-solrjlt;/artifactIdgt; lt;versiongt;4.5.0lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/org.apache.solr/solr-test-framework --gt; lt;dependencygt; lt;groupIdgt;org.apache.solrlt;/groupIdgt; lt;artifactIdgt;solr-test-frameworklt;/artifactIdgt; lt;versiongt;4.5.0lt;/versiongt; lt;scopegt;testlt;/scopegt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/org.apache.solr/solr-uima --gt; lt;dependencygt; lt;groupIdgt;org.apache.solrlt;/groupIdgt; lt;artifactIdgt;solr-uimalt;/artifactIdgt; lt;versiongt;4.5.0lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/org.apache.solr/solr-velocity --gt; lt;dependencygt; lt;groupIdgt;org.apache.solrlt;/groupIdgt; lt;artifactIdgt;solr-velocitylt;/artifactIdgt; lt;versiongt;4.5.0lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/net.redhogs.cronparser/cron-parser --gt; lt;dependencygt; lt;groupIdgt;net.redhogs.cronparserlt;/groupIdgt; lt;artifactIdgt;cron-parserlt;/artifactIdgt; lt;versiongt;1.1lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/javax.persistence/persistence-api --gt; lt;dependencygt; lt;groupIdgt;javax.persistencelt;/groupIdgt; lt;artifactIdgt;persistence-apilt;/artifactIdgt; lt;versiongt;1.0lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/au.com.bytecode/opencsv --gt; lt;dependencygt; lt;groupIdgt;au.com.bytecodelt;/groupIdgt; lt;artifactIdgt;opencsvlt;/artifactIdgt; lt;versiongt;2.4lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/redis.clients/jedis --gt; lt;dependencygt; lt;groupIdgt;redis.clientslt;/groupIdgt; lt;artifactIdgt;jedislt;/artifactIdgt; lt;versiongt;3.2.0lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/net.sf.json-lib/json-lib --gt; lt;dependencygt; lt;groupIdgt;net.sf.json-liblt;/groupIdgt; lt;artifactIdgt;json-liblt;/artifactIdgt; lt;versiongt;2.4lt;/versiongt; lt;classifiergt;jdk15lt;/classifiergt; lt;/dependencygt; lt;dependencygt; lt;groupIdgt;org.codehaus.groovylt;/groupIdgt; lt;artifactIdgt;groovy-alllt;/artifactIdgt; lt;versiongt;2.4.5lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/com.google.code.gson/gson --gt; lt;dependencygt; lt;groupIdgt;com.google.code.gsonlt;/groupIdgt; lt;artifactIdgt;gsonlt;/artifactIdgt; lt;versiongt;2.4lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --gt; lt;dependencygt; lt;groupIdgt;mysqllt;/groupIdgt; lt;artifactIdgt;mysql-connector-javalt;/artifactIdgt; lt;versiongt;8.0.21lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/org.codehaus.jettison/jettison --gt; lt;dependencygt; lt;groupIdgt;org.codehaus.jettisonlt;/groupIdgt; lt;artifactIdgt;jettisonlt;/artifactIdgt; lt;versiongt;1.4.0lt;/versiongt; lt;/dependencygt; lt;!-- https://mvnrepository.com/artifact/commons-validator/commons-validator --gt; lt;dependencygt; lt;groupIdgt;commons-validatorlt;/groupIdgt; lt;artifactIdgt;commons-validatorlt;/artifactIdgt; lt;versiongt;1.4.0lt;/versiongt; lt;/dependencygt; lt;/dependenciesgt; lt;buildgt; lt;finalNamegt;${project.artifactId}lt;/finalNamegt; lt;pluginManagementgt;lt;!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --gt; lt;pluginsgt; lt;plugingt; lt;artifactIdgt;maven-clean-pluginlt;/artifactIdgt; lt;versiongt;3.1.0lt;/versiongt; lt;/plugingt; lt;!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging --gt; lt;plugingt; lt;artifactIdgt;maven-resources-pluginlt;/artifactIdgt; lt;versiongt;3.0.2lt;/versiongt; lt;/plugingt; lt;plugingt; lt;artifactIdgt;maven-compiler-pluginlt;/artifactIdgt; lt;versiongt;3.8.0lt;/versiongt; lt;/plugingt; lt;plugingt; lt;artifactIdgt;maven-surefire-pluginlt;/artifactIdgt; lt;versiongt;2.22.1lt;/versiongt; lt;/plugingt; lt;plugingt; lt;artifactIdgt;maven-war-pluginlt;/artifactIdgt; lt;versiongt;3.2.2lt;/versiongt; lt;/plugingt; lt;plugingt; lt;artifactIdgt;maven-install-pluginlt;/artifactIdgt; lt;versiongt;2.5.2lt;/versiongt; lt;/plugingt; lt;plugingt; lt;artifactIdgt;maven-deploy-pluginlt;/artifactIdgt; lt;versiongt;2.8.2lt;/versiongt; lt;/plugingt; lt;/pluginsgt; lt;/pluginManagementgt; lt;/buildgt; lt;/projectgt;