-
大小: 17.73MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-06-20
- 语言: 其他
- 标签: 个人博客 SpringBoot SSM Semantic
资源简介
该资源为个人博客项目源码,配套博客地址为https://blog.csdn.net/qq_46101869/article/details/107582966
代码片段和文件信息
/*
* Copyright 2007-present the original author or authors.
*
* 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
*
* https://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.
*/
import java.net.*;
import java.io.*;
import java.nio.channels.*;
import java.util.Properties;
public class MavenWrapperDownloader {
private static final String WRAPPER_VERSION = “0.5.6“;
/**
* Default URL to download the maven-wrapper.jar from if no ‘downloadUrl‘ is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL = “https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/“
+ WRAPPER_VERSION + “/maven-wrapper-“ + WRAPPER_VERSION + “.jar“;
/**
* Path to the maven-wrapper.properties file which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
“.mvn/wrapper/maven-wrapper.properties“;
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
“.mvn/wrapper/maven-wrapper.jar“;
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = “wrapperUrl“;
public static void main(String args[]) {
System.out.println(“- Downloader started“);
File baseDirectory = new File(args[0]);
System.out.println(“- Using base directory: “ + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if (mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL url);
} catch (IOException e) {
System.out.println(“- ERROR loading ‘“ + MAVEN_WRAPPER_PROPERTIES_PATH + “‘“);
} finally {
try {
if (mavenWrapperPropertyFileInputStream != null) {
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 395 2020-07-13 16:10 个人博客\blog_backstage\.gitignore
文件 184 2020-07-13 16:10 个人博客\blog_backstage\.idea\.gitignore
文件 872 2020-07-25 17:56 个人博客\blog_backstage\.idea\compiler.xm
文件 76 2020-07-20 16:47 个人博客\blog_backstage\.idea\dataSources\d14c0f8d-1289-4f63-b6b6-c4620c66c48e\storage_v2\_src_\schema\information_schema.FNRwLQ.me
文件 42171 2020-07-20 16:47 个人博客\blog_backstage\.idea\dataSources\d14c0f8d-1289-4f63-b6b6-c4620c66c48e.xm
文件 967 2020-07-21 08:13 个人博客\blog_backstage\.idea\dataSources.local.xm
文件 511 2020-07-21 08:08 个人博客\blog_backstage\.idea\dataSources.xm
文件 267 2020-07-13 16:46 个人博客\blog_backstage\.idea\encodings.xm
文件 1389 2020-07-20 11:00 个人博客\blog_backstage\.idea\GrepConsole.xm
文件 2668 2020-07-17 15:23 个人博客\blog_backstage\.idea\inspectionProfiles\Project_Default.xm
文件 1113 2020-07-13 18:37 个人博客\blog_backstage\.idea\jarRepositories.xm
文件 568 2020-07-13 18:37 个人博客\blog_backstage\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 547 2020-07-13 18:37 个人博客\blog_backstage\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 493 2020-07-17 11:15 个人博客\blog_backstage\.idea\libraries\Maven__com_alibaba_druid_1_1_23.xm
文件 633 2020-07-17 11:15 个人博客\blog_backstage\.idea\libraries\Maven__com_alibaba_druid_spring_boot_starter_1_1_23.xm
文件 580 2020-07-23 08:50 个人博客\blog_backstage\.idea\libraries\Maven__com_atlassian_commonmark_commonmark_0_15_1.xm
文件 685 2020-07-23 08:50 个人博客\blog_backstage\.idea\libraries\Maven__com_atlassian_commonmark_commonmark_ext_gfm_tables_0_15_1.xm
文件 713 2020-07-23 08:50 个人博客\blog_backstage\.idea\libraries\Maven__com_atlassian_commonmark_commonmark_ext_heading_anchor_0_15_1.xm
文件 651 2020-07-13 18:37 个人博客\blog_backstage\.idea\libraries\Maven__com_fasterxm
文件 602 2020-07-13 18:37 个人博客\blog_backstage\.idea\libraries\Maven__com_fasterxm
文件 630 2020-07-13 18:37 个人博客\blog_backstage\.idea\libraries\Maven__com_fasterxm
文件 681 2020-07-13 18:37 个人博客\blog_backstage\.idea\libraries\Maven__com_fasterxm
文件 695 2020-07-13 18:37 个人博客\blog_backstage\.idea\libraries\Maven__com_fasterxm
文件 736 2020-07-13 18:37 个人博客\blog_backstage\.idea\libraries\Maven__com_fasterxm
文件 546 2020-07-13 18:37 个人博客\blog_backstage\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
文件 700 2020-07-13 18:37 个人博客\blog_backstage\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 503 2020-07-13 18:37 个人博客\blog_backstage\.idea\libraries\Maven__com_zaxxer_HikariCP_3_4_5.xm
文件 633 2020-07-13 18:37 个人博客\blog_backstage\.idea\libraries\Maven__jakarta_activation_jakarta_activation_api_1_2_2.xm
文件 633 2020-07-13 18:37 个人博客\blog_backstage\.idea\libraries\Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xm
文件 611 2020-07-13 18:37 个人博客\blog_backstage\.idea\libraries\Maven__jakarta_xm
............此处省略1770个文件信息
- 上一篇:web-漫步时尚广场源码
- 下一篇:S3C6410中文手册
评论
共有 条评论