![](/img/trans.png)
[英]How to build nifi processor nar file and dependencies from maven central
[英]Trouble with ehcache dependencies from Maven Central
我正在尝试在具有空.m2 /存储库目录的新笔记本电脑上构建项目。 我收到以下错误:
BUILD FAILED
/home/awills/Dropbox/Jasig/portal/uPortal/build.xml:635: The following error occurred while executing this line:
/home/awills/Dropbox/Jasig/portal/uPortal/build.xml:1437: The following error occurred while executing this line:
/home/awills/Dropbox/Jasig/portal/uPortal/build.xml:1372: The following error occurred while executing this line:
/home/awills/Dropbox/Jasig/portal/uPortal/build.xml:1315: The following error occurred while executing this line:
/home/awills/Dropbox/Jasig/portal/uPortal/build.xml:1318: The following error occurred while executing this line:
/home/awills/Dropbox/Jasig/portal/uPortal/build.xml:1375: The following error occurred while executing this line:
/home/awills/Dropbox/Jasig/portal/uPortal/build.xml:1227: Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'net.sf.ehcache:ehcache-web:jar': Cannot find parent: net.sf.ehcache:ehcache-web-parent for project: null:ehcache-web:jar:null for project null:ehcache-web:jar:null
net.sf.ehcache:ehcache-web:jar:2.0.4
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots),
apache-snapshots (http://repository.apache.org/snapshots)
Path to dependency:
1) org.jasig.portal:uportal-war:war:4.1.0-SNAPSHOT
2) org.jasig.resourceserver:resource-server-utils:jar:1.0.38
该项目已经成熟,并且这种依赖关系最近没有改变。 该构建最近正在运行。
我不了解有关for project: null:ehcache-web:jar:null
它在哪里获取null?
net.sf.ehcache:ehcache-web:2.0.4 pom开始如下...
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-web-parent</artifactId>
<version>2.0.4</version>
</parent>
<name>Ehcache Web Filters</name>
<artifactId>ehcache-web</artifactId>
<packaging>jar</packaging>
<description><![CDATA[Web caching filters.]]> </description>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://ehcache.org/license.html</url>
</license>
</licenses>
net.sf.ehcache:ehcache-web-parent:2.0.4 pom开始如下...
<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/maven-v4_0_0.xsd">
<properties>
<forgeTags>Integration Module</forgeTags>
<Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
</properties>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-parent</artifactId>
<version>2.3</version>
</parent>
<name>Ehcache Web Filters Parent</name>
<artifactId>ehcache-web-parent</artifactId>
<packaging>pom</packaging>
<version>2.0.4</version>
<description>parent pom for web module</description>
似乎有一个父pom,并且在子pom中定义了存储库(在这种情况下为ehcache-web),maven尝试仅从子pom中定义的存储库中查找父依赖项。精通中央。
在ehcache-web pom中,您有以下内容:
<repositories>
<repository>
<id>sourceforge-snapshots</id>
<name>Sourceforge Snapshot Repository</name>
<url>http://oss.sonatype.org/content/repositories/sourceforge-snapshots</url>
</repository>
</repositories>
但是由于父级不再是快照,并且已被移至Maven中央,因此找不到该父级。 我通过从本地pom文件(〜/ .m2 / repository / net / sf / ehcache / ehcache-ehcache-web / 2.0.4 / ehcache-web-2.0.4.pom)中删除存储库元素来解决此问题。
我还必须删除存储的ehcache-web-parent pom文件,该文件只是重定向。
我在网上发现了很少的有关此信息的信息,但也许这些信息对您有所帮助: https : //issues.sonatype.org/browse/MVNCENTRAL-468 http://jira.codehaus.org/browse/MANTTASKS-246
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.