You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Wodzuu <wo...@gmail.com> on 2007/04/19 08:42:18 UTC
Maven does not find artifact in local repo
Hi!
I am a newbie in maven an i have one maybe silly question. I have created
one project with its pom.xml:
<?xml version="1.0"?><project>
<parent>
<artifactId>ejb</artifactId>
<groupId>com.sius.beans</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.sius.beans</groupId>
<artifactId>ejb3</artifactId>
<packaging>ejb</packaging>
<name>ejb :: ${artifactId}</name>
<version>1.0-SNAPSHOT</version>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss</groupId>
<artifactId>ejb3-persistence</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss</groupId>
<artifactId>jboss-ejb3x</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
I have executed commands:
mvn package
mvn install
Everything went right.
Now I have another project that depends on previous one. (pom.xml):
<?xml version="1.0"?><project>
<parent>
<artifactId>ejb</artifactId>
<groupId>com.sius.beans</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.sius.beans</groupId>
<artifactId>webapp</artifactId>
<packaging>war</packaging>
<name>ejb :: ${artifactId}</name>
<version>1.0-SNAPSHOT</version>
<build>
<finalName>webapp</finalName>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss</groupId>
<artifactId>jboss-ejb3x</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sius.beans</groupId>
<artifactId>ejb3</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
i execute
mvn package and i get the following error:
[INFO] Failed to resolve artifact.
GroupId: com.sius.beans
ArtifactId: ejb
Version: 1.0-SNAPSHOT
Reason: Unable to download the artifact from any repository
com.sius.beans:ejb:pom:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
Could someone help me in solving this problem ?
first project can be found in my local repo at
.m2\repository\com\sius\beans\ejb3\1.0-SNAPSHOT\ so I don't know what to do.
Thanks in advance.
Maciej
--
View this message in context: http://www.nabble.com/Maven-does-not-find-artifact-in-local-repo-tf3605339s177.html#a10072678
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven does not find artifact in local repo
Posted by Wodzuu <wo...@gmail.com>.
Hi!
Thanks for your reply.
Hmm... that's strange I can see them correctly. To be sure you can se then
correctly too i put them on my server under adress :
http://student.agh.edu.pl/~zientar/poms/ There you can find first and the
second one :) Maybe now you can help me :)
thanks.
Jörg Schaible wrote:
>
> Hi Maciej,
>
> well, your POM should contain XML tags ;-)
>
> ...
>
> Resend the message in a format please, that does not filter out the XML
> tags - otherwise noone can say something useful.
>
> - Jörg
>
> Wodzuu wrote on Thursday, April 19, 2007 8:42 AM:
>
>> Hi!
>>
>> I am a newbie in maven an i have one maybe silly question. I
>> have created
>> one project with its pom.xml:
>>
>> <?xml version="1.0"?>
>>
>> ejb
>> com.sius.beans
>> 1.0-SNAPSHOT
>>
>> 4.0.0
>> com.sius.beans
>> ejb3
>> ejb
>> ejb :: ${artifactId}
>> 1.0-SNAPSHOT
>> http://maven.apache.org
>>
>>
>> junit
>> junit
>> 3.8.1
>> test
>>
>>
>> org.jboss
>> ejb3-persistence
>> 1.0-SNAPSHOT
>> provided
>>
>>
>> org.jboss
>> jboss-ejb3x
>> 1.0-SNAPSHOT
>> provided
>>
>>
>>
>>
>> I have executed commands:
>>
>> mvn package
>> mvn install
>>
>> Everything went right.
>>
>> Now I have another project that depends on previous one. (pom.xml):
>>
>> <?xml version="1.0"?>
>>
>> ejb
>> com.sius.beans
>> 1.0-SNAPSHOT
>>
>> 4.0.0
>> com.sius.beans
>> webapp
>> war
>> ejb :: ${artifactId}
>> 1.0-SNAPSHOT
>>
>> webapp
>>
>>
>>
>> junit
>> junit
>> 3.8.1
>> test
>>
>>
>> org.jboss
>> jboss-ejb3x
>> 1.0-SNAPSHOT
>> provided
>>
>>
>> com.sius.beans
>> ejb3
>> 1.0-SNAPSHOT
>>
>>
>>
>>
>> i execute
>>
>> mvn package and i get the following error:
>>
>> [INFO] Failed to resolve artifact.
>>
>> GroupId: com.sius.beans
>> ArtifactId: ejb
>> Version: 1.0-SNAPSHOT
>>
>> Reason: Unable to download the artifact from any repository
>>
>> com.sius.beans:ejb:pom:1.0-SNAPSHOT
>>
>> from the specified remote repositories:
>> central (http://repo1.maven.org/maven2)
>>
>> Could someone help me in solving this problem ?
>> first project can be found in my local repo at
>> .m2\repository\com\sius\beans\ejb3\1.0-SNAPSHOT\ so I don't
>> know what to do.
>>
>> Thanks in advance.
>>
>> Maciej
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Maven-does-not-find-artifact-in-local-repo-tf3605339s177.html#a10073396
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org