IDEA运行测试错误Failed to resolve org.junit.platform:junit-platform-launcher
IDEA运行测试错误Failed to resolve org.junit.platform:junit-platform-launcher
问题原因:
这里的问题是IntelliJ试图在不使用IDE中配置的Maven“用户设置文件”(settings.xml)的情况下解决所需的工件本身。它将直接连接到Maven Central,但被我的雇主屏蔽了
解决方案在pom文件添加:
1 | |
1 | |
**
**
[#Java](/tags/Java/)
IDEA运行测试错误Failed to resolve org.junit.platform:junit-platform-launcher
https://zhouyinglin.top/post/d601b667.html
作者
小周
发布于
2022年8月6日
更新于
2022年12月15日
许可协议
[
**
](https://creativecommons.org/licenses/by-sa/4.0/)
[
**
](https://creativecommons.org/licenses/by-sa/4.0/)
Fluid.utils.loadComments(‘#waline’, function() {
Fluid.utils.createCssLink(‘https://lib.baomitu.com/waline/2.5.1/waline.min.css‘)
Fluid.utils.createScript(‘https://lib.baomitu.com/waline/2.5.1/waline.min.js‘, function() {
var options = Object.assign(
{“serverURL”:”https://waline-comment-blond.vercel.app/","path":"window.location.pathname","meta":["nick","mail","link"],"login":"enable","lang":"zh-CN","emoji":["https://unpkg.com/@waline/emojis@1.0.1/tieba","https://unpkg.com/@waline/emojis@1.0.1/bilibili"],"dark":"html[data-user-color-scheme=\"dark\"]","wordLimit":0,"pageSize":10},
{
el: ‘#waline’,
path: window.location.pathname
}
)
Waline.init(options);
Fluid.utils.waitElementVisible(‘#waline .vcontent’, () => {
var imgSelector = ‘#waline .vcontent img:not(.vemoji)’;
Fluid.plugins.imageCaption(imgSelector);
Fluid.plugins.fancyBox(imgSelector);
})
});
});
Please enable JavaScript to view the comments
** 目录
搜索
×
关键词
const locale = { placeholder: “说点什么吧!(填写邮箱可在被回复时收到邮件提醒)”, }; Waline.init({ el: “#waline”, serverURL: “https://comment.zhouyinglin.cn/“, locale, });
载入天数… 载入时分秒…
总访客量
次
总用户量
人
NProgress.configure({"showSpinner":false,"trickleSpeed":100})
NProgress.start()
window.addEventListener('load', function() {
NProgress.done();
})
(function (window, document) {
var typing = Fluid.plugins.typing;
var subtitle = document.getElementById('subtitle');
if (!subtitle || !typing) {
return;
}
var text = subtitle.getAttribute('data-typed-text');
typing(text);
})(window, document);
Fluid.utils.createScript(‘https://lib.baomitu.com/tocbot/4.18.2/tocbot.min.js‘, function() {
var toc = jQuery(‘#toc’);
if (toc.length === 0 || !window.tocbot) { return; }
var boardCtn = jQuery(‘#board-ctn’);
var boardTop = boardCtn.offset().top;
window.tocbot.init({
tocSelector : '#toc-body',
contentSelector : '.markdown-body',
headingSelector : CONFIG.toc.headingSelector || 'h1,h2,h3,h4,h5,h6',
linkClass : 'tocbot-link',
activeLinkClass : 'tocbot-active-link',
listClass : 'tocbot-list',
isCollapsedClass: 'tocbot-is-collapsed',
collapsibleClass: 'tocbot-is-collapsible',
collapseDepth : CONFIG.toc.collapseDepth || 0,
scrollSmooth : true,
headingsOffset : -boardTop
});
if (toc.find('.toc-list-item').length > 0) {
toc.css('visibility', 'visible');
}
});
Fluid.plugins.codeWidget();
Fluid.utils.createScript(‘https://lib.baomitu.com/anchor-js/4.3.1/anchor.min.js‘, function() {
window.anchors.options = {
placement: CONFIG.anchorjs.placement,
visible : CONFIG.anchorjs.visible
};
if (CONFIG.anchorjs.icon) {
window.anchors.options.icon = CONFIG.anchorjs.icon;
}
var el = (CONFIG.anchorjs.element || ‘h1,h2,h3,h4,h5,h6’).split(‘,’);
var res = [];
for (var item of el) {
res.push(‘.markdown-body > ‘ + item.trim());
}
if (CONFIG.anchorjs.placement === ‘left’) {
window.anchors.options.class = ‘anchorjs-link-left’;
}
window.anchors.add(res.join(‘, ‘));
});
Fluid.utils.createScript(‘https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.js‘, function() {
Fluid.plugins.fancyBox();
});
Fluid.plugins.imageCaption();
博客在允许 JavaScript 运行的环境下浏览效果更佳