You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Donszelmann, Mark" <du...@slac.stanford.edu> on 2005/11/28 06:11:46 UTC

[m2] Does the eclipse plugin support ...

Hi

I have 2 questions regarding the eclipse plugin (2.0-beta-3-SNAPSHOT from svn):

1. Does the eclipse plugin support source file excludes.
My pom contains:

      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <excludes>
            <exclude>**/*Factory.java</exclude>
          </excludes>
        </configuration>
      </plugin>

for which I would expect in the .classpath:

  <classpathentry excluding="**/*Factory.java" output=".deployables/..." kind="src" path="src/main/java"/>

but I get:

  <classpathentry kind="src" path="src/main/java"/>

should I file a JIRA issue?


2. As far as I understand, the eclipse:eclipse "goal" runs as part of the generate-sources "phase".
I guess it thereby pick up paths created by other plugins as additions to the compileSourceRoot. 
One of my plugins filters sources and does this as part of the process-sources phase. It
adds a path to compileSourceRoot which is ignored by the eclipse plugin.

Should one not run the eclipse goal as part of the process-resources phase (just before compile),
when all paths are in order?

If so, shall I file a JIRA issue?

Regards
Mark Donszelmann


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m2] Does the eclipse plugin support ...

Posted by Edwin Punzalan <ep...@exist.com>.
Please see inline comments.

Donszelmann, Mark wrote:

>Hi
>
>I have 2 questions regarding the eclipse plugin (2.0-beta-3-SNAPSHOT from svn):
>
>1. Does the eclipse plugin support source file excludes.
>My pom contains:
>
>      <plugin>
>        <artifactId>maven-compiler-plugin</artifactId>
>        <configuration>
>          <excludes>
>            <exclude>**/*Factory.java</exclude>
>          </excludes>
>        </configuration>
>      </plugin>
>
>for which I would expect in the .classpath:
>
>  <classpathentry excluding="**/*Factory.java" output=".deployables/..." kind="src" path="src/main/java"/>
>
>but I get:
>
>  <classpathentry kind="src" path="src/main/java"/>
>
>should I file a JIRA issue?
>
>  
>
Please file a jira issue.

>2. As far as I understand, the eclipse:eclipse "goal" runs as part of the generate-sources "phase".
>I guess it thereby pick up paths created by other plugins as additions to the compileSourceRoot. 
>One of my plugins filters sources and does this as part of the process-sources phase. It
>adds a path to compileSourceRoot which is ignored by the eclipse plugin.
>
>Should one not run the eclipse goal as part of the process-resources phase (just before compile),
>when all paths are in order?
>
>If so, shall I file a JIRA issue?
>  
>
Probably a good idea.... so file the jira issue. ^_^

>Regards
>Mark Donszelmann
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>For additional commands, e-mail: dev-help@maven.apache.org
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m2] Does the eclipse plugin support ...

Posted by John Casey <jd...@yahoo.com>.
I guess the basic problem with #2 below is where to stop...any mojo 
binding in any phase could add to the compile sourceroots or test 
compile sourceroots...and the later we push this into the lifecycle, the 
greater the chances that we'll have the condition where you cannot 
generate the bindings for your project in Eclipse because the project 
won't build...but it's hard to fix the project, because you have to 
build the Eclipse project up by hand! :)

That said, probably pushing it to the process-sources or 
process-resources (forgetting which runs last right now, or if they are 
both before compile) would be a reasonable step.

Donszelmann, Mark wrote:
> Hi
> 
> I have 2 questions regarding the eclipse plugin (2.0-beta-3-SNAPSHOT from svn):
> 
> 1. Does the eclipse plugin support source file excludes.
> My pom contains:
> 
>       <plugin>
>         <artifactId>maven-compiler-plugin</artifactId>
>         <configuration>
>           <excludes>
>             <exclude>**/*Factory.java</exclude>
>           </excludes>
>         </configuration>
>       </plugin>
> 
> for which I would expect in the .classpath:
> 
>   <classpathentry excluding="**/*Factory.java" output=".deployables/..." kind="src" path="src/main/java"/>
> 
> but I get:
> 
>   <classpathentry kind="src" path="src/main/java"/>
> 
> should I file a JIRA issue?
> 
> 
> 2. As far as I understand, the eclipse:eclipse "goal" runs as part of the generate-sources "phase".
> I guess it thereby pick up paths created by other plugins as additions to the compileSourceRoot. 
> One of my plugins filters sources and does this as part of the process-sources phase. It
> adds a path to compileSourceRoot which is ignored by the eclipse plugin.
> 
> Should one not run the eclipse goal as part of the process-resources phase (just before compile),
> when all paths are in order?
> 
> If so, shall I file a JIRA issue?
> 
> Regards
> Mark Donszelmann
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org