有了maven,我偶尔会看到一些来自我尚未构建或包含在我的存储库中的第三方存储库的工件.
我将从maven客户端收到一条错误消息,指出无法找到工件:
未能找到org.jfrog.maven.annomojo:maven-plugin-anno:jar:1.4.0 in
http://myrepo:80/artifactory/repo缓存在本地存储库中,在MyRepo的更新间隔过去或强制更新之前,不会重新尝试解析 - > [帮助1]
现在,我理解这意味着什么,并且可以简单地重新运行我的命令-U,并且通常在那里工作正常.
但是,我发现这个错误信息非常不直观,并且试图让我的同事们感到头疼.
我想知道是否有一些地方可以修改此update interval设置.
update interval此错误消息的客户端或服务器端的设置,被提及?我希望有人可以帮我解决我正在努力解决的问题.
当我尝试从终端构建我的项目时,我收到此错误:
Failed to read artifact descriptor for com.morrislgn.merchandising.common:test-data-utils:jar:0.3b-SNAPSHOT: Could not find artifact com.morrislgn.merchandising:merchandising:pom:0.3b-SNAPSHOT
Run Code Online (Sandbox Code Playgroud)
该common.test-data-utilsJAR是由一个单独的项目创建,这和其他项目之间共享(其他项目不建或者,但那是下来的问题).
我能够com.morrislgn.merchandising.common:test-data-utils毫无问题地构建,我可以看到它.m2在我的机器上的本地存储库中创建的条目.我也在Eclipse中重新编制了我的存储库索引.
我的项目的POM有这个条目:
<dependency>
<groupId>com.morrislgn.merchandising.common</groupId>
<artifactId>test-data-utils</artifactId>
<version>0.3b-SNAPSHOT</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
这似乎对我来说是正确的 - 当在Eclipse中查看时,POM不会报告任何错误.
有人可以告诉我这里缺少什么或做错了吗?
我在SpringSource Tool Suite中创建了一个新的maven项目.我在新的maven项目中遇到此错误.
无法转移org.apache.maven.plugins:来自http://repo1.maven.org/maven2的 maven-surefire-plugin:pom:2.7.1 被缓存在本地存储库中,在更新间隔之前不会重新尝试解析中心已经过去或强制更新.原始错误:无法传输工件org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from/to central(http://repo1.maven.org/maven2):连接超时
pom.xml中:
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.test.app</groupId>
<artifactId>TestApp</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>TestApp</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Run Code Online (Sandbox Code Playgroud)
将Settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<pluginGroups>
</pluginGroups>
<proxies>
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>user</username>
<password>pass</password>
<host>ip</host>
<port>80</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
</proxies>
<servers>
</servers>
<mirrors>
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo1.maven.org/maven2/</url>
</mirror>
</mirrors>
<profiles>
</profiles>
</settings>
Run Code Online (Sandbox Code Playgroud)
请注意,我能够构建它.在IDE中的pom.xml中显示错误.任何解决方案?
我一直在努力工作这几天试图让它发挥作用.尝试将JSP与Spring Boot一起使用.我一直在github上关注这个例子.Web上有很多这样的例子都有一个web.xml文件,但github上的例子在这个论坛上被多次引用,甚至没有web.xml.此外,在创建Spring Boot项目时,STS不会创建具有子目录"WEB-INF"的"webapp"目录.我必须在Windows资源管理器中手动创建它们,然后在STS中刷新Project Explorer以使它们出现.
无论如何,我尽可能地遵循了这个例子,但是当我在地址字段中键入http:// localhost:8080时仍然无法在浏览器中呈现我的index.jsp文件.
任何指导将不胜感激.
这就是我到目前为止所拥有的.
目录结构:
application.properties:
spring.mvc.view.prefix=/WEB-INF/jsp/
spring.mvc.view.suffix=.jsp
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/jeddatae_editor
spring.datasource.username=webapp
spring.datasource.password=secret
Run Code Online (Sandbox Code Playgroud)
的index.jsp:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%
String name = request.getParameter("name");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>JED Login</title>
</head>
<body>
<form action="/index" method="post">
<p>Insert ID here: <input type="text" id="id" name="id"></p>
<input type=submit>
</form>
<%
if(!name.equals(""))
{
%>
<div class="welcome">
<p>Welcome <%=name %> </p><p>If you are not <%=name %>, then …Run Code Online (Sandbox Code Playgroud) 当我尝试安装maven时,我在intellij中收到此错误,我尝试了此处提出的所有解决方案“/sf/ask/355184441/”,但它不起作用
PS C:\Users\stagiaire1\Desktop\Vgc\vgc-backend> mvn clean install -Dmaven.test.skip=true
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.dzadvisory:bankapp >-----------------------
[INFO] Building bankapp 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.344 s
[INFO] Finished at: 2022-09-21T16:51:00+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase ".test.skip=true". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phas
es are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, …Run Code Online (Sandbox Code Playgroud) 我是CI和Jenkins的新手.
我正在将git项目(https://github.com/jenkinsci/git-plugin)导入我的日食,但我收到的错误是:
"Project build error: Non-resolvable parent POM: Failure to transfer
org.jenkins-ci.plugins:plugin:pom:1.480 from http//download.eclipse.org/jgit/maven
was cached in the local repository,
resolution will not be reattempted until the update interval of jgit-repository
has elapsed or updates are forced. Original error: Could not transfer artifact
org.jenkins-ci.plugins:plugin:pom:1.480 from/to jgit-repository
(http//download.eclipse.org/jgit/maven): null to
http://download.eclipse.org/jgit/maven/org/jenkins-ci/plugins/plugin/1.480/plugin-
1.480.pom and 'parent.relativePath' points at wrong local POM"
Run Code Online (Sandbox Code Playgroud) 我已经开始使用Maven开发一个新项目了,我无法在eclipse上正常工作.我有这个错误的倍数:
ArtifactTransferException: Failure to transfer com.caucho:hessian:jar:3.1.5 from <repository> was cached in the local repository, resolution will not be reattempted until the update interval of Archiva SIVPN Internal has elapsed or updates are forced. Original error: Could not transfer artifact com.caucho:hessian:jar:3.1.5 from/to Archiva SIVPN Internal (<repository>): No response received after 60000 pom.xml /<file> line 2 Maven Dependency Problem
Description Resource Path Location Type
Run Code Online (Sandbox Code Playgroud)
缺少工件com.caucho:hessian:jar:3.1.5 pom.xml/line 2 Maven依赖问题
在做了一些研究之后,我发现它可能是pom.xml错了,或者我有代理问题.
我检查了资源在我们的存储库中是否可用,并且pom片段与我的代码中声明的相同:
<dependency>
<groupId>com.caucho</groupId>
<artifactId>hessian</artifactId>
<version>3.1.5</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
我的代理适用于项目的主干,并且没有其他代理我知道.
我认为这可能是一次性连接问题,但是使用新的maven构建-U并没有解决问题.
我还找到了/sf/ask/427798591/, 其中有几个我不知道要做什么的其他解决方案,但是它对我不起作用...... …
我应该添加什么 Maven 依赖项
import javax.mail.*;
import javax.mail.internet.*;
Run Code Online (Sandbox Code Playgroud)
从此处添加 Maven 依赖项http://mvnrepository.com/artifact/javax.mail/mail/1.5.0-b01会使某些球衣依赖项无法检索错误。您认为出了什么问题?
以下是解决依赖关系时spring spring 3的错误:
Multiple annotations found at this line:
- Missing artifact org.springframework.security:org.springframework.security.web:jar:3.0.3.RELEASE
- ArtifactTransferException: Failure to transfer
org.springframework.security:org.springframework.security.web:jar:3.0.3.RELEASE from http://
repository.springsource.com/maven/bundles/release was cached in the local repository, resolution will not be
reattempted until the update interval of com.springsource.repository.bundles.release has elapsed or updates are
forced. Original error: Could not transfer artifact org.springframework.security:org.springframework.security.web:jar:
3.0.3.RELEASE from/to com.springsource.repository.bundles.release (http://repository.springsource.com/maven/
bundles/release): connection timed out to http://repository.springsource.com/maven/bundles/release/org/
springframework/security/org.springframework.security.web/3.0.3.RELEASE/
org.springframework.security.web-3.0.3.RELEASE.jar
Run Code Online (Sandbox Code Playgroud)
以下是我的pom文件中定义的spring security 3依赖项的方法:
<!-- Spring Security dependencies -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>org.springframework.security.acls</artifactId>
<version>${spring.security.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>org.springframework.security.config</artifactId> …Run Code Online (Sandbox Code Playgroud) maven ×7
java ×4
artifactory ×1
artifacts ×1
dependencies ×1
eclipse ×1
git ×1
hessian ×1
jenkins ×1
jsp ×1
maven-3 ×1
pom.xml ×1
spring ×1
spring-boot ×1