Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] m2e and maven-clean-plugin ?

Validate phase should work.

--
Regards,
Igor

On 2014-08-15, 20:11, Cristiano Gavião wrote:
Aaahhhhh, I got now...

there are a clean, site and default lifecycles ! where clean:clean is
bound to clean one...

one more question: if I bind a maven-clean-plugin goal (as I did with
antrun-plugin) to validate phase it would work ?

thanks a lot,

Cristiano


On 15-08-2014 12:54, Igor Fedorenko wrote:
Phases that are part of maven default lifecycle are documented in [1].
Only plugin executions bound to one of these phases run inside m2e.

[1]
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference


--
Regards,
Igor

On 2014-08-15, 19:47, Cristiano Gavião wrote:
Well, It seems that this bug was closed by inactivity...

so I went to another path and found a way to add an ant task tight to
validate phase that deletes those required files...

Igor, sorry my ignorance, but could you explain me what do you mean
about "m2e only executes mojos bound to
default lifecycle." ?

thanks


On 15-08-2014 00:40, Igor Fedorenko wrote:
Looks like this is a known problem [1], m2e only executes mojos
bound to
default lifecycle.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=357531

--
Regards,
Igor

On 2014-08-15, 4:10, Cristiano Gavião wrote:
Hi Igor,
I tried to map clean:clean using lifecycle-mapping plugin like the
snippet below.

    <build>
                     <pluginManagement>
                         <plugins>
                             <plugin>
    <groupId>org.eclipse.m2e</groupId>
    <artifactId>lifecycle-mapping</artifactId>
    <version>1.0.0</version>
                                 <configuration>
    <lifecycleMappingMetadata>
<pluginExecutions>
    <pluginExecution>
    <pluginExecutionFilter>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-clean-plugin</artifactId>
    <versionRange>[2.0,)</versionRange>
<goals>
    <goal>clean</goal>
</goals>
    </pluginExecutionFilter>
<action>
    <execute>
    <runOnIncremental>false</runOnIncremental>
<runOnConfiguration>true</runOnConfiguration>
    </execute>
</action>
    </pluginExecution>


Attached is the requested project. Note there is a hh.jar simulating a
generated jar that I also need to remove.

regards,

Cristiano

On 14-08-2014 12:51, Igor Fedorenko wrote:
How did you map clean:clean in m2e? Can you attach small example that
demonstrates your setup?

--
Regards,
Igor

On 2014-08-12, 18:23, Cristiano Gavião wrote:
        Hello,

        I added the maven-clean-plugin setup below in my project in
        order to delete some generated resource folders at each
build.

        I would like that this could happen when I use m2e's "Update
        Project...", but this remotion is not happen inside eclipse:

        <plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
          <directory>${basedir}</directory>
<includes>
          <include>*.jar</include>
          <include>CONFIG/</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
                                 </plugin>

        I could note that lifecycle clean:clean is ignored by m2e by
        default. So, I enabled its execution using a
lifecycle-mapping.
        I can see in lifecycle properties view now that it is not
        ignored anymore, but  I can't see any resource being
deleted.

        what is the reason of clean:clean is being ignored by
default?

        and is there any way to use maven-clean-plugin with m2e ?

        many thanks,

        Cristiano



_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users



_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top