Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Compile the source to my plugin before building it

Hi all,

I have a plugin project which has source code (java code, which needs
to be compiled) as well as the usual packaging of elements into a
plugin.

I cannot get the source code to compile. I have tried everything I can
think of. The plugin is created just fine, but it does not have the
compiled classes in there, neither as .class files nor as a .jar file.

I am trying to build after exporting the eclipse project from svn -
i.e., without having eclipse running or ever having treated the
exported directory as part of a workspace.

My source code is in the "src" directory immediatly under the
project's ${basedir}.

I can see the tycho-compiler-plugin being invoked and configured, but
nothing is happening.

Using Tycho 0.14.0

Any ideas?

- Ed


<?xml version="1.0" encoding="UTF-8"?>
<project
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";
	xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>com.gorillalogic.fonemonkey</groupId>
		<artifactId>com.gorillalogic.fonemonkey.parent</artifactId>
		<version>1.0.0-SNAPSHOT</version>
	</parent>
	<artifactId>com.gorillalogic.monkeytalk.ide</artifactId>
	<version>1.7.0.ea</version>
	<packaging>eclipse-plugin</packaging>
	<build>
                <sourceDirectory>src</sourceDirectory>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>2.4</version>
				<configuration>
					<outputDirectory>${basedir}/libs</outputDirectory>
					<overWriteReleases>true</overWriteReleases>
					<overWriteSnapshots>true</overWriteSnapshots>
					<overWriteIfNewer>true</overWriteIfNewer>
					<stripVersion>true</stripVersion>
				</configuration>
				<executions>
					<execution>
						<id>copy-dependencies</id>
						<phase>validate</phase>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>


Back to the top