Hi,
I'm trying to use maven-antrun-plugin with rmic and
${pom.getDependencyPath('')}
My projects are set like this :
root
pom.xml
api
pom.xml
myapp-api
pom.xml
src
myapp2-api
pom.xml
src
impl
pom.xml
myapp-impl
pom.xml
src
myapp2-impl
pom.xml
src
I want to create stub for classes in myapp-impl. And myapp-impl have
dependancies with myapp-api (the remote interface is define in it).
In the pom.xml of myapp-impl, I use maven-antrun-plugin and
${pom.getDependencyPath('cba.cs:myapp-api')}
<project>
...
<dependency>
<groupId>cba.cs</groupId>
<artifactId>myapp-api</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
...
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo>pom.getDependencyPath('cba.cs:myapp-api') -->
${pom.getDependencyPath('cba.cs:myapp-api')}</echo>
<rmic debug="false" base="${basedir}/target/classes"
stubVersion="1.2" iiop="true" verify="true" idl="false"
classpath="${pom.getDependencyPath('cba.cs:myapp-api')}">
<include
name="**/DatabaseLogRepository$DatabaseLogRepositoryService.class"></include>
</rmic>
</tasks>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>sun</groupId>
<artifactId>tools</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
</plugin>
...
</project>
The error is :
[rmic] Unable to verify class
cba.cs.myapp.impl.DatabaseLogRepository$DatabaseLogRepositoryService. It
is not defined.
rmic can't find the remote interface, can't find myapp-api...
All works fine when the class with the remote interface is in near the
class to "stubify" (in the same directory).
${pom.getDependencyPath('cba.cs:myapp-api')} work fine with maven 1 (in
a postgoal, with <ant:property name="var"
value="${pom.getDependencyPath('cba.cs:myapp-api')}"/>
How can I do to have stub classes ?
How can I retrieve the real path of a dependency ?
Thanks in advance.
--
\|/
-o o-
----------o00-(_)-00o-------------
Didier BRICHET
Mél : [EMAIL PROTECTED]
------oo00-----------00oo---------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]