<?xml version="1.0" encoding="UTF-8"?>
<pmd-cpd>
<duplication lines="17" tokens="115">
<file line="635" path="G:\apache\maven\trunks\plugins\maven-idea-plugin\target\checkout\src\main\java\org\apache\maven\plugin\idea\IdeaModuleMojo.java"/>
<file line="793" path="G:\apache\maven\trunks\plugins\maven-idea-plugin\target\checkout\src\main\java\org\apache\maven\plugin\idea\IdeaModuleMojo.java"/>
<codefragment>
<![CDATA[
        deployDescElement.addAttribute( "optional", ejbVersion.startsWith( "3" ) + "" );

        removeOldElements( component, "containerElement" );
        List artifacts = executedProject.getTestArtifacts();
        for ( Iterator i = artifacts.iterator(); i.hasNext(); )
        {
            Artifact artifact = (Artifact) i.next();

            Element containerElement = createElement( component, "containerElement" );

            if ( linkModules && isReactorProject( artifact.getGroupId(), artifact.getArtifactId() ) )
            {
                containerElement.addAttribute( "type", "module" );
                containerElement.addAttribute( "name", artifact.getArtifactId() );
                Element methodAttribute = createElement( containerElement, "attribute" );
                methodAttribute.addAttribute( "name", "method" );
                methodAttribute.addAttribute( "value", "6" );
]]>
</codefragment>
</duplication>
</pmd-cpd>