You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by syam kumar chatakondu <sy...@gmail.com> on 2014/09/24 12:04:53 UTC
Issue while using the Maven's Ant task.
Hi,
I am using ants maven tasks to converts my existing ant’s build script to
refer to maven repository for dependency management instead of keeping a
copy of libraries in the project. Using as follows.
<artifact:remoteRepository id="myrepository" url="
http://xxxxx/artifactory/fmw-virtual"/>
<artifact:dependencies pathId="myclasspath" >
<dependency groupId="GroupID1" artifactId="AF1" version="1.0.0" />
<dependency groupId=" GroupID2" artifactId=" AF2"
version="1.0.0-1" />
<remoteRepository refid=" myrepository " />
</artifact:dependencies>
Now the AF2.pom has a parent ‘parent.pom’ and this parent.pom is having a
dependency as below.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>manifest.publish.label.WEBSERVICES_MAIN_GENERIC</groupId>
<artifactId>manifest</artifactId>
<version>${webservices.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
When I run my build.xml,
1. AF1.pom is downloaded from http://xxxxx/artifactory/fmw-virtual
2. Parent.pom is downloaded from http://xxxxx/artifactory/fmw-virtual
3. Downloading:
manifest/publish/label/WEBSERVICES_MAIN_GENERIC/manifest/1.0.0-1/manifest-1.0.0-1.pom
from repository central at http://repo1.maven.org/maven2 but not from
http://xxxxx/artifactory/fmw-virtual
And this is causing connection timeout and Build Execution is terminated.
Please help me in fixing this issue.
Note: I am referring to maven-ant-tasks-2.1.3.jar
Regards,
Syam