Dear All,

I'd like to ask you what is the best approach to delete user files during 
running eclipse:clean 
or eclipse:eclipse goal and ask about maven lifecycle phases, which maven 
eclipse plugin bound to.

We have multimodule project, and need to delete some configuration file from 
all project 
modules subdirectories when mvn eclipse:clean is running.

Maven during the generation of eclipse project must create checkstyle settings.

We implemented it by folowing maven-eclipse-plugin settings:

         
<plugin>
            
<groupId>org.apache.maven.plugins</groupId>

            
<artifactId>maven-eclipse-plugin</artifactId>
            
<configuration>
              
 <workspace>${basedir}</workspace>
              
 <wtpversion>1.0
</wtpversion>
              
 <additionalProjectnatures>

                    
 
<projectnature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</projectnature>
              
 </additionalProjectnatures>

              
 <additionalBuildcommands>
                    
 <buildcommand>
com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</buildcommand>
              
 </additionalBuildcommands>
            
<additionalConfig>
              
 <file>
                 
 <name>.checkstyle</name>
                    
 <content>

<![CDATA[
<?xml version="1.0" encoding="UTF-8"?>

<fileset-config file-format-version="1.2.0" simple-config="true">
    <local-check-config name="softlab-checkstyle" 
location="/configs/checkstyle.xml"         
                
        type="project" description="">

            
            <additional-data 
name="protect-config-file" value="false"/>

    </local-check-config>
    <fileset name="all" enabled="true" 
check-config-name="my-checkstyle-rules" local="true">

        <file-match-pattern 
match-pattern="." include-pattern="true"/>
    </fileset>
</fileset-config>]]>

                 
 </content>
              
 </file>

            
</additionalConfig>
              
 <downloadSources>true</downloadSources>
            
</configuration>
         </plugin>

Proposed fragment of
eclipse:eclipse plugin has a drawback: during eclipse:clean it doesn't
clear check-style settings. This doesn't allow refresh project
configuration from CVS.


Actually configuration option for maven-eclipse-plugin that allows us to delete 
specified files by run eclipse:clean would be 

good for us. But sometimes it is convenient to run our own plugin
in maven lifecycle phase previous to what eclipse:eclipse runs.

Would you please tell is goals eclipse:clean, eclipse:eclipse are bound  
to  some  maven lifecycle phases?

Do you plan to add features of deleting user specified files in 
maven-eclipse-plugin-2.4?
 

Thanks a lot.

My environment:
maven-eclipse-plugin-2.3

Java(TM) 2 Runtime Environment, Standard Edition (build 
1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)

Maven version: 2.0.6

Eclipse SDK Version: 3.1.2
Build id: M20060118-1600
com.atlassw.tools.eclipse.checkstyle_4.3.2 plugin



Best Regards,
Andrew Chikvaidze
Software 
Engineer
Information Systems Development
Dnipropetrovsk, Ukraine

ISD Architects team
 

Best regards,

Andrew

-- реклама -----------------------------------------------------------
Новая Эра - лучшая браузерная RPG UA-IX 2006 года. Играй, отдыхай, думай. 
http://nura.biz/

Reply via email to