Try configuring release:prepare to do an 'install' instead of just a 'verify'... There's (still?) a problem with releasing a WAR or EAR package in Maven...
Roland On 29.07.2011 15:23, Tiago António Neves wrote: > Hi all, > > I’m using codehaus jboss-packaging-maven-plugin to get a sar. I’m then > deploying this jboss-sar inside an ear. > > Pom A: > > <groupId>pt.nevaco</groupId> > > <artifactId>children1</artifactId> > > <version>1.0.0-SNAPSHOT</version> > > <packaging>jboss-sar</packaging> > > <build> > > <plugins> > > <plugin> > > <groupId>org.codehaus.mojo</groupId> > > <artifactId>jboss-packaging-maven-plugin</artifactId> > > <version>2.1.1</version> > > <extensions>true</extensions> > > </plugin> > > </plugins> > > </build> > > Pom B: > > <groupId>pt.nevaco</groupId> > > <artifactId>children2</artifactId> > > <version>1.0.0-SNAPSHOT</version> > > <packaging>ear</packaging> > > <dependencies> > > <dependency> > > <groupId>pt.nevaco</groupId> > > <artifactId>children1</artifactId> > > <version>${version}</version> > > </dependency> > > </dependencies> > > <build> > > <plugins> > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-ear-plugin</artifactId> > > <version>2.5</version> > > <configuration> > > <displayName>Nevaco EAR</displayName> > > <version>1.4</version> > > <fileNameMapping>no-version</fileNameMapping> > > <modules> > > <sarModule> > > <groupId>pt.nevaco</groupId> > > <artifactId>children1</artifactId> > > </sarModule> > > </modules> > > </configuration> > > </plugin> > > </plugins> > > </build> > > The problem is that when I run mvn release:prepare it seems to don’t > understand that the sar is from my project and tries to download it from > the repos > > [INFO] [INFO] > ------------------------------------------------------------------------ > > [INFO] [ERROR] BUILD ERROR > > [INFO] [INFO] > ------------------------------------------------------------------------ > > [INFO] [INFO] Failed to resolve artifact. > > [INFO] > > [INFO] Missing: > > [INFO] ---------- > > [INFO] 1) pt.nevaco:children1:sar:1.0.0 > > [INFO] > > [INFO] Try downloading the file manually from the project website. > > [INFO] > > [INFO] Then, install it using the command: > > [INFO] mvn install:install-file -DgroupId=pt.nevaco > -DartifactId=children1 -Dversion=1.0.0 -Dpackaging=sar -Dfile=/path/to/file > > [INFO] > > [INFO] Alternatively, if you host your own repository you can deploy the > file there: > > [INFO] mvn deploy:deploy-file -DgroupId=pt.nevaco -DartifactId=children1 > -Dversion=1.0.0 -Dpackaging=sar -Dfile=/path/to/file -Durl=[url] > -DrepositoryId=[id] > > [INFO] > > [INFO] Path to dependency: > > [INFO] 1) pt.nevaco:children2:ear:1.0.0 > > [INFO] 2) pt.nevaco:children1:sar:1.0.0 > > [INFO] > > [INFO] ---------- > > [INFO] 1 required artifact is missing. > > [INFO] > > [INFO] for artifact: > > [INFO] pt.nevaco:children2:ear:1.0.0 > > [INFO] > > [INFO] from the specified remote repositories: > > [INFO] central (http://xxx/xxx-releases), > > [INFO] repo (http://xxx/repo), > > [INFO] snapshots (http://xxx/xxx-snapshots) > > [INFO] > > [INFO] > > [INFO] > > [INFO] [INFO] > ------------------------------------------------------------------------ > > [INFO] [INFO] For more information, run Maven with the -e switch > > [INFO] [INFO] > ------------------------------------------------------------------------ > > [INFO] [INFO] Total time: 12 seconds > > [INFO] [INFO] Finished at: Fri Jul 29 13:35:02 BST 2011 > > [INFO] [INFO] Final Memory: 42M/362M > > [INFO] [INFO] > ------------------------------------------------------------------------ > > [INFO] > ------------------------------------------------------------------------ > > [ERROR] BUILD ERROR > > [INFO] > ------------------------------------------------------------------------ > > [INFO] Maven execution failed, exit code: '1' > > [INFO] > ------------------------------------------------------------------------ > > Any ideas/workaround???? > > Tiago Neves > > cid:image001.jpg@01CB84E5.0C98AA60 > > > > > > ** > > *Tiago António da Silva Vaz Neves * > > Sistemas de Suporte às Operações > SSO4 - Controlo de Processos de Operação > tlm: (+351) 96 911 38 28 > fax: (+351) 234 403 588 > tiago-a-ne...@ptinovacao.pt <mailto:tiago-a-ne...@ptinovacao.pt> > -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at ------------------------------------------------------------- >>> business. people. technology. <<< ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org