[ 
https://issues.apache.org/jira/browse/XMLBEANS-593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17480692#comment-17480692
 ] 

jkcboys edited comment on XMLBEANS-593 at 1/23/22, 5:35 PM:
------------------------------------------------------------

Hi PJ Fanning,

Thank you for pointing to right document reference. When I was trying to build 
one sample project, I observed compilation issues with the POM file  
"artifactId" OR "groupId" value is having hyphen("-") in the name. Also 
attached the sample project and build log here. 

Could you please help us what's wrong with the POM entries or anything we are 
missing?

Apart from this sample project, our existing projects are using "artifactId" OR 
"groupId" values with hyphen("-"). So we can't remove them.
{noformat}
package 
xml-sample-xmlbeans.xml-sample-app-xmlbeans.metadata.system.xml-sample-app-xmlbeans;{noformat}
{noformat}
[ERROR] 
/C:/Users/spulukur/Desktop/XmlBeansTest/test/xml-sample-app-xmlbeans/target/generated-sources/xml-sample-xmlbeans/xml-sample-app-xmlbeans/metadata/system/xml-sample-app-xmlbeans/TypeSystemHolder.java:[1,12]
 ';' expected
[INFO] 1 error{noformat}


was (Author: JIRAUSER283877):
Hi PJ Fanning,

Thank you for pointing to right document reference. When I was trying to build 
one sample project, I observed compilation issues with the POM file  
"artifactId" OR "groupId" value is having hyphen("-") in the name. Also 
attached the sample project and build log here. 

Could you please help us what's wrong with the POM entries or anything we are 
missing?
{noformat}
package 
xml-sample-xmlbeans.xml-sample-app-xmlbeans.metadata.system.xml-sample-app-xmlbeans;{noformat}
{noformat}
[ERROR] 
/C:/Users/spulukur/Desktop/XmlBeansTest/test/xml-sample-app-xmlbeans/target/generated-sources/xml-sample-xmlbeans/xml-sample-app-xmlbeans/metadata/system/xml-sample-app-xmlbeans/TypeSystemHolder.java:[1,12]
 ';' expected
[INFO] 1 error{noformat}

> upgrade xmlbeans from 3.1.0 to 5.0.3 fails
> ------------------------------------------
>
>                 Key: XMLBEANS-593
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-593
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: Version 4.0.0, Version 5.0.3
>         Environment: windows
>            Reporter: jkcboys
>            Priority: Major
>             Fix For: Version 5.0.3
>
>         Attachments: Build_Log_WITH_Hyphen.txt, xml-sample-app-xmlbeans.zip
>
>
> Hi Team,
>  
> We are using xmlbeans 3.1.0 in our project and planning to upgrade it to 
> 5.0.3 latest version.
> In the upgrade process, I have observed that[ xmlbeans-maven-plugin 2.3.3 POM 
> file is having maven dependency to xmlbeans 
> 2.4.0|https://repo1.maven.org/maven2/org/codehaus/mojo/xmlbeans-maven-plugin/2.3.3/xmlbeans-maven-plugin-2.3.3.pom],
>  even though I have xmlbenas maven dependency to 5.0.3 in my project, 
> compilation(using java 1.8) was failing to the below. Somebody already raised 
> issue for the same on xmlbeans 4.0.0, but the issue was closed. 
> https://issues.apache.org/jira/browse/XMLBEANS-553 without much information. 
> Because of this issue we are unable to upgrade xmlbeans from 3.1.0 to 5.0.3. 
> Could you please help us on this?
>  
> _[INFO] --- xmlbeans-maven-plugin:2.3.3:xmlbeans (core-and-automation) @ 
> xml-model ---_
> _Downloading: 
> {color:#FF0000}[http://nexus.us.oracle.com:8088/nexus/content/groups/public/org/apache/xmlbeans/xmlbeans/2.4.0/xmlbeans-2.4.0.pom]{color}_
> _Downloaded: 
> [http://nexus.us.oracle.com:8088/nexus/content/groups/public/org/apache/xmlbeans/xmlbeans/2.4.0/xmlbeans-2.4.0.pom]
>  (5 KB at 8.2 KB/sec)_
> _Downloading: 
> [http://nexus.us.oracle.com:8088/nexus/content/groups/public/org/apache/xmlbeans/xmlbeans/2.4.0/xmlbeans-2.4.0.jar]_
> _Downloaded: 
> [http://nexus.us.oracle.com:8088/nexus/content/groups/public/org/apache/xmlbeans/xmlbeans/2.4.0/xmlbeans-2.4.0.jar]
>  (2631 KB at 112.5 KB/sec)_
> _warning: [options] bootstrap class path not set in conjunction with -source 
> 1.4_
> _warning: [options] source value 1.4 is obsolete and will be removed in a 
> future release_
> _warning: [options] target value 1.4 is obsolete and will be removed in a 
> future release_
> _warning: [options] To suppress warnings about obsolete options, use 
> -Xlint:-options._
> _..\..\parent\xml-model\target\generated-sources\xmlbeans\com\ossms\orderModel\x2002\x06\x25\SystemHealthPoliciesType.java:144:
>  {color:#FF0000}error: cannot find symbol{color}_
>         _public static 
> com.ossms.orderModel.x2002.x06.x25.SystemHealthPoliciesType 
> parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws 
> org.apache.xmlbeans.XmlException, 
> org.apache.xmlbeans.xml.stream.XMLStreamException {_
>                                                                               
>                                                _^_
>   _{color:#FF0000}symbol:   class XMLInputStream{color}_
>   _location: package org.apache.xmlbeans.xml.stream_
> _..\..\parent\xml-model\target\generated-sources\xmlbeans\com\ossms\orderModel\x2002\x06\x25\SystemHealthPoliciesType.java:144:
>  {color:#FF0000}error: cannot find symbol{color}_
>         _public static 
> com.ossms.orderModel.x2002.x06.x25.SystemHealthPoliciesType 
> parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws 
> org.apache.xmlbeans.XmlException, 
> org.apache.xmlbeans.xml.stream.XMLStreamException {_
>                                                                               
>                                                                               
>                                                              _^_
>   _{color:#FF0000}symbol:   class XMLStreamException{color}_
>   _location: package org.apache.xmlbeans.xml.stream_
>  
>  
> Thanks,
> Surendra



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to