Hmm, that must be annoying :-)

The first thing I would do is to remove auto process-resources
(generate-sources) that is done by m2eclipse. I think you know better than
m2eclipse when to generate and I think it is a too heavy operation to do on
each save.

In my daily work I use two commands, which I think works fine.
Quick generation: 
mvn -o -Dfornax.generator.force.execution=true generate-sources

When doing some bigger model changes, such as removing/renaming classes
mvn clean generate-sources
Eclipse refresh is often confused by above clean and therefore I often have
to do Eclipse project clean afterwards.

You can always remove checksum-plugin if it is causing problem together with
m2eclipse or the way you work. checksum-plugin is not critical. Its purpose
is to remove untouched files from src/main/java so that they are
re-generated. That is seldom any problem anyway if you create gap files only
when you need them.

Does that help you? 
I guess we should update the documentation, at least regarding m2eclipse.

/Patrik


Joachim Draeger-3 wrote:
> 
> Hi,
> 
> I'm using sculptor 1.8.0 with Maven
> fornax-cartridges-sculptor-archetype-standalone. I noticed that
> generated files from src/main/resources and src/test/resources were
> generated once and disappeared afterwards.
> 
> The second time generate-sources is performed the
> fornax-checksum-m2-plugin removes the files but fornax-oaw-m2-plugin
> doesn't execute if the model hasn't changed
> (oaw-generation-lastrun.timestamp).
> 
> The effect is even more strange using m2eclipse. It executes
> "process-resources resources:testResources" and therefore
> generate-sources on every resource change. If you run generate-sources
> the files get deleted soon after because the generation causes
> resources to change...
> I've removed the goals in eclipse Maven/Lifecycle Mappings and added
> fornax.generator.force.execution parameter.
> 
> How is the fornax-checksum-m2-plugin supposed to deal with the
> checkResources feature of the fornax-oaw-m2-plugin?
> 
> Joachim
> 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> Fornax-developer mailing list
> Fornax-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fornax-developer
> 
> 

-- 
View this message in context: 
http://old.nabble.com/fornax-checksum-m2-plugin-vs.-oaw-generation-lastrun.timestamp-checkResources-tp28715196s17564p28724257.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------

_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to