Package org.apache.maven.archiva.model

Examples of org.apache.maven.archiva.model.Exclusion


        {
            Iterator it = elemExclusions.elementIterator( "exclusion" );
            while ( it.hasNext() )
            {
                Element elemExclusion = (Element) it.next();
                Exclusion exclusion = new Exclusion();

                exclusion.setGroupId( elemExclusion.elementTextTrim( "groupId" ) );
                exclusion.setArtifactId( elemExclusion.elementTextTrim( "artifactId" ) );

                exclusions.add( exclusion );
            }
        }
View Full Code Here


        {
            throw new IllegalArgumentException( "Exclusion key [" + key + "] should be 2 parts. (detected "
                + parts.length + " instead)" );
        }

        Exclusion exclusion = new Exclusion();
        exclusion.setGroupId( parts[0] );
        exclusion.setArtifactId( parts[1] );

        dependency.addExclusion( exclusion );
    }
View Full Code Here

        public void addAllExclusions( List depExclusions )
        {
            Iterator it = depExclusions.iterator();
            while ( it.hasNext() )
            {
                Exclusion ref = (Exclusion) it.next();
                String key = DependencyGraphKeys.toManagementKey( ref );
                exclusions.add( key );
            }
        }
View Full Code Here

        Map ret = new HashMap();

        Iterator it = exclusions.iterator();
        while ( it.hasNext() )
        {
            Exclusion exclusion = (Exclusion) it.next();
            String key = exclusion.getGroupId() + ":" + exclusion.getArtifactId();
            ret.put( key, exclusion );
        }

        return ret;
    }
View Full Code Here

        Iterator it = mainExclusionMap.entrySet().iterator();
        while ( it.hasNext() )
        {
            Map.Entry entry = (Entry) it.next();
            String key = (String) entry.getKey();
            Exclusion mainExclusion = (Exclusion) entry.getValue();
            Exclusion parentExclusion = (Exclusion) parentExclusionMap.get( key );

            if ( parentExclusion == null )
            {
                merged.add( mainExclusion );
            }
View Full Code Here

                if ( CollectionUtils.isNotEmpty( dependency.getExclusions() ) )
                {
                    Iterator itexclusion = dependency.getExclusions().iterator();
                    while ( itexclusion.hasNext() )
                    {
                        Exclusion exclusion = (Exclusion) itexclusion.next();
                        toNode.addExclude( exclusion );
                    }
                }

                if ( dependency.isFromParent() )
View Full Code Here

        Map<String, Exclusion> ret = new HashMap<String, Exclusion>();

        Iterator<Exclusion> it = exclusions.iterator();
        while ( it.hasNext() )
        {
            Exclusion exclusion = it.next();
            String key = exclusion.getGroupId() + ":" + exclusion.getArtifactId();
            ret.put( key, exclusion );
        }

        return ret;
    }
View Full Code Here

        Map<String, Exclusion> parentExclusionMap = createExclusionMap( parentExclusions );

        for ( Map.Entry<String, Exclusion> entry : mainExclusionMap.entrySet() )
        {
            String key = entry.getKey();
            Exclusion mainExclusion = entry.getValue();
            Exclusion parentExclusion = parentExclusionMap.get( key );

            if ( parentExclusion == null )
            {
                merged.add( mainExclusion );
            }
View Full Code Here

        {
            Iterator<Element> it = elemExclusions.elementIterator( "exclusion" );
            while ( it.hasNext() )
            {
                Element elemExclusion = it.next();
                Exclusion exclusion = new Exclusion();

                exclusion.setGroupId( elemExclusion.elementTextTrim( "groupId" ) );
                exclusion.setArtifactId( elemExclusion.elementTextTrim( "artifactId" ) );

                exclusions.add( exclusion );
            }
        }
View Full Code Here

        public void addAllExclusions( List depExclusions )
        {
            Iterator it = depExclusions.iterator();
            while ( it.hasNext() )
            {
                Exclusion ref = (Exclusion) it.next();
                String key = DependencyGraphKeys.toManagementKey( ref );
                exclusions.add( key );
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.maven.archiva.model.Exclusion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.