Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho build fails using tycho version 1.4.0 with JDK 11

Hi,

 

This requires expertise from Tycho team. Hopefully Alex or Michael Istria able to help you out.

 

Thanks

Sravan

From: maragani.veeru <maraganiveera@xxxxxxxxx>
Sent: 22 November 2019 14:40
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Subject: [EXTERNAL] Re: [tycho-user] Tycho build fails using tycho version 1.4.0 with JDK 11

 

Ok thanks that was resolved ,but i am facing one issue.

 

Actually in my plugins code i used one dependency java.xml from Jdk-11 ,but when am trying to build the plugins with tycho it is giving the compilations errors ,because tycho is not able to find that dependency from JDK ,how can we make it available that java.xml from JDK-11 in build process ?

Can you please let me know.

 

BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  05:14 min
[INFO] Finished at: 2019-11-22T14:34:15+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.5.1:compile (default-compile) on project com.spacetimeinsight.sistudio.common.model: Compilation failure: Compilation failure:
[ERROR] C:\Users\maragani\git\SIStudio-Java11\com.spacetimeinsight.sistudio.common.model\src\com\spacetimeinsight\sistudio\model\emf\util\XMLPersistenceMappingLoadImpl.java:[5]
[ERROR] import javax.xml.parsers.ParserConfigurationException;
[ERROR]       ^^^^^^^^^^^^^^^^^
[ERROR] The package javax.xml.parsers is accessible from more than one module: <unnamed>, java.xml
[ERROR] C:\Users\maragani\git\SIStudio-Java11\com.spacetimeinsight.sistudio.common.model\src\com\spacetimeinsight\sistudio\model\emf\util\XMLPersistenceMappingLoadImpl.java:[6]
[ERROR] import javax.xml.parsers.SAXParser;
[ERROR]       ^^^^^^^^^^^^^^^^^
[ERROR] The package javax.xml.parsers is accessible from more than one module: <unnamed>, java.xml
[ERROR] C:\Users\maragani\git\SIStudio-Java11\com.spacetimeinsight.sistudio.common.model\src\com\spacetimeinsight\sistudio\model\emf\util\XMLPersistenceMappingLoadImpl.java:[7]
[ERROR] import javax.xml.parsers.SAXParserFactory;
[ERROR]       ^^^^^^^^^^^^^^^^^
[ERROR] The package javax.xml.parsers is accessible from more than one module: <unnamed>, java.xml
[ERROR] C:\Users\maragani\git\SIStudio-Java11\com.spacetimeinsight.sistudio.common.model\src\com\spacetimeinsight\sistudio\model\emf\util\XMLPersistenceMappingLoadImpl.java:[11]
[ERROR] import org.xml.sax.SAXException;

 

On Fri, Nov 22, 2019 at 12:22 PM Sravan K Lakkimsetti <sravankumarl@xxxxxxxxxx> wrote:

Hi,

 

Latest version of Tycho is 1.5.1 and at eclipse platform project we use it with Java 11. Can you try Tycho version 1.5.1?

 

Thanks

Sravan

 

From: maragani.veeru <maraganiveera@xxxxxxxxx>
Sent: 21 November 2019 11:18
To: Tycho user list <
tycho-user@xxxxxxxxxxx>
Subject: [EXTERNAL] [tycho-user] Tycho build fails using tycho version 1.4.0 with JDK 11

 

Hi ,

Recently i upgraded all my target platform plugins to latest like the above attached file.

When i am trying to build the plugins with tycho version 1.4.0 with JDK 11, i am facing the below error ,
can you please let me know the problem.



[INFO] Scanning for projects...
[ERROR] Internal error: de.pdark.decentxml.XMLParseException: Line 2416, column 4: Expected '<!--' -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: de.pdark.decentxml.XMLParseException: Line 2416, column 4: Expected '<!--'
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:120)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
Caused by: de.pdark.decentxml.XMLParseException: Line 2416, column 4: Expected '<!--'
at de.pdark.decentxml.XMLTokenizer.parseComment(XMLTokenizer.java:454)
at de.pdark.decentxml.XMLTokenizer.parseExcalamation(XMLTokenizer.java:372)
at de.pdark.decentxml.XMLTokenizer.parseBeginSomething(XMLTokenizer.java:305)
at de.pdark.decentxml.XMLTokenizer.next(XMLTokenizer.java:235)
at de.pdark.decentxml.XMLParser.parseElementContent(XMLParser.java:835)
at de.pdark.decentxml.XMLParser.parseElement(XMLParser.java:821)
at de.pdark.decentxml.XMLParser.parse(XMLParser.java:159)
at org.eclipse.tycho.model.Feature.read(Feature.java:213)
at org.eclipse.tycho.model.Feature.read(Feature.java:208)
at org.eclipse.tycho.model.Feature.loadFeature(Feature.java:266)
at org.eclipse.tycho.core.osgitools.EclipseFeatureProject.setupProject(EclipseFeatureProject.java:53)
at org.eclipse.tycho.core.resolver.DefaultTychoResolver.setupProject(DefaultTychoResolver.java:75)
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:90)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:264)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
... 11 more
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException

 

Thanks,

Veera

 

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/tycho-user



Back to the top