[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Compile the source to my plugin before building it
|
Ed,
I've discovered that Tycho uses the build.properties file (generated when creating a project in eclipse) as well as the pom to identify source locations. From experience, if tycho/maven cannot find source it will simply skip the compilation step. Below are the contents of the build.properties file I use for a component that sounds like it is similarly structured:
bin.includes = .,\
META-INF/
source.. = src/,\
resource/
src.excludes = */.svn/*
-Eric
On 29/02/2012 7:51 PM, Edward Schwarz wrote:
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>
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user