maven删了repository仓库报错

maven编译报错 was cached in the local repository 拉包失败 maven编译报错 was cached in the local repository 拉包失败 报错 [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-M3:repackage (default) on project otpweb: Execution default of goal org.springframework.boot:spring-boot-maven-plugi 阅读详情

构建maven项目时因为jar包错需要重新下载,用老办法将maven仓库删了让他自动重建的时候报了个错误:Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from http://10.74.156.84:8085/nexus/content/groups/public/ was cached in the 
local repository, resolution will not be reattempted until the update interval of U32_PUBLIC has elapsed or updates are forced. Original error: Could not 
transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to U32_PUBLIC (http://10.74.156.84:8085/nexus/content/groups/public/): 
connect timed out

我的解决办法是:右键项目maven-updateProject,前提是我删除的只是D:\apache-maven-3.5.4\repository\org\apache\maven\plugins文件夹下的所有目录

下面是道友的解决办法:

错误信息出现在pom头的project标签,project标签内容是

<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">

 

原因

这是由于缺少maven-resources-plugin-2.6.jar文件。这个文件是在{user.home}\.m2\repository\org\apache\maven\plugins\maven-resources-plugin\下。{user.home}是maven的配置路径,一般是我的文档,是window-preferences-MyEclipse-Maven4MyEclipse-User Setting里面的Local Repository。

 

解决方案

1、在pom.xml文件中加入maven-resources-plugin配置

 

1

2

3

4

5

<dependency>

    <groupId>org.apache.maven.plugins</groupId>

    <artifactId>maven-resources-plugin</artifactId>

    <version>2.6</version>

</dependency>

  

2、在命令行下运行mvn install ,如果执行正确应该会在{user.home}\.m2\repository\org\apache\maven\plugins\maven-resources-plugin\下看到maven-resources-plugin-2.6.jar文件

 

3、刷新工程(右键工程选择刷新项)

4、刷新maven配置,右键工程节点,选择Maven4MyEclipse-Update Project Configuration

maven优先引用本地库_maven默认本地仓库 本地仓库是远程仓库的一个缓冲和子集,当你构建Maven项目的时候,首先会从本地仓库查找资源,如果没有,那么Maven会从远程仓库下载到你本地仓库。这样在你下次使用的时候就不需要从远程下载了。如果你所需要的jar包版本在本地仓库没有,而且也不存在于远程仓库,Maven在构建的时候会报错,这种情况可能是有些jar包的新版本没有在Maven仓库中及时更新。 (感觉和网络里面的路由器有点像,你发请求,先在... 阅读详情

相关推荐

关于Maven本地仓库中存在依赖时,重新下载was cached in the local repository错误

1. 本地已存在jar 项目中的一些依赖由于需要手动添加,很多时候都会创建一个私服仓库,比如nexus,将第三方jar添加到私服中,然后在pom中引用。如今朋友拿来一个项目,该项目之前下过依赖,这些依赖本地依旧存在,如今重新导入该项目,由于没了私服,于是删去私服地址后,执行mvn package后项目会重新到配置的仓库中找这些依赖下载。此时会报错"was cached in the local r...

九师兄 1万+

Maven 检出项目或删除repository后 pom报错解决方案

pom报错提示缺少各种plugin插件,试了几种网上的办法,比如先转成普通项目,再转成maven项目 不管用; 我的做法是:用命令行执行 mvn clean compile  再在eclipse 上force update完美解决

男儿当自强 1943

大模型驱动时序量化因子自动优化:从WorldQuant回测到实战策略

本文探讨了如何利用大模型驱动时序量化因子的自动优化,构建从创意生成到实战验证的完整流程。通过结合WorldQuant回测平台,搭建自动化流水线,详细拆解了因子生成、回测验证与迭代优化的核心模块。文章分享了从初版实现到进阶优化的实践经验,并指出提示词工程与领域知识注入是关键,旨在实现人机智能协作,提升量化策略研发效率。

wdx012345的博客 822

MAVEN 本地仓库误删以后

运行cmd,然后执行 mvn help:system mvn将重新下载本地仓库 完成后运行mvn help:effective-settings 查看仓库位置

奋斗 2800

[Ethernet in CANoe]4--CANoe工程中SOME/IP报文的详细介绍(二)

介绍了SOME/IP报文的SD报文(ServiceDiscovery),本片文章开始继续介绍SOME/IP报文。

汽车ECU自动化测试 1124

abaqus 6.13安装(ubuntu 16.04LTS)

1。从iso将文件拷贝出来 2。chmod 777 -R ./* 给文件权限 3。sudo /home/xx/A/setup 4。安装licenseserver 5。拷贝lic,log文件 6。打开license sudo ./lmgrd -c path 7. 27011@xx or 27011@localhost ...

a1099313374的博客 1956

maven项目删了maven dependencies怎么找回来

右键project--Maven--Select Maven Profiles,选择对于的settings.xml文件,确认,maven依赖包就回来了

zhoutao2的博客 2345

(一)DaVinci Developer AutoSAR工具 如何新建SWC、Component、RTE工程,超级详细步骤,赚到

​ 1,创建SWC,第一步需要创建一个App组件类型,首先点击Object Brower菜单,然后左键Application Component Types 选项,然后右键New Application Component Type,组件类型的作用是来后续实例一个Compoent 2、 Properties 选项卡中Nane中输入Type的名字,注意根据规范命名规则已CtAp开头,其他默认就好 ​

weixin_42602687的博客 3607

maven仓库删除下载失败的文件以及全部的空文件夹

import java.io.File; /** * @description: * @author: yuanchuan * @create: 2021/08/06 **/ public class CleanBlankFile { static File globalFile; public static void main(String[] args) { // 你的repository的绝对路径 globalFile = new File(.

nbl_yc的博客 411

Windows下的Geant4安装教程

本教程将从0开始展示在Windows下如何安装Geant4,包括各种辅助工具(QT、Cmake、Visual Studio)的下载安装,环境变量的配置,以及example的生成等。

weixin_49065278的博客 4136

activemq_CVE-2015-5254_漏洞复现_源码分析

ActiveMQ-CVE-2015-5254

qq_51550750的博客 945

私服maven库误删再恢复

maven库误删再恢复1.找到删除的历史版本 1.找到删除的历史版本 1.首先到私服服务器的sonatype-work/nexus/trash下找到你删除的库文件夹/文件,并将其copy到指定的sonatype-work/nexus/storage/目录下; 2.然后通过nexus控制台点击Add,选择Hosted Repository,然后输入被删除的Repository信息,编辑完成进行sav...

m_sherlock的博客 1572

使用ChatGPT工具阅读文献的实战教程

本文介绍核心内容为使用ChatGPT工具阅读文献,希望对学习和使用ChatGPT的同学们有所帮助。为了兼顾质量和速度,本专栏的更新频率为一周一到两更。 文章目录 1. 前言 2. 实战教程 2.1 下载工具并登录 2.2 提取文献中的关键信息

herosunly的博客 15万+

Maven中GeoTools的引入 - Maven 的 repository 与 mirror

在Maven中引入GeoTools时找不到jar包,搜索了蛮久才明白是自己maven没有学明白,于是从学了一次maven,解决了这个问题。关键在于理解maven中仓库(repository)与镜像(mirror)的关系与使用。

Sky_Tree_Delivery的博客 2万+

基于STM32+Lora设计的粮仓环境监测系统_PCB_416

为解决传统粮仓管理中存在的监测手段落后、数据实时性差、管理效率低下等问题,本项目设计并实现了一套基于STM32和LoRa技术的智能化粮仓环境监测系统。该系统由多个分布式传感器节点和一个中心网关组成,均采用STM32F103C8T6作为主控芯片。节点负责实时采集粮仓内的温度、湿度(SHT30)、粮食水分、二氧化碳及烟雾等多项环境参数,并通过LoRa无线网络将数据发送至网关。网关对数据进行汇聚后,利用Air780e 4G模块以MQTT协议将数据上传至华为云IoT平台。系统支持自动与手动两种控制模式,可根据环境阈

91

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Maven:mirror和repository 区别

Maven:mirror和repository 区别一、为什么不理解这两者的区别?二、具体原理是怎么样的? 一、为什么不理解这两者的区别? # 授之以鱼,不如授之以渔。# 很多时候我们不懂陌生的东西,主要还是对这两者本身的功能属性不了解,才会出现根本看不懂区别在哪,所以问题需要看本质。可以从以下几个步骤入手: (1)字面意思, mirror:镜像,我们开发过程中见到非常多镜像场景,比如经常会看到国外的一些网站访问很慢,我们回去清华或者阿里之类的镜像网站去下载对应资源,到这里应该就比较好理解了。 reposi

Leedsh的博客 4805

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

maven报错was cached in the local repository

maven报错: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project mtsystem: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources failed: Plugin org.

H_Dsheng的博客 3797

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

迈瑞BS系列全自动生化分析仪LIS协议接口手册(内含HL7和ASTM)

迈瑞BS系列全自动生化分析仪LIS协议接口手册,内含HL7和ASTM)

idea中 maven项目已经引入jar在仓库中,但是class类中引用该jar包报错问题

** idea中 maven项目已经引入kettle-core-6.1.0.1-196.jar在仓库中,但是class类中引用报错问题 首先试了几个方法都不行,分别是: 1.rebuild不起作用 2.删除repository中的kettle-core-6.1.0.1-196.jar,然后重新 install到仓库中,发现还不行 3.重新更新maven(reimport)也不起作用 4.重启i...

u012799495的博客 1万+

更改maven本地仓库为非默认仓库后,eclipse报错的问题

今天开发新项目时,换了IDE,由原来的myeclipse变更为了eclipse。 然后正常步骤,打开eclipse,import项目,等待配置好的maven自动创建依赖。但是这时项目突然报错了,可是项目依赖的jar包,都好好的躺在maven library里呢。 然后我看了我的maven配置 此时我的本地仓库为D盘下的maven-local-han目录,我抱着试一试的心态,将

sinat_29333515的博客 3661

Maven uploadArchives命令报错:Could not deploy to remote repository | Failed to deploy artifacts/metadata

Android Studio使用gradle上传aar到maven仓库 uploadArchives { repositories { mavenDeployer { repository(url: NEXUS_REPOSITORY_URL) { authentication(userName: getRepositoryUserName(), password: getRepositoryPassword())

devnn的专栏 4037

maven远程仓库和镜像

转 maven远程仓库和镜像 http://blog.csdn.net/zyxnetxz/article/details/5709196 http://www.blogjava.net/baoyaer/articles/355040.html http://www.cnblogs.com/jerome-rong/arch...

莫等闲的博客 1万+

nexus仓库 执行mvn mvn deploy 报错400 Repository version policy

nexus仓库 执行mvnmvn deploy 报错 Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project xxx: Failed to retrieve remote metadata com.a.b.c.xxx:4.2.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata c.

亲测,只为展现最完美的有效! 5103

maven 报错合集

一、错误 引入一个fastjson依赖包。 在远程仓库中搜索(中央仓库没搜到,也可能是我不会搜):https://mvnrepository.com/search?q=fastjson 使用这个阿里巴巴提供的fastjson。 ​ ​ ​ <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <ver

qq_44886213的博客 1万+

idea maven 本地仓库配置报错

文章目录前言idea maven 本地仓库配置报错01 错误信息02 错误原因03 下载以前maven版本 前言   如果您觉得有用的话,记得给博主点个赞,评论,收藏一键三连啊,写作不易啊^ _ ^。   而且听说点赞的人每天的运气都不会太差,实在白嫖的话,那欢迎常来啊!!! idea maven 本地仓库配置报错 01 错误信息 2 errors java.lang.RuntimeException: com.google.inject.CreationException: Unable to cre

杨杨杨~~的博客 2935

如何在Eclipse里面配置自己的Maven仓库

一、Apache官网下载 1.Maven官网下载链接:http://maven.apache.org/download.cgi 2.选择你要下载的版本,这里我选择apache-maven-3.6.3-bin.zip(https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.zip)这个版本 二、解压并完成配置 1.将文件解压到你想要安装maven的路径下,如:D:\Software 2.进入maven文

木鱼不会水的博客 2759

配置本地Maven仓库

本地仓库是远程仓库的一个缓冲和子集,当你构建Maven项目的时候,首先会从本地仓库查找资源,如果没有,那么Maven会从远程仓库下载到你本地仓库。这样在你下次使用的时候就不需要从远程下载了。如果你所需要的jar包版本在本地仓库没有,而且也不存在于远程仓库,Maven在构建的时候会报错,这种情况可能是有些jar包的新版本没有在Maven仓库中及时更新。(感觉和网络里面的路由器有点像,你发请求,先在路由器缓存中找,若有就返回;没有,再去服务器下载新的再返回给用户的同时更新路由器本地缓存。

coderrrrrr的博客 1202
上一篇: Could not load driverClass
下一篇: eclipse导入项目时js文件报错,jsp文件报错,resource包目录报错
GaoDaoZhang
博客等级 码龄9年 0粉丝 9原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值