Hi guys,
  I'm using version 1.0.0.  This issue wasn't the the resources weren't
copied, but rather they weren't processed in a way that matches the
pom.xml settings. I only perform resource processing (the variable
substitution) on a small set of files, however when I was using them in
eclipse my output file still contained the variables from the resource
source file.  To get around this I ultimately disabled the maven builder
then used the external tool builder to invoke maven and my phases from
the command line.  I have a couple of questions.

1. Is there any documentation on what phases the m2e runs when it's
integrated as an eclipse builder?  I'm unsure what the plugin is
actually doing, and I couldn't find any documentation that outlines what
it actually performs.

2. Is it possible to invoke a maven phase or plugin without the need to
rely on the external tool as part of the project builders using m2e?

Thanks,
Todd

On 20 July 2011 06:22, <[email protected]> wrote:

        Done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=352494
        
        
        -Matthew
        
        -----Original Message-----
        From: [email protected]
        [mailto:[email protected]] On Behalf Of Igor
        Fedorenko
        
        
        Sent: Tuesday, July 19, 2011 12:40 PM
        
        
        To: [email protected]
        Subject: Re: [m2e-users] Help with process-resources
        
        The only way to "make sure this issue doesn't fall through the
        cracks"
        is to provide a quality patch with adequate test coverage ;-)
        Feel free
        to open new bugzilla and I'll dup it with the old one if I can
        find it.
        
        --
        Regards,
        Igor
        
        On 11-07-19 7:21 PM, [email protected] wrote:
        > Do you happen to know the number of that bug, and/or if it's
        planned
        to
        > be fixed in the next release? I looked through Bugilla (very
        sad you
        had
        > to drop the 20-year-more-modern JIRA system) but couldn't find
        it. I
        > want to make sure this issue doesn't fall through the cracks,
        since
        this
        > is pretty much a blocker to the rest of my team upgrading to
        m2e 1.0.
        >
        > Thanks,
        >
        > -Matthew
        >
        > -----Original Message-----
        > From: [email protected]
        > [mailto:[email protected]] On Behalf Of Igor
        Fedorenko
        > Sent: Tuesday, July 19, 2011 9:53 AM
        > To: [email protected]
        > Subject: Re: [m2e-users] Help with process-resources
        >
        > I believe there is a bugreport about this scenario already,
        i.e. when
        > project properties set by one mojo are not visible to mojos
        executed
        > later in the build lifecycle.
        >
        > --
        > Regards,
        > Igor
        >
        > On 11-07-19 6:13 PM, [email protected] wrote:
        >> This may be unrelated but I'm also having a similar problem.
        We use
        > the
        >> buildnumber plugin to put a timestamp into a properties file
        and it
        >> doesn't work anymore in Eclipse after we've upgraded to m2e
        1.0. To
        >> reproduce yourself, create an app.properties with the
        following
        >> contents:
        >>
        >> buildnumber=${buildNumber}
        >> project.version=${project.version}
        >>
        >> And then put the following in your pom.xml:
        >>
        >>       <build>
        >>           <resources>
        >>               <resource>
        >>                   <directory>src/main/resources</directory>
        >>                   <filtering>true</filtering>
        >>                   <includes>
        >>                       <include>app.properties</include>
        >>                   </includes>
        >>               </resource>
        >>           </resources>
        >>           <plugins>
        >>               <plugin>
        >>                   <groupId>org.codehaus.mojo</groupId>
        >>
        <artifactId>buildnumber-maven-plugin</artifactId>
        >>                   <version>1.0-beta-1</version>   <!-- can't
        update
        to
        > newer
        >> version due to MOJO-1463 -->
        >>                   <executions>
        >>                       <execution>
        >>                           <phase>generate-resources</phase>
        >>                           <goals>
        >>                               <goal>create</goal>
        >>                           </goals>
        >>                       </execution>
        >>                   </executions>
        >>                   <configuration>
        >>                       <format>{0,date,yyMMddHHmm}</format>
        >>                       <items>
        >>                           <item>timestamp</item>
        >>                       </items>
        >>                   </configuration>
        >>               </plugin>
        >>           </plugins>
        >>       </build>
        >>
        >> ${project.version} gets resolved fine, from Eclipse or the
        command
        > line,
        >> but ${buildNumber} only gets resolves if run from the command
        line.
        > I've
        >> tried every phase I can think of, to no avail. Any clue
        what's wrong?
        >>
        >> Thanks,
        >>
        >> -Matthew
        >>
        >> -----Original Message-----
        >> From: [email protected]
        >> [mailto:[email protected]] On Behalf Of Igor
        Fedorenko
        >> Sent: Tuesday, July 19, 2011 1:07 AM
        >> To: [email protected]
        >> Subject: Re: [m2e-users] Help with process-resources
        >>
        >> What exact m2e version do you use? m2e 1.0 available as part
        of
        > Eclipse
        >> 3.7 "Indigo" release is expected to process resources
        automatically,
        >> without any explicit configuration.
        >>
        >> --
        >> Regards,
        >> Igor
        >>
        >> On 11-07-19 1:26 AM, Todd Nine wrote:
        >>> Hi guys,
        >>> We've using the latest m2e, but we're still on maven 2.2.1,
        which I
        >> have
        >>> defined in my eclipse settings as the default.
        >>>
        >>> We have several projects that depend on resource processing,
        however
        >>> I've notice that the maven build phase does not execute
        process
        >> resources.
        >>>
        >>> I have the maven builder as the last builder in our
        project's list
        of
        >>> builders per project, how can I add specific maven goals to
        this
        >> builder?
        >>>
        >>> At the moment we're executing maven as an external tool,
        however
        this
        >>> seems a bit sloppy since we have direct maven integration
        with the
        >> plugin.
        >>>
        >>> Thanks,
        >>>
        >>> Todd
        >> _______________________________________________
        >> m2e-users mailing list
        >> [email protected]
        >> https://dev.eclipse.org/mailman/listinfo/m2e-users
        >> _______________________________________________
        >> m2e-users mailing list
        >> [email protected]
        >> https://dev.eclipse.org/mailman/listinfo/m2e-users
        > _______________________________________________
        > m2e-users mailing list
        > [email protected]
        > https://dev.eclipse.org/mailman/listinfo/m2e-users
        > _______________________________________________
        > m2e-users mailing list
        > [email protected]
        > https://dev.eclipse.org/mailman/listinfo/m2e-users
        _______________________________________________
        m2e-users mailing list
        [email protected]
        https://dev.eclipse.org/mailman/listinfo/m2e-users
        _______________________________________________
        m2e-users mailing list
        [email protected]
        https://dev.eclipse.org/mailman/listinfo/m2e-users
        


_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to