| Hi Igor 
 Sorry to bother you again but I made a small experiment
 
 1/ From the Preference->Java->Compiler->Building::General
    panel, I disabled the use of exclusion patterns in source folder
 
 2/ run the Project->Maven->Update Project Configuration
 
 and got a modal error popup window and an error log stating
 
 !ENTRY org.eclipse.m2e.core 4 4 2012-12-16 22:45:23.656
 !MESSAGE Unable to update Maven configuration
 !SUBENTRY 1 org.eclipse.jdt.core 4 1002 2012-12-16
      22:45:23.656
 !MESSAGE Inclusion or exclusion patterns are disabled in
      project 'iso.itu.osi.omf.mim.X723.MIM', cannot selectively include
      or exclude from entry: 'src/main/resources'
 
 It seems that the org.eclipse.jdt.core plugin is trying to setup the
    Exclusion Filter. Have you any idea why this happens and if so,
    where this could be changed?
 
 Francis
 
 
 Le 16/12/2012 21:31, Francis ANDRE a
      écrit :
 Hi
      Igor
      
 Le 16/12/2012 18:29, Igor Fedorenko a écrit :
 
 First, m2e never puts excludes=** on
        generated sources folders. If you
        I am quite a bit puzzled by your response... Which knows about the
      Exclusion Filter of Eclipse except the m2e eclipse plugin? maven
      and maven plugins are not aware of Eclipse... so... I am puzzledsee this happens, some other tool does it, not m2e.
 
 
 
        m2e still needs help to recognize generated sources folder.
 
 The easiest, but somewhat crude, way to do this is to map
 foobar-maven-plugin mojo to <execute> with
        runOnConfiguration=true and
 runOnIncremental=false. This will add
        target/generated-sources/foobar
 source folder to project build path, but the sources will only
        be
 (re)generated during full/clean build. To fully support
        incremental
 build, the mojo will need to use BuildContext API. There is more
 information this in [1] wiki.
 
 [1] http://wiki.eclipse.org/M2E_compatible_maven_plugins
 
 
 --
 Regards,
 Igor
 
 On 2012-12-16 7:14 AM, Francis ANDRE wrote:
 
 Hi m2e users
          _______________________________________________
 I understand well why m2e puts an Exclusion Filter=** on any
          resource
 directory to avoid a double copy of the resources, but I am
          building a
 DSL compiler for the "foobar" language and a maven plugin to
          activate
 this compiler under Maven.
 
 As the "foobar" compiler produces java sources in
 the_target/generated-sources/foobar_ directory, m2e puts the
          Exclusion
 Filter=** and the generated java code is never compiled by
          Eclipse.
 
 How can one indicates in the foobar-maven-plugin mojo to avoid
          adding
 the Exclusion Filter for the _target/generated-sources/foobar_
          directory ?
 
 Thank in advance for your help.
 
 FA
 
 
 _______________________________________________
 m2e-users mailing list
 m2e-users@xxxxxxxxxxx
 https://dev.eclipse.org/mailman/listinfo/m2e-users
 
 
 m2e-users mailing list
 m2e-users@xxxxxxxxxxx
 https://dev.eclipse.org/mailman/listinfo/m2e-users
 
 
 _______________________________________________
 m2e-users mailing list
 m2e-users@xxxxxxxxxxx
 https://dev.eclipse.org/mailman/listinfo/m2e-users
 
 
 
 |