You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Yuriy Ivanov <iv...@offshorecreations.com.ua> on 2005/12/07 15:36:22 UTC
[m2] antlib problem, please help
Please, help with a problem!
I have a problem with using antlib.
I am new in maven 2. I have maven 2.0 release.
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.
I want to install/deploy my current build and then run it on other computers
without building.
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>
After ant test
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 the 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]com.offshorecreations:gameserverframework:0.0.1-SNAPS
HOT: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. Why gameplatform.jar has the content of
pom?
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: <ma...@offshorecreations.com.ua>
ivanov@offshorecreations.com.ua.
MSN: <ma...@yahoo.com> yura_ivanov2000@yahoo.com
ICQ: 147038971