Maven, Flexmojos and generate goal : choose for destination another package than source

StackOverflow https://stackoverflow.com/questions/15664020

  •  29-03-2022
  •  | 
  •  

Question

I would like to know if there is a way to generate with Flexmojos and its generate goal another package than the source ? For example, if I have a Java class foo.bar.A.java, I would like to generatefor example bar.foo.A.as not foo.bar.A.as.

My problem is that I use :

<baseOutputDirectory>${project.build.sourceDirectory}/com/sim/gas3/base</baseOutputDirectory>
<outputDirectory>${project.build.sourceDirectory}/com/sim/gas3/</outputDirectory>

So a generated class must have package like com.sim.gas3.foo.bar whereas this plugin generates classes under com/sim/gas3 with package foo.bar only.

Était-ce utile?

La solution

ok, just find it :

<translators>
    <translator>the.older.package=the.new.package</translator>
</translators>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top