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
-- 
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.

Reply via email to