You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Barrie Treloar <ba...@gmail.com> on 2006/11/08 22:31:02 UTC

[m2] eclipse:eclipse and checkstyle nature

I found one post here
http://www.nabble.com/forum/ViewPost.jtp?post=2165470&framed=y&skin=177
which discussed creating the buildcommand, projectnature and
additional .checkstyle file needed for configuring checkstyle in
eclipse but this has yet made it back to the community.

I can configure the checkstyle using the following:
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-eclipse-plugin</artifactId>
          <configuration>
            <downloadSources>true</downloadSources>
            <additionalBuildcommands>
              <buildcommand>
                com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder
              </buildcommand>
            </additionalBuildcommands>
            <additionalProjectnatures>
              <projectnature>
                com.atlassw.tools.eclipse.checkstyle.CheckstyleNature
              </projectnature>
            </additionalProjectnatures>
          </configuration>
        </plugin>

But I also need the ${project}/.checkstyle file.

Anyone have recommendations on how to do this?
Should eclipse:eclipse be extended to support this?
Should eclipse:checkstyle be created instead?

Cheers

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


Re: [m2] eclipse:eclipse and checkstyle nature

Posted by Daniel Kulp <da...@iona.com>.

On Wednesday November 08 2006 4:31 pm, Barrie Treloar wrote:
> I found one post here
> http://www.nabble.com/forum/ViewPost.jtp?post=2165470&framed=y&skin=177
> which discussed creating the buildcommand, projectnature and
> additional .checkstyle file needed for configuring checkstyle in
> eclipse but this has yet made it back to the community.
>
> I can configure the checkstyle using the following:
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-eclipse-plugin</artifactId>
>           <configuration>
>             <downloadSources>true</downloadSources>
>             <additionalBuildcommands>
>               <buildcommand>
>                 com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder
>               </buildcommand>
>             </additionalBuildcommands>
>             <additionalProjectnatures>
>               <projectnature>
>                 com.atlassw.tools.eclipse.checkstyle.CheckstyleNature
>               </projectnature>
>             </additionalProjectnatures>
>           </configuration>
>         </plugin>
>
> But I also need the ${project}/.checkstyle file.
>
> Anyone have recommendations on how to do this?
> Should eclipse:eclipse be extended to support this?
> Should eclipse:checkstyle be created instead?

We kind of ran into the same problem, but it's not limited to checkstyle.  
PMD also has the same issue.   We also wanted the ability to setup the 
workspace to set warning levels, code formats, import orders, etc....

We ended up creating a "-Psetup.eclipse" profile that uses a combination 
of the eclipse plugin and antrun to completely get things setup.   
eclipse:eclipse handles the .classpath/.project stuff, but antrun creates 
the .pmd, .ruleset, .checkstyle files as well as creates the workspace, 
injects code formats into the workspace, adds the checkstyle.xml file 
into the workspace (with the correct name), etc....

Anyway, you can see what we did at:
http://svn.apache.org/repos/asf/incubator/cxf/trunk/pom.xml


-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194   F:781-902-8001
daniel.kulp@iona.com

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


Re: [m2] eclipse:eclipse and checkstyle nature

Posted by Nicolas DE LOOF <ni...@capgemini.com>.
I think Barrie would like the .eclipse to be created by the Eclipse (or 
Checkstyle ?) plugin according to the project checkstyle configuration.

Nico.

Rolf Strijdhorst a écrit :
> what do you need the .checkstyle file for. I mean eclipse finds it on its
> own. as soon as you include de builder and the nature.
>
> Rolf
>
> On 11/8/06, Barrie Treloar <ba...@gmail.com> wrote:
>>
>> I found one post here
>> http://www.nabble.com/forum/ViewPost.jtp?post=2165470&framed=y&skin=177
>> which discussed creating the buildcommand, projectnature and
>> additional .checkstyle file needed for configuring checkstyle in
>> eclipse but this has yet made it back to the community.
>>
>> I can configure the checkstyle using the following:
>>         <plugin>
>>           <groupId>org.apache.maven.plugins</groupId>
>>           <artifactId>maven-eclipse-plugin</artifactId>
>>           <configuration>
>>             <downloadSources>true</downloadSources>
>>             <additionalBuildcommands>
>>               <buildcommand>
>>                 com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder
>>               </buildcommand>
>>             </additionalBuildcommands>
>>             <additionalProjectnatures>
>>               <projectnature>
>>                 com.atlassw.tools.eclipse.checkstyle.CheckstyleNature
>>               </projectnature>
>>             </additionalProjectnatures>
>>           </configuration>
>>         </plugin>
>>
>> But I also need the ${project}/.checkstyle file.
>>
>> Anyone have recommendations on how to do this?
>> Should eclipse:eclipse be extended to support this?
>> Should eclipse:checkstyle be created instead?
>>
>> Cheers
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.


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


Re: [m2] eclipse:eclipse and checkstyle nature

Posted by Barrie Treloar <ba...@gmail.com>.
On 11/13/06, Rolf Strijdhorst <ro...@gmail.com> wrote:
> Ok then,
> in the maven eclipse plugin i found the following that could be of use?

Top find Rolf.

I am already using the 2.3-SNAPSHOT to try out the pde stuff.

eclipse:eclipse is now able to produce the .checkstyle file correctly
and eclipse is happy.

Thanks.

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


Re: [m2] eclipse:eclipse and checkstyle nature

Posted by Rolf Strijdhorst <ro...@gmail.com>.
Ok then,
in the maven eclipse plugin i found the following that could be of use?

<parameter>
          <name>additionalConfig</name>
          <type>org.apache.maven.plugin.eclipse.EclipseConfigFile</type>
          <required>false</required>
          <editable>true</editable>
          <description>Allow to configure additional generic configuration
files for eclipse that will be written out to disk when running
eclipse:eclipse. FOr each file you can specify the name and the text
content.
<additionalConfig>
 <file>
 <name>.checkstyle</name>
 <content>
 <![CDATA[<fileset-config file-format-version="1.2.0" simple-config="true">
 <fileset name="all" enabled="true" check-config-name="acme corporate style"
local="false">
 <file-match-pattern match-pattern="." include-pattern="true"/>
 </fileset>
 <filter name="NonSrcDirs" enabled="true"/>
 </fileset-config>]]>
 </content>
 </file>
</additionalConfig>
</description>

Basically make use of the Additional config param of the eclipse-plugin

On 11/10/06, Barrie Treloar <ba...@gmail.com> wrote:
>
> On 11/9/06, Rolf Strijdhorst <ro...@gmail.com> wrote:
> > what do you need the .checkstyle file for. I mean eclipse finds it on
> its
> > own. as soon as you include de builder and the nature.
>
> The .checkstyle file does not exist.
> It is automatically created when you go into the preference pages and
> turn on checkstyle.
>
> I am attempting to get eclipse:eclipse to automatically turn on
> checkstyle for me, I can get the natures and builders but the
> .checkstyle file also needs to be created by the eclipse:eclipse
> plugin or checkstyle does not work.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Release Rollback

Posted by Rahul Thakur <ra...@gmail.com>.
I don't think this is available as a Maven Mojo yet. But it would really 
cool to have.

I hit similar situation at work where I needed to revert a release. The 
other alternate is to delete the release tag (referring to CVS, but not 
sure about other SCMs).

Any one else has any ideas? May be someone from maven-release-plugin 
team can comment if this is feasible or not :-)

Cheers,
Rahul


Daniel Murley wrote:
> Hi All,
>
> Is it at all possible to rollback a release after calling release:perform?  
>
> Thanks
>
> Daniel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>   

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


Release Rollback

Posted by Daniel Murley <dm...@xbiosystems.com>.
Hi All,

Is it at all possible to rollback a release after calling release:perform?  

Thanks

Daniel


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


Re: [m2] eclipse:eclipse and checkstyle nature

Posted by Barrie Treloar <ba...@gmail.com>.
On 11/9/06, Rolf Strijdhorst <ro...@gmail.com> wrote:
> what do you need the .checkstyle file for. I mean eclipse finds it on its
> own. as soon as you include de builder and the nature.

The .checkstyle file does not exist.
It is automatically created when you go into the preference pages and
turn on checkstyle.

I am attempting to get eclipse:eclipse to automatically turn on
checkstyle for me, I can get the natures and builders but the
.checkstyle file also needs to be created by the eclipse:eclipse
plugin or checkstyle does not work.

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


Re: [m2] eclipse:eclipse and checkstyle nature

Posted by Rolf Strijdhorst <ro...@gmail.com>.
what do you need the .checkstyle file for. I mean eclipse finds it on its
own. as soon as you include de builder and the nature.

Rolf

On 11/8/06, Barrie Treloar <ba...@gmail.com> wrote:
>
> I found one post here
> http://www.nabble.com/forum/ViewPost.jtp?post=2165470&framed=y&skin=177
> which discussed creating the buildcommand, projectnature and
> additional .checkstyle file needed for configuring checkstyle in
> eclipse but this has yet made it back to the community.
>
> I can configure the checkstyle using the following:
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-eclipse-plugin</artifactId>
>           <configuration>
>             <downloadSources>true</downloadSources>
>             <additionalBuildcommands>
>               <buildcommand>
>                 com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder
>               </buildcommand>
>             </additionalBuildcommands>
>             <additionalProjectnatures>
>               <projectnature>
>                 com.atlassw.tools.eclipse.checkstyle.CheckstyleNature
>               </projectnature>
>             </additionalProjectnatures>
>           </configuration>
>         </plugin>
>
> But I also need the ${project}/.checkstyle file.
>
> Anyone have recommendations on how to do this?
> Should eclipse:eclipse be extended to support this?
> Should eclipse:checkstyle be created instead?
>
> Cheers
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>