Error in Maven Build using Tycho [message #1820721] |
Mon, 27 January 2020 16:31 |
Nikhil Singh 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.
|
|
|
Powered by
FUDForum. Page generated in 0.10847 seconds