maven报错:Non-resolvable parent POM for com.taotao:Taotao-common:0.0.1-SNAPSHOT: Could not find artifa

Project build error: Non-resolvable parent POM: Could not find artifact weixin:weixin:pom:0.0.1-SNAP 今天遇到把maven项目 引入到一个新的eclipse工作空间,clean install 发现POM.XML文件报错 :Project build error: Non-resolvable parent POM: Could not find artifact weixin:weixin:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points a 阅读详情
AI摘要

本文解析了在使用Maven搭建淘淘商城后台项目时,遇到的子工程无法正确识别父工程的问题,并提供了有效的解决方案。文章强调了在Maven项目中,子工程pom.xml文件中的父工程配置必须与父工程pom.xml文件中的配置保持一致的重要性。

在做淘淘商城的项目一开始搭建后台maven工程的时候,做Taotao-common工程继承taotao-parent父工程时,在子工程的pom.xml文件中报错:Project build error: Non-resolvable parent POM for com.taotao:Taotao-common:0.0.1-SNAPSHOT: Could not find artifact com.taotao:Taotao-parent:pom:0.0.1-  SNAPSHOT and 'parent.relativePath' points at wrong local POM

这里说的很清楚,是父工程找不到的错误,注意上图中的父工程的依赖配置是自动生成的,按理说不应该去报这种错误。

再试着将<parent>标签下的<artifactId>改为大写开头的就不报错。这里产生了疑问,父工程的名字是小写开头的taotao-parent,而且这段配置是自动生成的,为什么会是大写的。这里因为是初学者,分析很久之后才知道在maven中继承父工程应该配置的文件是和父工程中的pom.xml中的一致,因为父工程中的pom.xml是复制过来的,和自己创建的工程名字不配套,而自动生成的子工程pom.xml关于父工程的配置是根据你在new a maven project时生成的,不具备自己匹配父工程破pom.xml文件中的功能。这里也提醒我很重要的两点:

(1)工程项目建立的时候要注意命名大小写的区别。这是一种习惯和规范可以避免很多不必要的问题

(2)子工程pom.xml文件中关于父工程的配置是要和父工程中的pom.xml文件中的工程名字去对应的,而不是你在new一个maven project时自己写的工程名字。

Non-resolvable parent POM for com.emergency.duty:duty:0.0.1-SNAPSHOT: Could not find artifact com.em 记一下这个问题。 现在有个需求,要将要来的项目拆分成六个模块,我在用maven进行clean时,出现好几个问题。 1、无法解析下面这几行。 我也忘记是什么用,我测了一下这几个不会影响其他的项目,然后直接删除了,删除后就好了。 2、Non-resolvable parent POM for com.emergency.duty:duty:0.0.1-SNAPSHOT: Could not find artifact com.emergency.command:command:pom:0.0.1-S 阅读详情

相关推荐

.m2解决方法

Project build error: Non-resolvable parent POM for com.taotao:taotao-common:0.0.1-SNAPSHOT: Could not find artifact com.taotao:taotao-parent:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM

Non-resolvable parent POM for解决

Mybatis-Generator使用时报Non-resolvable parent POM for问题解决方案 maven项目在配置好代码生成器后,执行generate报错: [INFO] Scanning for projects… [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for XXXX(子项目名称):[unknown-version]: C

qq_27170711的博客 4万+

Python实现飞书机器人定时发送文本、图片等群消息

python实现飞书群自动发送告警消息

tyh_keephunger的博客 2万+

聚合Maven工程执行编译打包出现 Non-resolvable parent POM for ...找不到父POM异常

聚合Maven工程执行编译打包出现 Non-resolvable parent POM for ...找不到父POM异常。因为是新建的maven工程,所以本地和远程仓库没有,所以没有配置relativePath时会抛出找不到父pom的异常。通过标签指定父pom路径即可。

程序吟游的博客 1万+

Windows游戏多开检测实战:5种技术原理与破解方法详解(附C++代码)

本文深入解析了Windows游戏多开检测的5种核心技术原理,包括进程枚举、互斥体、信号量、窗口及文件映射检测,并详细探讨了对应的破解方法。通过分析这些基于进程和内核对象的攻防机制,为开发者与逆向爱好者提供了从底层理解Windows系统进程管理的实战视角,并附有核心C++代码示例。

weixin_29315091的博客 243

阿里云大模型ACP认证模拟考试(二)

摘要:在阿里云大模型高级工程师 ACP 认证暂无真题题库的现状下,模拟题具有重要意义。其依照真实考试设计,涵盖题型、题量与分值分布,助力考生熟悉考试框架,合理分配答题时间精力,提升效率。同时,模拟题紧扣官方课程,能帮助考生精准定位知识盲点,如大模型架构原理和通义千问应用实践等重点内容,以便针对性完善知识体系。此外,通过练习模拟题,考生可掌握不同题型的解题思维与技巧,快速洞察复杂题目本质,提高答题准确率。

davidkorhenn的博客 2069

Non-resolvable parent POM for com.taotao:Taotao-common:0.0.1-SNAPSHOT: Could not find artifa

在做淘淘商城的项目一开始搭建后台maven工程的时候,做Taotao-common工程继承taotao-parent父工程时,在子工程的pom.xml文件中报错:Project build error: Non-resolvable parent POM for com.taotao:Taotao-common:0.0.1-SNAPSHOT: Could not find artifact c...

猪头肉的专栏 1775

2024.6.10丨基于DIAMOND与VFDB数据库的致病菌毒力因子高效注释指南

本文详细介绍了基于DIAMOND与VFDB数据库的致病菌毒力因子高效注释方法,涵盖工具安装、参数优化、数据库选择及实战案例解析。通过DIAMOND的快速比对和VFDB的全面毒力因子数据,显著提升微生物基因组研究效率,适用于临床检测、食品安全监测等多个场景。

weixin_33712987的博客 375

完美解决Maven:sun.security.validator.ValidatorException: PKIX path building failed

Maven:sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

技术宅,专注云原生、Go、Linux、Java等技术分享,原创文章、效率工具、实战解决方案!关注我,了解互联网动态,学 IT 不迷路 4万+

华为OD机试 - 项目规划 - 深度优先搜索dfs(Java 2024 C卷 100分)

每一题都有详细的答题思路、详细的代码注释、样例测试,发现新题目,随时更新,全天优快云在线答疑。

学Java,找哪吒 1153

AI使能的SVD算子:基于深度学习的矩阵分解方法

奇异值分解(Singular Value Decomposition, SVD)是线性代数中一种重要的矩阵分解方法,广泛应用于信号处理、数据降维、推荐系统等领域。传统SVD算法虽然精确,但在处理大规模矩阵时面临计算复杂度高、内存需求大等问题。本文提出了一种基于深度学习神经网络的SVD算子实现方法,完全摒弃传统数值算法,仅使用PyTorch框架构建的神经网络模型来完成大规模信道矩阵的SVD分解与还原。

huanghm88的专栏 1317

Maven报错:Non-resolvable parent POM for XXX

这个错误的原因是因为子pom文件的parent relativePath (相对路径)写错: <parent> <groupId>XXX</groupId> <artifactId>XXX</artifactId> <version>XXX</version> <relativePath&gt...

xujunson的博客 1万+

【华为OD机试真题 2025C卷】238、贪吃蛇 | 机试真题+思路参考+代码解析(C++、Java、Py、C语言、JS)

【华为OD机试真题 2025C卷】238、贪吃蛇 | 机试真题+思路参考+代码解析(C++、Java、Py、C语言、JS) 华为od机试,华为od机试真题,华为od机试E卷,华为odE卷,华为od机试真题E卷,华为OD,华为OD机试,华为OD机试真题,华为od机考,华为od机试D卷,华为od机试真题D卷,华为od手撕代码,华为od,华为od机试C卷,华为od e卷,华为2025e卷,od机试,2025E卷,华为OD机试E卷,什么是华为od,华为od介绍,全面了解华为od,2025华为od,如何备战华为od,

正在更新最新华为OD机试2025B卷,提供OJ在线刷题 196

Non-resolvable parent POM for Could not find artifact and ‘parent.relativePath‘ points at wrong loca

一、问题解决 在使用maven打包的时候,报了上面这个错,简单来说就是找不到某个依赖,这是因为我们在构建子父工程的时候,子类打包找不到父类的依赖。 一般我们只需要重新打开父类,然后执行 mvn install ,再去子类里面重新依赖一下就好了。 但是我这个父类是依赖的远程仓库,我通过maven也把它拉到了本地仓库,但是依旧不行,最后发现原因是因为,我本地安装了两个maven,M1和M2,我在配置环境变量的时候配置的是M1地址。 以前我打包都是使用下面这个地方 这里最后的打包结果都是在本地的target

小道仙的后宫 6403

Python爬虫实战教程:如何高效爬取税务局通知通告

税务局发布的通知通告包含政策法规、办税指南、公告信息等,是纳税人、企业合规经营的重要参考。官网发布频率高,手动查看不便,自动爬取并保存,方便信息及时掌握及历史数据归档。本文以合法合规的方式示范,建议实际应用前确认目标网站允许爬取的范围和方式。建议使用pandas进行数据清洗,如去重、空值处理等。对于研究税务政策、进行大数据分析、搭建行业信息平台,爬取税务局通知通告信息尤为关键。公告列表以分页形式展现,包含标题、发布时间和详情页链接。进行政策趋势图、发布频率统计等可视化。爬取公开数据时,务必遵守网站的。

2201_76125261的博客 1780

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

解决Maven项目构建错误:Non-resolvable parent POM

解决Maven项目构建错误:Non-resolvable parent POM

wangyu1170244808的博客 1万+

深度学习工具包 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 install报错:Non-resolvable parent POM for...

原因2:父pom文件设置了 modules 没有先 install 一次 解决: ①先:删掉或注释掉 < modules> < /modules>内容,操作maven install ②再:写上modules内容或取消注释,操作maven install 原因1:子pom文件的parent relativePath (相对路径)写错: <parent> <groupId>...</groupId> <artifactId>.

你知道爬上树的感觉吗 2万+

IMSL CNL 7.0.0 (x86-64)Crack

IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

android 蓝牙通讯demo

android 下蓝牙通讯demo,实现了发现蓝牙,使能蓝牙,通过蓝牙发送消息。

Non-resolvable parent POM 解决。分析 maven parent 解析顺序。

文章目录原因解决办法原理 Maven complaining about parent relative path 刚来新公司,工作的时候leader 让导入了一个maven 聚合的项目。 需求是从maven聚合项目,中独立一个服务出来。 类似上图独立 eurekaserver 项目成一个独立的项目,方便部署。 报错信息: [FATAL] Non-resolvable parent POM for com.alibaba:********:[unknown-version]: Could not fin

wangrui1605的博客 5万+

maven打包报错:Non-resolvable parent POM for

maven打包报错:Non-resolvable parent POM for

灿的博客 7666

Non-resolvable parent POM for org.springframework.boot:spring-boot-starter-parent:2.1.6.RELEASE:

项目其他都没错,就是pom文件有错 解决方法: 1.cmd进入到项目目录下,使用命令mvn compile,最后在项目右键—maven—update project. 如果不行,请用方法2 2.提示的错误缺什么就下载什么。下载地址:https://maven.aliyun.com/mvn/search 如spring-boot-starter-parent:2.1.6.RELEASE没有,就下载这个的pom文件,放到maven的repository中,再项目右键—maven—update project,一

weixin_46834409的博客 3314

maven打包错误:Non-resolvable parent POM for org.bcic.basic.biz.eros:eros-server:1.0.0: Failure to find

记录打包错误:Non-resolvable parent POM for org.bcic.basic.biz.eros:eros-server:1.0.0: Failure to find org.bcic.basic.platform:platform-dependencies:pom:1.0.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reatt

帅帅的困哒哒 1020
上一篇: 搭建 Spring MVC 框架
下一篇: MapReduce切片(Split)和分区(Partitioner)
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值