[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.m2e] Re: [tycho] build problem (org.eclipse.jdt.core)

Andras,

This is what I use to build p2-related Tycho projects (see [1] for the full pom)


<build> <plugins> <plugin> <groupId>org.codehaus.tycho</groupId> <artifactId>maven-osgi-compiler-plugin</artifactId> <configuration> <extraClasspathElements> <extraClasspathElement> <groupId>org.sonatype.tycho</groupId> <artifactId>tycho-p2-facade</artifactId> <version>${project.version}</version> </extraClasspathElement> </extraClasspathElements> </configuration> </plugin> </plugins> </build>


This works with (unannounced) 0.3.0-DEV-2146 and current 0.4.0 builds but I am not sure we will keep this syntax long term.


Please open enhancement request in JIRA [2] if you need Tycho to honour jars.extra.classpath from build.properties.

[1] https://svn.sonatype.org/m2eclipse/tycho/trunk/tycho-p2/org.sonatype.tycho.p2.impl/pom.xml
[2] https://issues.sonatype.org/browse/MNGECLIPSE


--
Regards,
Igor


Andras Milasisn wrote:
Hi!

I am currently experimenting with building Eclipse PDE components with Tycho. I could easily run the example and do some of my own examples as well. Now I want to build org.eclipse.jdt.core (checked out HEAD source from dev.eclipse.org:/cvsroot/eclipse CVS).

My problem is with the ant "dependency". This dependency is added using build.properties: "jars.extra.classpath=platform:/plugin/org.apache.ant/lib/ant.jar" - not using MANIFEST.MF. The "mvn package" command starts the process as it should, but the compilation fails with "The import org.apache cannot be resolved" error messages.

I've tried adding the ant dependency manually using dependencyManagement:

<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>org.apache.ant</artifactId>
<version>1.7.0</version>
<type>eclipse-plugin</type>
</dependency>


But this doesn't help either. Can somebody help me how to add dependencies manually?

Regards,
  Andras.