Comments (12)
I think i have the same problem. Here is a reproducer
https://github.com/Dufgui/tycho-demo/tree/toolchain/itp04-rcp
ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.3.0:compile (default-compile) on project example-bundle: Compilation failure: Compilation failure:
[ERROR] C:\Users\gdufour\git\github\eclipse\tycho-demo\itp04-rcp\example-bundle\src\example\bundle\Application.java:[21]
[ERROR] import javax.xml.bind.annotation.XmlEnum;
[ERROR] ^^^^^^^^^^^^^^
from tycho.
@Dufgui can you create a PR that adds a new integrationtest for this case derived from the example?
from tycho.
I try but all my test are working on IT. i will check my product build if I miss some alignment because it seems working.
https://github.com/Dufgui/tycho/tree/571533_breeJava8
here is my branch
#188
from tycho.
it's work on my mac, and the same repo last week on my windows fail. Maybe i miss the path on my windows laptop.
I will check next week (when i go back to work) to check.
from tycho.
Hi. I'm having the same issue with javax.xml.bind* classes not being resolved. For me, versions later than 2.1.0 of tycho-compiler-plugin show the problem.
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<executionEnvironment>JavaSE-1.8</executionEnvironment>
...
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<compilerArgument>-warn:+discouraged,forbidden</compilerArgument>
<source>1.8</source>
<target>1.8</target>
<useJDK>BREE</useJDK>
</configuration>
</plugin>
<toolchains>
<toolchain>
<type>jdk</type>
<provides>
<id>JavaSE-1.8</id>
<version>1.8</version>
<vendor>ibm</vendor>
</provides>
<configuration>
<jdkHome>/home/jenkins/.../ibm-java-x86_64-80/</jdkHome>
</configuration>
</toolchain>
</toolchains>
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.5.0:compile (default-compile) on project com.ibm.zosconnect.ui.common: Compilation failure: Compilation failure:
[ERROR] /home/jenkins/.../com.ibm.###removed###.java:[30]
[ERROR] import javax.xml.bind.JAXBContext;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^
from tycho.
@cipresso can you provide an simple reproducer project for thsi issue?
from tycho.
@akurtakov I debugged this a bit and get the feeling that this is probably caused due to removed JavaSE1.8 profile, what do you think would it harm to add this back (and simply not manage it any further) for 2.7.x ?
from tycho.
Where is the JavaSE-1.8 profile removed?
from tycho.
Where is the JavaSE-1.8 profile removed?
Good question, I though it was part of Tycho but seems be part of org.eclipse.ogi
I just noticed its not in tcho-core so I assumed we have removed it.
Maybe I'm on the wrong track but if I have Jdk8 should it not resolve+compile without any additional adding for javax.
stuff? Sadly the only jdk8 test we have do not use such imports thats why this regression was not discovered..
from tycho.
I personally don't have time to spend on Java 8 issues, there is enough on my plate with Java 18 which is far more important IMHO.
from tycho.
This issue is a regression of Bug 561363.
To restore old behavior one needs to set <deriveReleaseCompilerArgumentFromTargetLevel>false<deriveReleaseCompilerArgumentFromTargetLevel>
.
from tycho.
I summarized the important parts here: https://github.com/eclipse/tycho/wiki/Compiling-code-for-older-java-releases
from tycho.
Related Issues (20)
- Confusing warning or wrong use of system JDK in the compiler plugin?
- set-version fails to update MANIFEST.MF if CI-firendly versions are in use
- Improve output for missing requirements on dependencies
- Building fails because of `Inconsistent reactor project` HOT 2
- Broken links in the Eclipse/Github wiki HOT 1
- Unconsidered linked .classpath files and test source folders HOT 1
- [tycho-version-plugin] Since 4.0.5 non-matching version of child modules are forcefully overwritten HOT 3
- forceContextQualifier has been broken since Tycho 4.0.5
- sort order of root nodes in dependency-tree is unstable HOT 1
- Linked .classpath files: linked classpath entries paths not resolve against project base directory
- Parsing custom variables in linked project resources HOT 2
- [DS] Validation of transitive generated 'osgi.extender=osgi.component' requirement fails HOT 11
- support reuseFork option in tycho-surefire-plugin
- Unable to build eclipse application repository or site with patch features HOT 3
- The application packaged by Tycho can't start on MacOS 14.4 HOT 1
- Missing p2 dependencies in maven dependency:tree output HOT 1
- Goal `publish-features-and-bundles` inherits metadata available in reactor HOT 3
- Not possible to remove qualifier for release build from bundles/features and product when using CI friendly versions HOT 1
- Strange error with Tycho 4.0.8 HOT 3
- [sbom] BOM is calculated multiple times for the same unit HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tycho.