[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Compiling multiple source folders with Tycho
|
Thank you for that information! Playing around with the
.classpath made me aware of an interplay of mistakes of mine which
went unnoticed. Everything works fine now. One question remains,
however. I expected the .classpath to only be relevant for the
Eclipse Java Builder. And actually Tycho doesn't seem to be very
interested in src-Folders or containers defined there. What kind
of information from the .classpath is relevant for Tycho?
The following TL;DR part is merely meant to help other people to
not fall into the same pits as I did. My mistakes:
First, I tried to keep in mind that from the Maven viewpoint
"there is no Eclipse" as mentioned in a very early article by
Peter H. Petersen and Sumit Gupta
(https://www.eclipse.org/articles/Article-Eclipse-and-Maven2//).
As such, while experimenting with Tycho, I made some changes to
the project without giving attention to a working Eclipse build.
E.g., I added the additionalsources/testpackage without even
putting it on the build path as I didn't expect Maven to even look
at the .classpath. Unfortunately, by mistake I copy&pasted
some Java file into that folder without adapting the package
statement. In consequence, the Java file was indeed compiled by
Tycho but to a folder I didn't expect it in. Actually, probably
naively, I expected Maven to decide by the source folder structure
where to put the sources.
Second, I didn't keep in mind that I had once configured the
Maven nature for the project. That, occasionally, led to Eclipse
overwriting the target folder without me noticing it. As you can
imagine that made me go crazy about the observations I made when
changing something.
Best regards,
Stefan
On 23.09.2020 19:01, Christian Dietrich
wrote:
.classpath + build.properties + packaging eclipse-plugin in pom
should be sufficient
Am 23.09.20 um 18:47 schrieb S. John:
Hi
everybody,
I am new to Tycho (and not so experienced with Maven, either)
and try to switch to an Eclipse independent Maven build for an
existing plugin project. However, I don't seem to be able to
succeed in compiling multiple source folders with Tycho. Is
there anything else, apart from the |build.properties| of an
Eclipse plugin, which Tycho considers when searching for source
folders? So far, I have the following |build.properties|:
|bin.includes = .,\||
|| META-INF/,\||
|| plugin.xml,\||
|| plugin.properties,\||
|| models/||
||jars.compile.order = .||
||source.. = src/main/java/,\||
|| src/additionalsources/||
||output.. = bin/|
As the name suggests,|src/additionsources/| contains a folder
|testpackage| with a simple Java file in it. However, |mvn clean
compile| only compiles the sources in |src/main/java| and puts
them into |target/classes|.
As Tycho needs to use it's own compiler MOJO, I assume
|build-helper-maven-plugin| will not help me in any way. Neither
will |maven-compiler-plugin| be of any use, right?
There is a related thread on the old forum which did not help
me, unfortunately:
https://www.eclipse.org/forums/index.php?t=msg&th=206776&goto=661914&#msg_661914.
Is there anything I might have missed?
Best regards,
Stefan
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user