[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)
|
- From: Andras Milassin <mila@xxxxxxxxx>
- Date: Tue, 26 May 2009 13:56:43 +0200
- Newsgroups: eclipse.technology.m2e
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.21 (Windows/20090302)
Hi Igor,
I've tried you're suggestion. I've added the following lines to the pom:
<build>
<plugins>
<plugin>
<groupId>org.codehaus.tycho</groupId>
<artifactId>maven-osgi-compiler-plugin</artifactId>
<configuration>
<extraClasspathElements>
<extraClasspathElement>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.7.0</version>
</extraClasspathElement>
</extraClasspathElements>
</configuration>
</plugin>
</plugins>
</build>
I've tried to run it, but got the following exception (it's missing the
parent pom file, it has no problem if I add ant as a dependency):
[DEBUG] Parent pom ids do not match: Parent File =
K:\DeepTest\Workspace\org.eclipse.jdt.core (head)\pom.xml, Parent ID =
dt:org.eclipse.jdt.core:3.5.0.qualifier, Child ID =
org.apache.ant:ant:1.7.0, Expected Parent ID =
org.apache.ant:ant-parent:pom:1.7.0
[ERROR]
Internal error in the plugin manager executing goal
'org.codehaus.tycho:maven-osgi-compiler-plugin:0.4.0-DEV-2233:compile':
Mojo execution failed.
Any suggestion why does it want to use the jdt.core's pom as parent?
I've tried some tricks I could come up with, but nothing helped so far.
I've tried both 0.3.0-DEV-2146 and 0.4.0-DEV-2233 releases.
Regards,
Andras.
Igor Fedorenko wrote:
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.