Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Error in Maven Build using Tycho(Error in Maven Build using Tycho Compiler)
Error in Maven Build using Tycho [message #1820721] Mon, 27 January 2020 16:31
Nikhil Singh is currently offline Nikhil SinghFriend
Messages: 17
Registered: January 2020
Junior Member
I am trying to build my Eclipse plugin using Maven build using tycho-compiler 1.0.0.

I am getting the following error:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile (default-compile) on project com.infy.finacle.fsdp.cwbcore.menu: Compilation failure: Compilation failure:
[ERROR] ...............\Getfile.java:[49]
[ERROR] import sun.net.ftp.FtpClient;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^
[ERROR] Access restriction: The type 'FtpClient' is not API (restriction on classpath entry 'C:\Program Files\AdoptOpenJDK\jdk-8.0.202.08\jre\lib\rt.jar')
[ERROR] ...............\Getfile.java:[50]
[ERROR] import sun.net.ftp.FtpDirEntry;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^.

I searched lot and added <compilerArgs>
<arg>-err:-forbidden</arg>
</compilerArgs>
to my pom.xml where I define tycho-compiler-plugin.

Build is successful.

Please help me to know what is <arg>-err:-forbidden</arg> and what did it do?
Is it going to effect my plugin also? Any other impact?

Any support will be helpful.
Previous Topic:tycho-compiler-plugin:1.5.1:compile Maven Error
Next Topic:Problem with installing plugins in Eclipse
Goto Forum:
  


Current Time: Thu Apr 25 07:24:53 GMT 2024

Powered by FUDForum. Page generated in 0.07736 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top