You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tiago António Neves <ti...@ptinovacao.pt> on 2011/07/29 15:03:18 UTC
Maven release plugin with jboss packaging maven plugin
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@01CC4DF7.F96E0660]
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-neves@ptinovacao.pt<ma...@ptinovacao.pt>