Hi all,
I've trying to package a EAR application unsuccessfully. My pom.xml references a EJB module this way: <dependency> <groupId>br.gov.caixa.maven</groupId> <artifactId>APPLICATION-ejb</artifactId> <version>1.0</version> <scope>provided</scope> </dependency> Everything seems ok, but I received the error below. There is an issue on jira ( <http://jira.codehaus.org/browse/MRELEASE-129> http://jira.codehaus.org/browse/MRELEASE-129) describing this problem, but there is no solution yet. I wouldn't like to install the APPLICATION-ejb-1.0.jar artifact (I believe it's not the best thing to do) . How can I solve this problem? Please help me, I've tried all possible ways to find a solution... Thanks, Andre C:\Andre\Projetos\exemplo-maven>mvn clean package [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] project [INFO] enterprise java beans [INFO] java servlets [INFO] ear assembly [INFO] ------------------------------------------------------------------------ [INFO] Building project [INFO] task-segment: [clean, package] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] [site:attach-descriptor] [INFO] ------------------------------------------------------------------------ [INFO] Building enterprise java beans [INFO] task-segment: [clean, package] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory C:\Andre\Projetos\exemplo-maven\ejbs\target [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 3 source files to C:\Andre\Projetos\exemplo-maven\ejbs\target\classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [ejb:ejb] [INFO] Building ejb APPLICATION-ejb-1.0 with ejbVersion 2.1 [INFO] Building jar: C:\Andre\Projetos\exemplo-maven\ejbs\target\APPLICATION-ejb-1.0.jar [INFO] ------------------------------------------------------------------------ [INFO] Building java servlets [INFO] task-segment: [clean, package] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://repository.jboss.com/maven2//commons-chain/commons-chain/1.2/commons- chain-1.2.pom Downloading: http://repo1.maven.org/maven2/commons-chain/commons-chain/1.2/commons-chain- 1.2.pom Downloading: http://repository.jboss.com/maven2//br/gov/caixa/maven/APPLICATION-ejb/1.0/A PPLICATION-ejb-1.0.jar Downloading: http://repo1.maven.org/maven2/br/gov/caixa/maven/APPLICATION-ejb/1.0/APPLICA TION-ejb-1.0.jar [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) br.gov.caixa.maven:APPLICATION-ejb:jar:1.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=br.gov.caixa.maven -DartifactId=APPLICATION-ejb -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=br.gov.caixa.maven -DartifactId=APPLICATION-ejb -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) br.gov.caixa.maven:APPLICATION-web:war:1.0 2) br.gov.caixa.maven:APPLICATION-ejb:jar:1.0 ---------- 1 required artifact is missing. for artifact: br.gov.caixa.maven:APPLICATION-web:war:1.0 from the specified remote repositories: repository.jboss.com (http://repository.jboss.com/maven2/), central (http://repo1.maven.org/maven2), maven2-snapshots.jboss.com (http://snapshots.jboss.com/) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 23 seconds [INFO] Finished at: Tue Sep 23 14:36:18 BRT 2008 [INFO] Final Memory: 13M/23M [INFO] ------------------------------------------------------------------------