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

Travis Schneeberger commented on XMLBEANS-563:
----------------------------------------------

I backed out the upgrade process and I'm kind of going by memory as to what 
issues we ran into.  I wish I would have filed this ticket when everything was 
fresh in my head.   If it helps, we use the following codehaus plugin 
configurations across several projects:
{code}
<javaSource>${project.compiler.release}</javaSource>
<memoryInitialSize>512m</memoryInitialSize>
<memoryMaximumSize>1024m</memoryMaximumSize>
<download>false</download>
<debug>false</debug>
<verbose>false</verbose>
<quiet>true</quiet>
<defaultXmlConfigDir>${gg.schema.dir}</defaultXmlConfigDir>
<schemaDirectory>${gg.schema.dir}</schemaDirectory>
<sourceGenerationDirectory>${gg.xmlbeans.gen.src}</sourceGenerationDirectory>
<classGenerationDirectory>${gg.xmlbeans.gen.cls}</classGenerationDirectory>
<staleFile>${gg.xmlbeans.gen.mrk}</staleFile>
<catalogLocation>${gg.schema.dir}/catalog.xml</catalogLocation>
<mdefNamespaces>
  <mdefNamespace>http://apply.grants.gov/forms/Attachments-V1.0</mdefNamespace>
  <mdefNamespace>http://apply.grants.gov/system/Global-V1.0</mdefNamespace>
  
<mdefNamespace>http://apply.grants.gov/system/GlobalLibrary-V1.0</mdefNamespace>
  
<mdefNamespace>http://apply.grants.gov/system/GlobalLibrary-V2.0</mdefNamespace>
  
<mdefNamespace>http://apply.grants.gov/system/UniversalCodes-V1.0</mdefNamespace>
  
<mdefNamespace>http://apply.grants.gov/system/UniversalCodes-V2.0</mdefNamespace>
</mdefNamespaces>
{code}

Now I'm not sure if all of these are important to port over.  For example: I 
could imagine the staleFile config isn't really needed.  Also, I recall the 
mdefNamespace being less convenient to configure since it is a single string.  
Either way, I'd be happy to give the upgrade another try and provide feedback 
if it helps.

> apache maven plugin does not have feature parity with codehaus maven plugin 
> or allow all configuration options
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-563
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-563
>             Project: XMLBeans
>          Issue Type: Improvement
>    Affects Versions: Version 5.0.0
>            Reporter: Travis Schneeberger
>            Priority: Blocker
>
> Upgrading to xmlbeans 5.0 requires switching to the apache xmlbeans maven 
> plugin from the codehaus xmlbeans maven plugin.  This was not possible for us 
> as not all configuration options available in the apache plugin are available 
> in the codehaus plugin.  Specifically, we need to ensure that the plugin does 
> not attempt to download resources.  After looking at the java source for the 
> plugin we noticed the following commented out lines:
> {code}
> //            params.setBaseDir(null);
> //            params.setJavaFiles(new File[0]);
> //            params.setCompiler(null);
> //            params.setMemoryInitialSize(null);
> //            params.setMemoryMaximumSize(null);
> //            params.setOutputJar(null);
> //            params.setDownload(false);
> //            params.setDebug(debug);
> //            params.setExtensions(null);
> {code}
> There may be other problems as well as we weren't able to get very far in our 
> upgrade process.  Thanks for all your work in maintaining this project.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to