Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Tycho-compile-plugin does not take dependency declarations


Hello all,

I am currently trying to build some eclipse-plugins with tycho. My problem is with internal project dependency. That means I have two projects. I call the first project "caller g"  and the second one "callee s1". There is a class in project "g" uses a class in project "s1". So this dependency can be declared explicitly in the manifest file or in the build.properties file (via  jars.extra.classpath=platform:/plugin/s1 ) of project "g". I have tested both two cases and it works. Now for the reason of flexibility, I really want to move this declaration onto the pom file of project "g". By this way, I can define a profile to switch different versions of "s" at compile time (for example, from "s1" to "s2"). I have tried with the following snippet in the pom file of "g": 

<groupId>test.tycho.dependency</groupId>
<artifactId>g</artifactId>
<version>1.0.0</version>
<packaging>eclipse-plugin</packaging>
  <build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>0.16.0</version>
<configuration>
<dependencies>
  <dependency>
<groupId>test.tycho.dependency</groupId>
<artifactId>s1</artifactId>
<version>1.0.0</version>
</dependency>  
</dependencies>
</configuration>
</plugin>
</plugins>
</build>
But this does not help. It seems that the tycho compiler has ignored this declaration in the pom file. Can somebody help me how to add this dependency in the pom file, pls? I have also experimented with the stuff called extraClasspathElements but it results into the same effect. 

Best Regards,

Thang 
     
-----------------------------------------------------------------------------------------------


Back to the top