setting_settings - CSDN
  • 阿里云的maven私服的setting.xml 工具

    千次下载 热门讨论 2020-07-27 23:33:56
    这是我配置阿里云的maven私服的setting.xml文件,MirroOf配置不是*号,是central,这样在项目pom中配置repository依然生效
  • java中的setting文件

    千次阅读 2018-07-16 17:13:09
    一般工程存在自己的私服,所以settsetting文件不同,setting文件格式如下: <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="...

    一般工程存在自己的私服,所以settsetting文件不同,setting文件格式如下:

    <?xml version="1.0" encoding="UTF-8"?>
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <!--设置自己的maven本地仓库-->
    <localRepository>D:\Maven-Repository</localRepository>
        <pluginGroups/>
        <proxies/>
        <servers> 
          <server> 
            <id>nexus-rs</id> <!--这个ID要与下面的repository中的ID一致-->
            <username>admin</username> <!--nexus中配置的用户名密码-->
            <password>admin123</password> 
          </server> 
          <server> 
            <id>nexus-snapshots</id> 
            <username>admin</username> 
            <password>admin123</password> 
          </server> 
        </servers>
        <mirrors><!--从nexus下载依赖地址-->
            <mirror>
                <id>nexus-public</id>
                <mirrorOf>central</mirrorOf>
                <name>central repository</name>
                <url>http://10.198.1.103:8081/nexus/content/groups/public/</url>
            </mirror>
        </mirrors>

        <profiles>
            <profile> 
                <id>nexus</id> 
                <repositories> 
                    <repository> 
                        <id>nexus-rs</id> <!--正式仓库id-->
                        <!--name随便-->
                        <name>Nexus Release Snapshot Repository</name> 
                        <!--地址是nexus中repository(Releases/Snapshots)中对应的地址-->
                        <url>http://10.198.1.103:8081/nexus/content/repositories/releases</url>
                        <releases>
                            <enabled>true</enabled>
                        </releases> 
                        <snapshots>
                            <enabled>true</enabled>
                        </snapshots> 
                    </repository>

                    <repository>
                        <id>nexus-snapshots</id>
                        <url>http://10.198.1.103:8081/nexus/content/repositories/snapshots</url>
                        <releases><enabled>true</enabled></releases>
                        <snapshots><enabled>true</enabled></snapshots>
                    </repository>

                </repositories> 
                <pluginRepositories> <!--插件仓库地址,各节点的含义和上面是一样的-->
                    <pluginRepository> 
                        <id>nexus-rs</id> 
                        <name>Nexus Release Snapshot Repository</name> 
                        <url>http://10.198.1.103:8081/nexus/content/repositories/releases</url>
                        <releases>
                            <enabled>true</enabled>
                        </releases> 
                        <snapshots>
                            <enabled>true</enabled>
                        </snapshots>
                    </pluginRepository> 
                    <pluginRepository> 
                        <id>nexus-snapshots</id>
                        <url>http://10.198.1.103:8081/nexus/content/repositories/snapshots</url>
                        <releases><enabled>true</enabled></releases>
                        <snapshots><enabled>true</enabled></snapshots>
                    </pluginRepository> 
                </pluginRepositories> 
                 
            </profile> 
        </profiles>

        <!--激活配置-->
        <activeProfiles>
            <activeProfile>nexus</activeProfile> <!--profile下的id-->
        </activeProfiles>

    </settings>

     

    展开全文
  • android setting之Settings.system设置

    千次阅读 2020-05-01 15:24:38
    android setting 之Settings.system
    在开发调试android 系统的Setting时,总是会见到以下的代码。
    Settings.System.getInt(contentResolver, Settings.System.SOUND_EFFECTS_ENABLED, 1)
    Settings.System.putInt(getActivity().getContentResolver(),
                    Settings.System.SOUND_EFFECTS_ENABLED, enabled ? 1 : 0);
    Settings.Global.putInt
    

    其实这些值都是setting 里面设置的默认值。例如 wifi ,蓝牙,声音开关等。有时候我们想要去在系统出厂时将一些默认值修改。则可以更改以下的配置文件。其实以上的getInt等都是load的下面配置文件中的值。
    frameworks\base\packages\SettingsProvider\res\values

    <?xml version="1.0" encoding="utf-8"?>
    <!--
    /**
     * Copyright (c) 2009, The Android Open Source Project
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *     http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    -->
    <resources>
        <bool name="def_dim_screen">true</bool>
        <integer name="def_screen_off_timeout">60000</integer>
        <integer name="def_sleep_timeout">-1</integer>
        <bool name="def_airplane_mode_on">false</bool>
        <bool name="def_theater_mode_on">false</bool>
        <!-- Comma-separated list of bluetooth, wifi, and cell. -->
        <string name="def_airplane_mode_radios" translatable="false">cell,bluetooth,wifi,nfc,wimax</string>
        <string name="airplane_mode_toggleable_radios" translatable="false">bluetooth,wifi,nfc</string>
        <string name="def_bluetooth_disabled_profiles" translatable="false">0</string>
        <bool name="def_auto_time">true</bool>
        <bool name="def_auto_time_zone">true</bool>
        <bool name="def_accelerometer_rotation">false</bool>
        <!-- Default screen brightness, from 0 to 255.  102 is 40%. -->
        <integer name="def_screen_brightness">102</integer>
        <bool name="def_screen_brightness_automatic_mode">false</bool>
        <fraction name="def_window_animation_scale">100%</fraction>
        <fraction name="def_window_transition_scale">100%</fraction>
        <bool name="def_haptic_feedback">true</bool>
    
        <bool name="def_bluetooth_on">true</bool>
        <bool name="def_wifi_display_on">false</bool>
        <bool name="def_install_non_market_apps">false</bool>
        <bool name="def_package_verifier_enable">true</bool>
        <!-- Comma-separated list of location providers.
             Network location is off by default because it requires
             user opt-in via Setup Wizard or Settings.
        -->
        <string name="def_location_providers_allowed" translatable="false">gps</string>
        <bool name="assisted_gps_enabled">true</bool>
        <bool name="def_netstats_enabled">true</bool>
        <bool name="def_usb_mass_storage_enabled">true</bool>
        <bool name="def_wifi_on">false</bool>
        <!-- 0 == never, 1 == only when plugged in, 2 == always -->
        <integer name="def_wifi_sleep_policy">2</integer>
        <bool name="def_wifi_wakeup_enabled">true</bool>
        <bool name="def_networks_available_notification_on">true</bool>
    
        <bool name="def_backup_enabled">false</bool>
        <string name="def_backup_transport" translatable="false">android/com.android.internal.backup.LocalTransport</string>
    
        <!-- Default value for whether or not to pulse the notification LED when there is a
             pending notification -->
        <bool name="def_notification_pulse">true</bool>
    
        <bool name="def_mount_play_notification_snd">true</bool>
        <bool name="def_mount_ums_autostart">false</bool>
        <bool name="def_mount_ums_prompt">true</bool>
        <bool name="def_mount_ums_notify_enabled">true</bool>
    
        <!-- user interface sound effects -->
        <integer name="def_power_sounds_enabled">1</integer>
        <string name="def_low_battery_sound" translatable="false">/system/media/audio/ui/LowBattery.ogg</string>
        <integer name="def_dock_sounds_enabled">0</integer>
        <integer name="def_dock_sounds_enabled_when_accessibility">0</integer>
        <string name="def_desk_dock_sound" translatable="false">/system/media/audio/ui/Dock.ogg</string>
        <string name="def_desk_undock_sound" translatable="false">/system/media/audio/ui/Undock.ogg</string>
        <string name="def_car_dock_sound" translatable="false">/system/media/audio/ui/Dock.ogg</string>
        <string name="def_car_undock_sound" translatable="false">/system/media/audio/ui/Undock.ogg</string>
        <integer name="def_lockscreen_sounds_enabled">1</integer>
        <string name="def_lock_sound" translatable="false">/system/media/audio/ui/Lock.ogg</string>
        <string name="def_unlock_sound" translatable="false">/system/media/audio/ui/Unlock.ogg</string>
        <string name="def_trusted_sound" translatable="false">/system/media/audio/ui/Trusted.ogg</string>
        <string name="def_wireless_charging_started_sound" translatable="false">/system/media/audio/ui/WirelessChargingStarted.ogg</string>
        <string name="def_charging_started_sound" translatable="false">/system/media/audio/ui/ChargingStarted.ogg</string>
    
        <!-- sound trigger detection service default values -->
        <integer name="def_max_sound_trigger_detection_service_ops_per_day" translatable="false">1000</integer>
        <integer name="def_sound_trigger_detection_service_op_timeout" translatable="false">15000</integer>
    
        <bool name="def_lockscreen_disabled">false</bool>
        <bool name="def_device_provisioned">false</bool>
        <integer name="def_dock_audio_media_enabled">1</integer>
    
        <!-- Notifications use ringer volume -->
        <bool name="def_notifications_use_ring_volume">true</bool>
    
        <!-- Default for Settings.System.VIBRATE_IN_SILENT -->
        <bool name="def_vibrate_in_silent">true</bool>
    
        <!-- Default for Settings.Secure.SYNC_PARENT_SOUNDS -->
        <bool name="def_sync_parent_sounds">true</bool>
    
        <!-- Default for Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD -->
        <bool name="def_accessibility_speak_password">true</bool>
    
        <!-- Default for Settings.Secure.TOUCH_EXPLORATION_ENABLED -->
        <bool name="def_touch_exploration_enabled">false</bool>
    
        <!-- Default value for Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE -->
        <fraction name="def_accessibility_display_magnification_scale">200%</fraction>
    
        <!-- Default value for Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED -->
        <bool name="def_accessibility_display_magnification_enabled">false</bool>
    
        <!-- Default value for Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_AUTO_UPDATE -->
        <bool name="def_accessibility_display_magnification_auto_update">true</bool>
    
        <!-- Default for Settings.System.USER_ROTATION -->
        <integer name="def_user_rotation">0</integer>
    
        <!-- Default for Settings.Secure.DOWNLOAD_MAX_BYTES_OVER_MOBILE. <=0 if no limit -->
        <integer name="def_download_manager_max_bytes_over_mobile">-1</integer>
        <!-- Default for Settings.Secure.DOWNLOAD_RECOMMENDED_MAX_BYTES_OVER_MOBILE. <=0 if no limit -->
        <integer name="def_download_manager_recommended_max_bytes_over_mobile">-1</integer>
    
        <!-- Default for Settings.Secure.LONG_PRESS_TIMEOUT_MILLIS -->
        <integer name="def_long_press_timeout_millis">400</integer>
    
        <!-- Default for Settings.Secure.MULTI_PRESS_TIMEOUT -->
        <integer name="def_multi_press_timeout_millis">300</integer>
    
        <!-- Default for Settings.Secure.SHOW_IME_WITH_HARD_KEYBOARD -->
        <bool name="def_show_ime_with_hard_keyboard">false</bool>
    
        <!-- Default for Settings.System.POINTER_SPEED -->
        <integer name="def_pointer_speed">0</integer>
    
        <!-- Default for DTMF tones enabled -->
        <bool name="def_dtmf_tones_enabled">true</bool>
        <!-- Default for UI touch sounds enabled -->
        <bool name="def_sound_effects_enabled">true</bool>
    
        <!-- Development settings -->
        <bool name="def_stay_on_while_plugged_in">false</bool>
    
        <!-- Number of retries for connecting to DHCP.
             Value here is the same as WifiStateMachine.DEFAULT_MAX_DHCP_RETRIES -->
        <integer name="def_max_dhcp_retries">9</integer>
    
        <!-- Default for Settings.Secure.USER_SETUP_COMPLETE -->
        <bool name="def_user_setup_complete">false</bool>
    
        <!-- Default for Settings.Global.LOW_BATTERY_SOUND_TIMEOUT.
             0 means no timeout; battery sounds will always play
             >0 is milliseconds of screen-off time after which battery sounds will not play -->
        <integer name="def_low_battery_sound_timeout">0</integer>
    
        <!-- Initial value for the Settings.Secure.IMMERSIVE_MODE_CONFIRMATIONS setting,
             which is a comma separated list of packages that no longer need confirmation
             for immersive mode.
             Override to disable immersive mode confirmation for certain packages. -->
        <string name="def_immersive_mode_confirmations" translatable="false"></string>
    
        <!-- Default for Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE -->
        <integer name="def_wifi_scan_always_available">0</integer>
    
        <!-- Default for Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, 1==on -->
        <integer name="def_lock_screen_show_notifications">1</integer>
    
        <!-- Default for Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS -->
        <bool name="def_lock_screen_allow_private_notifications">true</bool>
    
        <!-- Default for Settings.Global.HEADS_UP_NOTIFICATIONS_ENABLED, 1==on -->
        <integer name="def_heads_up_enabled">1</integer>
    
        <!-- Default for Settings.Global.DEVICE_NAME $1=MANUFACTURER $2=MODEL-->
        <string name="def_device_name">%1$s %2$s</string>
    
        <!-- Default for Settings.Global.DEVICE_NAME $1=MODEL-->
        <string name="def_device_name_simple">%1$s</string>
    
        <!-- Default for Settings.Secure.WAKE_GESTURE_ENABLED -->
        <bool name="def_wake_gesture_enabled">true</bool>
    
        <!-- Default state of tap to wake -->
        <bool name="def_double_tap_to_wake">true</bool>
    
        <!-- Default for Settings.Secure.NFC_PAYMENT_COMPONENT -->
        <string name="def_nfc_payment_component"></string>
    
        <!-- Default setting for ability to add users from the lock screen -->
        <bool name="def_add_users_from_lockscreen">false</bool>
    
        <!--  default setting for Settings.System.END_BUTTON_BEHAVIOR : END_BUTTON_BEHAVIOR_SLEEP -->
        <integer name="def_end_button_behavior">0x2</integer>
    
        <!-- default setting for Settings.Global.DEFAULT_RESTRICT_BACKGROUND_DATA -->
        <bool name="def_restrict_background_data">false</bool>
    
        <!-- Default for Settings.Secure.BACKUP_MANAGER_CONSTANTS -->
        <string name="def_backup_manager_constants"></string>
    
        <!-- Default setting for Settings.Global.MOBILE_DATA_ALWAYS_ON -->
        <bool name="def_mobile_data_always_on">true</bool>
    
        <!-- Default for Settings.Secure.BACKUP_LOCAL_TRANSPORT_PARAMETERS -->
        <string name="def_backup_local_transport_parameters"></string>
    
        <!-- Default for Settings.Global.ZEN_DURATION
            If 0, turning on dnd manually will last indefinitely.
            Else if non-negative, turning on dnd manually will last for this many minutes.
            Else (if negative), turning on dnd manually will surface a dialog that prompts
                user to specify a duration.-->
        <integer name="def_zen_duration">0</integer>
    
        <!-- Default for Settings.Global.BACKUP_AGENT_TIMEOUT_PARAMETERS -->
        <string name="def_backup_agent_timeout_parameters"></string>
    
        <!-- Default for Settings.System.VIBRATE_WHEN_RINGING -->
        <bool name="def_vibrate_when_ringing">false</bool>
    </resources>
    
    以上代码中的key 值,即Settings.System.SOUND_EFFECTS_ENABLED 都是在以下文件中定义的

    frameworks\base\core\java\android\provider

    public final class Settings {
    	public static final class System extends NameValueTable {    //内部类
            // NOTE: If you add new settings here, be sure to add them to
            // com.android.providers.settings.SettingsProtoDumpUtil#dumpProtoSystemSettingsLocked.
    
            private static final float DEFAULT_FONT_SCALE = 1.0f;
    
            /**
             * The content:// style URL for this table
             */
            public static final Uri CONTENT_URI =
                Uri.parse("content://" + AUTHORITY + "/system");     //内容提供者
    
            private static final ContentProviderHolder sProviderHolder =
                    new ContentProviderHolder(CONTENT_URI);
    
            private static final NameValueCache sNameValueCache = new NameValueCache(
                    CONTENT_URI,
                    CALL_METHOD_GET_SYSTEM,
                    CALL_METHOD_PUT_SYSTEM,
                    sProviderHolder);
    
            public static final String SCREEN_OFF_TIMEOUT = "screen_off_timeout";   // key 值
    
            private static final Validator SCREEN_OFF_TIMEOUT_VALIDATOR =
                    NON_NEGATIVE_INTEGER_VALIDATOR;
    
            /**
             * The screen backlight brightness between 0 and 255.
             */
            public static final String SCREEN_BRIGHTNESS = "screen_brightness";
    }
    
    在真机中,通过setting设置的值都是存在在以下目录下的

    /data/data/com.android.providers.settings/databases/settings.db里,里面有三个表global, system, secure.

    可以通常这样查看数据

    adb shell sqlite3 data/data/com.android.providers.settings/databases/settings.db "select * from secure"
    

    但是自从android 6.0以后这几个表都变为了xml文件。具体位置如下:

    不同用户放不同的路径下,如果没有创建新用户,则在/data/system/users/0下

    settings_global.xml, settings_system.xml, settings_secure.xml
    
    另外,如果需要在串口或者adb 调试的话,可以直接使用命令是改变这些值
       settings get global 系统属性key
    
       settings put global 系统属性key 系统属性值
    
    展开全文
  • MyBatis 配置 setting 详解

    万次阅读 2019-12-30 17:37:48
    之前的《MyBatis 中 SqlMapConfig 配置文件详解》记了一下 MyBatis 中的核心配置文件各个标签的作用和使用场景,这篇文章细说一下配置文件中 setting 标签的详细使用。 0x01:标签介绍 setting 标签的配置是配置 ...

    0x00:前言参考

    之前的《MyBatis 中 SqlMapConfig 配置文件详解》记了一下 MyBatis 中的核心配置文件各个标签的作用和使用场景,这篇文章细说一下配置文件中 setting 标签的详细使用。

    0x01:标签介绍

    setting 标签的配置是配置 MyBatis 框架运行时的一些行为的,例如缓存、延迟加载、结果集控制、执行器、分页设置、命名规则等一系列控制性参数,其所有的 setting 配置都放在父标签 settings 标签中。

    0x02:选项列表

    以下罗列了 setting 可以配置的参数,对于罗列的配置项,感觉了解即可,用到的时侯可以查看帮助文档或博客。

     

    0x03:完整配置参考

    配置一个完整的 settings 元素,参考代码如下:

    <settings>
        <setting name="cacheEnabled" value="true"/>
        <setting name="lazyLoadingEnabled" value="true"/>
        <setting name="multipleResultSetsEnabled" value="true"/>
        <setting name="useColumnLabel" value="true"/>
        <setting name="useGeneratedKeys" value="false"/>
        <setting name="autoMappingBehavior" value="PARTIAL"/>
        <setting name="autoMappingUnknownColumnBehavior" value="WARNING"/>
        <setting name="defaultExecutorType" value="SIMPLE"/>
        <setting name="defaultStatementTimeout" value="30"/>
        <setting name="defaultFetchSize" value="200"/>
        <setting name="safeRowBoundsEnabled" value="false"/>
        <setting name="mapUnderscoreToCamelCase" value="false"/>
        <setting name="localCacheScope" value="SESSION"/>
        <setting name="jdbcTypeForNull" value="OTHER"/>
        <setting name="lazyLoadTriggerMethods" value="equals,clone,hashCode,toString"/>
    </settings>
    

    0x04:总结

    对于 setting 的配置,当需要用到的时候可以查看帮助文档,不需要一个一个的记,setting 经常用来配置缓存、延迟加载和分页设置。


                                                                          公众号推荐:aFa攻防实验室

                             分享关于信息搜集、Web安全、内网安全、代码审计、红蓝对抗、Java、Python等方面的东西。

                                                                             

    展开全文
  • Maven setting配置文件

    万次阅读 多人点赞 2018-05-28 09:23:59
    <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>


    Maven setting配置镜像仓库

    配置本地仓库

       1 <!--自定义本地仓库路径-->

      2 <localRepository>E:\JAVA\Maven</localRepository>

    国内Maven镜像仓库

    <mirror>
        <id>alimaven</id>
        <name>aliyun maven</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
        <mirrorOf>central</mirrorOf>
    </mirror>
    <mirror>
        <id>alimaven</id>
        <mirrorOf>central</mirrorOf>
        <name>aliyun maven</name>
        <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
    </mirror>
    
    <mirror>
        <id>ibiblio</id>
        <mirrorOf>central</mirrorOf>
        <name>Human Readable Name for this Mirror.</name>
        <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
    </mirror>
    <mirror>
        <id>jboss-public-repository-group</id>
        <mirrorOf>central</mirrorOf>
        <name>JBoss Public Repository Group</name>
        <url>http://repository.jboss.org/nexus/content/groups/public</url>
    </mirror>
    
    <mirror>
        <id>central</id>
        <name>Maven Repository Switchboard</name>
        <url>http://repo1.maven.org/maven2/</url>
        <mirrorOf>central</mirrorOf>
    </mirror>
    <mirror>
        <id>repo2</id>
        <mirrorOf>central</mirrorOf>
        <name>Human Readable Name for this Mirror.</name>
        <url>http://repo2.maven.org/maven2/</url>
    </mirror>


    maven项目编译jdk版本更改

    首先要下载
    maven-compiler-plugin   jar包

    通过maven-compiler-plugin  jar包指定JDK版本和编码

    方法1

    在maven项目的pom.xml中加入一下代码
        <build>  
                <plugins>  
                    <plugin>  
                        <groupId>org.apache.maven.plugins</groupId>  
                        <artifactId>maven-compiler-plugin</artifactId>  
                        <version>2.1</version>  
                        <configuration>  
                            <source>1.7</source>  
                            <target>1.7</target>  
                        </configuration>  
                    </plugin>  
                </plugins>  
            </build>  


    然后重新update maven就可以解决该问题

    方法2

    修改maven配置文件

        <profile>  
                    <id>jdk-1.8</id>  
                    <activation>  
                        <activeByDefault>true</activeByDefault>  
                        <jdk>1.8</jdk>  
                    </activation>  
                    <properties>    
                        <maven.compiler.source>1.8</maven.compiler.source>    
                        <maven.compiler.target>1.8</maven.compiler.target>    
                        <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>    
                    </properties>  
            </profile>  

    然后刷新

    先右键项目 选择maven选项add plugin

    搜索compiler  选最新的

    然后强制更新项目

    完整setting配置


    1. 本地仓库路径由 .m2/repository 更改到E:\java\maven

    2.增加国内镜像仓库2个

    3.maven 编译器版本更改为javaSE-1.8

    <?xml version="1.0" encoding="UTF-8" ?>
    
    <!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
    
        http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
    -->
    
    <!--
     | This is the configuration file for Maven. It can be specified at two levels:
     |
     |  1. User Level. This settings.xml file provides configuration for a single user,
     |                 and is normally provided in ${user.home}/.m2/settings.xml.
     |
     |                 NOTE: This location can be overridden with the CLI option:
     |
     |                 -s /path/to/user/settings.xml
     |
     |  2. Global Level. This settings.xml file provides configuration for all Maven
     |                 users on a machine (assuming they're all using the same Maven
     |                 installation). It's normally provided in
     |                 ${maven.home}/conf/settings.xml.
     |
     |                 NOTE: This location can be overridden with the CLI option:
     |
     |                 -gs /path/to/global/settings.xml
     |
     | The sections in this sample file are intended to give you a running start at
     | getting the most out of your Maven installation. Where appropriate, the default
     | values (values used when the setting is not specified) are provided.
     |
     |-->
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
        <!-- localRepository
         | The path to the local repository maven will use to store artifacts.
         |
         | Default: ${user.home}/.m2/repository
        <localRepository>/path/to/local/repo</localRepository>
        -->
        <!--自定义本地仓库路径-->
        <localRepository>E:\JAVA\Maven</localRepository>
        <!-- interactiveMode
         | This will determine whether maven prompts you when it needs input. If set to false,
         | maven will use a sensible default value, perhaps based on some other setting, for
         | the parameter in question.
         |
         | Default: true
        <interactiveMode>true</interactiveMode>
        -->
    
        <!-- offline
         | Determines whether maven should attempt to connect to the network when executing a build.
         | This will have an effect on artifact downloads, artifact deployment, and others.
         |
         | Default: false
        <offline>false</offline>
        -->
    
        <!-- pluginGroups
         | This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.
         | when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers
         | "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.
         |-->
        <pluginGroups>
            <!-- pluginGroup
             | Specifies a further group identifier to use for plugin lookup.
            <pluginGroup>com.your.plugins</pluginGroup>
            -->
        </pluginGroups>
    
        <!-- proxies
         | This is a list of proxies which can be used on this machine to connect to the network.
         | Unless otherwise specified (by system property or command-line switch), the first proxy
         | specification in this list marked as active will be used.
         |-->
        <proxies>
            <!-- proxy
             | Specification for one proxy, to be used in connecting to the network.
             |
            <proxy>
              <id>optional</id>
              <active>true</active>
              <protocol>http</protocol>
              <username>proxyuser</username>
              <password>proxypass</password>
              <host>proxy.host.net</host>
              <port>80</port>
              <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
            </proxy>
            -->
        </proxies>
    
        <!-- servers
         | This is a list of authentication profiles, keyed by the server-id used within the system.
         | Authentication profiles can be used whenever maven must make a connection to a remote server.
         |-->
        <servers>
            <!-- server
             | Specifies the authentication information to use when connecting to a particular server, identified by
             | a unique name within the system (referred to by the 'id' attribute below).
             |
             | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are
             |       used together.
             |
            <server>
              <id>deploymentRepo</id>
              <username>repouser</username>
              <password>repopwd</password>
            </server>
            -->
    
            <!-- Another sample, using keys to authenticate.
            <server>
              <id>siteServer</id>
              <privateKey>/path/to/private/key</privateKey>
              <passphrase>optional; leave empty if not used.</passphrase>
            </server>
            -->
        </servers>
    
        <!-- mirrors
         | This is a list of mirrors to be used in downloading artifacts from remote repositories.
         |
         | It works like this: a POM may declare a repository to use in resolving certain artifacts.
         | However, this repository may have problems with heavy traffic at times, so people have mirrored
         | it to several places.
         |
         | That repository definition will have a unique id, so we can create a mirror reference for that
         | repository, to be used as an alternate download site. The mirror site will be the preferred
         | server for that repository.
         |-->
        <mirrors>
            <!-- mirror
             | Specifies a repository mirror site to use instead of a given repository. The repository that
             | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
             | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
             |
            <mirror>
              <id>mirrorId</id>
              <mirrorOf>repositoryId</mirrorOf>
              <name>Human Readable Name for this Mirror.</name>
              <url>http://my.repository.com/repo/path</url>
            </mirror>
             -->
    
            <mirror>
                <id>alimaven-central</id>
                <mirrorOf>central</mirrorOf>
                <name>aliyun maven</name>
                <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
            </mirror>
            <mirror>
                <id>jboss-public-repository-group</id>
                <mirrorOf>central</mirrorOf>
                <name>JBoss Public Repository Group</name>
                <url>http://repository.jboss.org/nexus/content/groups/public</url>
            </mirror>
    
            <!--<mirror>
                <id>alimaven</id>
                <name>aliyun maven</name>
                <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
                <mirrorOf>central</mirrorOf>
            </mirror>
    
            <mirror>
                <id>ibiblio</id>
                <mirrorOf>central</mirrorOf>
                <name>Human Readable Name for this Mirror.</name>
                <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
            </mirror>
    
            <mirror>
                <id>central</id>
                <name>Maven Repository Switchboard</name>
                <url>http://repo1.maven.org/maven2/</url>
                <mirrorOf>central</mirrorOf>
            </mirror>
            <mirror>
                <id>repo2</id>
                <mirrorOf>central</mirrorOf>
                <name>Human Readable Name for this Mirror.</name>
                <url>http://repo2.maven.org/maven2/</url>
            </mirror>-->
    
        </mirrors>
    
        <!-- profiles
         | This is a list of profiles which can be activated in a variety of ways, and which can modify
         | the build process. Profiles provided in the settings.xml are intended to provide local machine-
         | specific paths and repository locations which allow the build to work in the local environment.
         |
         | For example, if you have an integration testing plugin - like cactus - that needs to know where
         | your Tomcat instance is installed, you can provide a variable here such that the variable is
         | dereferenced during the build process to configure the cactus plugin.
         |
         | As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles
         | section of this document (settings.xml) - will be discussed later. Another way essentially
         | relies on the detection of a system property, either matching a particular value for the property,
         | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a
         | value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.
         | Finally, the list of active profiles can be specified directly from the command line.
         |
         | NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact
         |       repositories, plugin repositories, and free-form properties to be used as configuration
         |       variables for plugins in the POM.
         |
         |-->
        <profiles>
            <!-- profile
             | Specifies a set of introductions to the build process, to be activated using one or more of the
             | mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>
             | or the command line, profiles have to have an ID that is unique.
             |
             | An encouraged best practice for profile identification is to use a consistent naming convention
             | for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.
             | This will make it more intuitive to understand what the set of introduced profiles is attempting
             | to accomplish, particularly when you only have a list of profile id's for debug.
             |
             | This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.
            <profile>
              <id>jdk-1.4</id>
    
              <activation>
                <jdk>1.4</jdk>
              </activation>
    
              <repositories>
                <repository>
                  <id>jdk14</id>
                  <name>Repository for JDK 1.4 builds</name>
                  <url>http://www.myhost.com/maven/jdk14</url>
                  <layout>default</layout>
                  <snapshotPolicy>always</snapshotPolicy>
                </repository>
              </repositories>
            </profile>
            -->
            <profile>
                <id>jdk18</id>
                <activation>
                    <jdk>1.8</jdk>
                    <activeByDefault>true</activeByDefault>
                </activation>
                <properties>
                    <maven.compiler.source>1.8</maven.compiler.source>
                    <maven.compiler.target>1.8</maven.compiler.target>
                    <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
                </properties>
            </profile>
    
            <!--
             | Here is another profile, activated by the system property 'target-env' with a value of 'dev',
             | which provides a specific path to the Tomcat instance. To use this, your plugin configuration
             | might hypothetically look like:
             |
             | ...
             | <plugin>
             |   <groupId>org.myco.myplugins</groupId>
             |   <artifactId>myplugin</artifactId>
             |
             |   <configuration>
             |     <tomcatLocation>${tomcatPath}</tomcatLocation>
             |   </configuration>
             | </plugin>
             | ...
             |
             | NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to
             |       anything, you could just leave off the <value/> inside the activation-property.
             |
            <profile>
              <id>env-dev</id>
    
              <activation>
                <property>
                  <name>target-env</name>
                  <value>dev</value>
                </property>
              </activation>
    
              <properties>
                <tomcatPath>/path/to/tomcat/instance</tomcatPath>
              </properties>
            </profile>
            -->
        </profiles>
    
        <!-- activeProfiles
         | List of profiles that are active for all builds.
         |
        <activeProfiles>
          <activeProfile>alwaysActiveProfile</activeProfile>
          <activeProfile>anotherAlwaysActiveProfile</activeProfile>
        </activeProfiles>
        -->
    </settings>
    
    


    展开全文
  • Setting设置

    2019-03-22 10:47:12
    常见setting配置项说明 <!--常用配置样例--> <settings> //缓存全局开关 <setting name="cacheEnabled" value="true"/> //延迟加载全区开关 <setting name="lazyLoadin...
  • setting

    2020-07-30 23:33:17
    NULL 博文链接:https://yunlong167167.iteye.com/blog/2308247
  • django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call...
  • 日常开发开发中可能需要维护几个不同的版本,在用mvn编译编译命令时用的私服地址或私服路径不同,同一个setting文件不能共用,本文可以解决多个setting文件共用和用bat脚本简化敲写编译命令的问题。 解决这个问题只...
  • 这是我于2013年9月4号晚遇到的问题,为了这个问题我一夜没睡! 对于这个问题,我相信我的方法已经能帮...WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.ecli
  • sublime的setting-default和setting-user区别

    千次阅读 2018-11-14 20:53:21
      一直以来配置sublime的环境都是依靠网上教程,经常是让我们在某个package下的setting-user里面修改,直到今天我看到一个教程,让我在setting-default里面修改设置,一下子就激起了我的好奇心。 sublime包管理...
  • setting an array element with a sequence

    万次阅读 2018-10-07 17:33:21
    setting an array element with a sequence   原因与解决: 矩阵的列没有对齐,一般情况用这个方法就行了:arrayname = np.concatenate(arrayname, axis=0) 。 arrayname是自己定义的矩阵名字...
  • IDEA的setting介绍

    千次阅读 2019-11-09 13:48:10
    文章目录IDEA的setting介绍主题设置设置鼠标悬浮提示显示方法分隔符忽略大小写提示自动导包取消单行显示Tabs设置字体配置类文档注释信息模版设置文件编码设置自动编译水平或者垂直显示代码快捷方式改成eclipse设置...
  • ztree setting参数配置

    千次阅读 2018-08-22 14:24:48
    一个 setting 参数被多棵树使用 若setting参数中某个回调函数用的不是同一个回调函数,可以通过回调函数传入的treeId参数进行判断,决定哪棵树加载哪种回调函数; 举个栗子:这是setting配置被两个树引用,这个两...
  • Android 系统应用Setting开发总结

    千次阅读 2014-03-20 22:32:48
    最近由于工作关系需要对系统应用Setting进行二次开发,选择的工具是eclipse,所以也可以看得出来,不是在源码的环境下开发的。第一步自然是把Setting源码导入到eclipse,这样的话问题就出现了,会有很多错误。原因...
  • Android 系统应用Setting开发小结

    千次阅读 2014-03-19 20:33:51
    最近由于工作关系需要对系统应用Setting进行二次开发,选择的工具是eclipse,所以也可以看得出来,不是在源码的环境下开发的。第一步自然是把Setting源码导入到eclipse,这样的话问题就出现了,会有很多错误。原因...
  • MAVEN配置文件setting.xml的配置

    千次阅读 2019-05-21 14:29:40
    Maven作为项目管理工具目前已经在很多公司使用,特备是有很多大型项目上更是需要自己搭建内网私服来对项目进行单独管理,在此就几种情况下maven的setting文件配置作以区分,以备后期使用,想了解每个配置项的具体...
  • Maven setting配置镜像仓库

    千次阅读 2018-04-10 16:29:01
    配置IDE的User setting file路径,修改setting配置文件 配置本地仓库 1 &lt;!--自定义本地仓库路径--&gt; 2 &lt;localRepository&gt;E:\JAVA\Maven&lt;/localRepository&gt; 配置...
  • Maven setting.xml中配置新项目的JDK版本

    千次阅读 2020-08-18 17:42:46
    之前使用Maven时,Maven默认使用JDK 1.5,每次都要在idea中手动进行配置。经过网上查阅,是否可以在maven配置文件修改默认的jdk导入新项目时的环境配置,看到的全是修改POM.XML,但这样只是解决了当前...在Setting...
  • 原谅我的后知后觉,原来一直在为appconfig不方便动态...在自己的工程里新建一个setting文件,设置好setting的值,剩下的就是尽情把它当做一个变量来用吧。 当然Propreties中也有一个系统自带的setting文件,大家也可以
1 2 3 4 5 ... 20
收藏数 495,774
精华内容 198,309
关键字:

setting