private static Map getAllModules()

in src/main/java/org/apache/maven/shared/project/utils/ProjectUtils.java [203:221]


    private static Map<String, String> getAllModules( Model model )
    {
        Map<String, String> modules = new LinkedHashMap<String, String>();

        for ( String module : model.getModules() )
        {
            modules.put( module, "project" ); // id?
        }

        for ( Profile profile : model.getProfiles() )
        {
            for ( String module : profile.getModules() )
            {
                modules.put( module, "profile(id:" + profile.getId() + ")" );
            }
        }

        return Collections.unmodifiableMap( modules );
    }