Hi,

I use pde-maven-plugin to build automation of my eclipse plugins, it
works fine for single plugin project, but when I have a multi-module
project (each sub module behind a plugin) with interdependencies between
plugins, a plugin depending of one other plugin can't be built because
of missing dependency. Indeed like packaging is "zip" at install phase a
.zip file is installed in local repository (not a .jar) then my plugin
depending of other can't use a .zip file in her classpath.


How can I resolve dependency between my plugins?

Following my pom.xml

Main pom.xml :

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
   <modelVersion>4.0.0</modelVersion>

   <groupId>com.miasoftware</groupId>
   <artifactId>projects.mda</artifactId>
   <packaging>pom</packaging>
   <name>MDA CASE</name>

   <version>1.0-SNAPSHOT</version>
   <description>MDA CASE</description>

 <modules>
   <module>plugins/com.miasoftware.miastudio.model</module>
   <module>plugins/com.miasoftware.miastudio.model.edit</module>
 </modules>

   <build>
       <plugins>
           <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>pde-maven-plugin</artifactId>
               <extensions>true</extensions>
               <configuration>

<eclipseInstall>${user.home}/Desktop/MDARCP/eclipseTarget</eclipseInstall>
                   <buildProperties>
                       <javacSource>1.5</javacSource>
                       <javacTarget>1.5</javacTarget>
                   </buildProperties>
                   <antDebug>true</antDebug>
                   <antVerbose>true</antVerbose>
               </configuration>
           </plugin>

       </plugins>
   </build>

</project>


My modules pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
   <modelVersion>4.0.0</modelVersion>

   <groupId>com.miasoftware</groupId>
   <artifactId>com.miasoftware.miastudio.model</artifactId>
   <packaging>zip</packaging>
   <name>model layer MDA CASE</name>
   <version>1.0-SNAPSHOT</version>
   <description>Plugin containing model layer for MDA CASE</description>

    <parent>
         <groupId>com.miasoftware</groupId>
         <artifactId>projects.mda</artifactId>
         <version>1.0-SNAPSHOT</version>
         <relativePath>../../</relativePath>
     </parent>
</project>


<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
   <modelVersion>4.0.0</modelVersion>

   <groupId>com.miasoftware</groupId>
   <artifactId>com.miasoftware.miastudio.model.edit</artifactId>
   <packaging>zip</packaging>
   <name>model edit layer MDA CASE</name>
   <version>1.0-SNAPSHOT</version>
   <description>Plugin containing model edit layer for MDA
CASE</description>

    <parent>
         <groupId>com.miasoftware</groupId>
         <artifactId>projects.mda</artifactId>
         <version>1.0-SNAPSHOT</version>
         <relativePath>../../</relativePath>
     </parent>

<dependencies>
   <dependency>
     <groupId>com.miasoftware</groupId>
     <artifactId>com.miasoftware.miastudio.model</artifactId>
     <version>1.0-SNAPSHOT</version>
   </dependency>
 </dependencies>
</project>



Thanks.



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to