Hello All,

I have a strange problem with using antlib, may be I am doing something
wrong. I am a new in maven 2.

I have a parent project pom and a child project pom. The parent project
doesn't have any sources and needed only for storing common info for
different children projects. 

Then I do mvn deploy from the root and it successful deploys both parent and
child projects to my local repository. Then I am trying to retrieve child
dependence  in my build.xml file.

 

 

  <target name="test" depends="initTaskDefs">

    <artifact:dependencies useScope="runtime">

      <artifact:dependency groupId="com.offshorecreations"
artifactId="gameserverframework" version="0.0.1-SNAPSHOT" />

      <artifact:localRepository refid="local.repository" />

      <artifact:remoteRepository refid="intranet.repository" />

    </artifact:dependencies>

  </target>

 

And it prints 

 

[artifact:dependencies] An error has occurred while processing the Maven
artifact tasks.

[artifact:dependencies]  Diagnosis:

[artifact:dependencies]

[artifact:dependencies] Unable to resolve artifact: Unable to get dependency
information: Unable to read t

he metadata file for artifact
'com.offshorecreations:gameserverframework:jar': POM 'com.offshorecreations:

gameplatform' not found in repository: Unable to download the artifact from
any repository

[artifact:dependencies]
com.offshorecreations:gameplatform:0.0.1-SNAPSHOT:pom

[artifact:dependencies]

[artifact:dependencies] from the specified remote repositories:

[artifact:dependencies]   remote (http://ivanov:7070/repository2)

[artifact:dependencies]

[artifact:dependencies]
com.offshorecreations:gameserverframework:0.0.1-SNAPSHOT:jar

[artifact:dependencies]

[artifact:dependencies] from the specified remote repositories:

[artifact:dependencies]   remote (http://ivanov:7070/repository2)

[artifact:dependencies] Path to dependency:

[artifact:dependencies]         1) unspecified:unspecified:jar:0.0

 

Then when I checked what is in the repository my parent project has
gameplatform.jar but it was gameplatform.pom actually. And there is no any
gameplatform.pom in that directory. 

 

My child project linked to the parent project like this - 

            <parent>

                        <groupId>com.offshorecreations</groupId>

                        <artifactId>gameplatform</artifactId>

                        <version>0.0.1-SNAPSHOT</version>

            </parent>

 

Best Regards,

Yuri Ivanov

E-Mail:  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]

MSN:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]

ICQ: 147038971

Reply via email to