资源简介
还在未毕业设计而烦恼吗?点击下载,排解你的烦恼!!!
代码片段和文件信息
/*
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
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.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.util.Properties;
public class MavenWrapperDownloader {
/**
* 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/0.4.2/maven-wrapper-0.4.2.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) {
Syste
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-05-16 08:30 CGB-FK-V1.01\
文件 2017 2019-05-06 17:09 CGB-FK-V1.01\.classpath
文件 303 2019-05-06 17:09 CGB-FK-V1.01\.gitignore
目录 0 2019-05-16 08:30 CGB-FK-V1.01\.mvn\
目录 0 2019-05-16 08:30 CGB-FK-V1.01\.mvn\wrapper\
文件 4625 2019-05-06 17:09 CGB-FK-V1.01\.mvn\wrapper\MavenWrapperDownloader.java
文件 48337 2019-05-06 17:09 CGB-FK-V1.01\.mvn\wrapper\maven-wrapper.jar
文件 116 2019-05-06 17:09 CGB-FK-V1.01\.mvn\wrapper\maven-wrapper.properties
文件 717 2019-05-09 17:56 CGB-FK-V1.01\.project
目录 0 2019-05-16 08:30 CGB-FK-V1.01\.settings\
文件 226 2019-05-10 08:21 CGB-FK-V1.01\.settings\org.eclipse.core.resources.prefs
文件 69 2019-05-06 17:09 CGB-FK-V1.01\.settings\org.eclipse.jdt.apt.core.prefs
文件 415 2019-05-06 17:09 CGB-FK-V1.01\.settings\org.eclipse.jdt.core.prefs
文件 97 2019-05-06 17:09 CGB-FK-V1.01\.settings\org.eclipse.m2e.core.prefs
文件 65 2019-05-06 17:09 CGB-FK-V1.01\.settings\org.springfr
文件 613 2019-05-06 17:09 CGB-FK-V1.01\HELP.md
文件 9114 2019-05-06 17:09 CGB-FK-V1.01\mvnw
文件 5811 2019-05-06 17:09 CGB-FK-V1.01\mvnw.cmd
文件 2371 2019-05-13 18:51 CGB-FK-V1.01\pom.xm
目录 0 2019-05-16 08:30 CGB-FK-V1.01\src\
目录 0 2019-05-16 08:30 CGB-FK-V1.01\src\main\
目录 0 2019-05-16 08:30 CGB-FK-V1.01\src\main\java\
目录 0 2019-05-16 08:30 CGB-FK-V1.01\src\main\java\com\
目录 0 2019-05-16 08:30 CGB-FK-V1.01\src\main\java\com\cy\
文件 360 2019-05-16 08:13 CGB-FK-V1.01\src\main\java\com\cy\Application.java
目录 0 2019-05-16 08:30 CGB-FK-V1.01\src\main\java\com\cy\pj\
目录 0 2019-05-16 08:30 CGB-FK-V1.01\src\main\java\com\cy\pj\common\
目录 0 2019-05-16 08:30 CGB-FK-V1.01\src\main\java\com\cy\pj\common\annotation\
文件 351 2019-05-12 17:42 CGB-FK-V1.01\src\main\java\com\cy\pj\common\annotation\RequiredLog.java
目录 0 2019-05-16 08:30 CGB-FK-V1.01\src\main\java\com\cy\pj\common\aspect\
文件 3998 2019-05-13 13:27 CGB-FK-V1.01\src\main\java\com\cy\pj\common\aspect\SysLogAspect.java
............此处省略15988个文件信息
相关资源
- SSM实现用户注册登录以及增加删除修
- GB28181调试服务器
- springMVC+myBatis增删改查小程序
- 安卓游戏
- IntelliJ IDEA版的ssm整合开发简单crm管理
- SpringSecurity入门Demo
- 项目开发过程全套文档- KCooL项目软件
- 分销、商城、微信公众号、小程序
- SSM框架下用户数据CRUD增删改查项目
- 简单的实现Web登录(struts2+Hibernate)
- SSH框架搭建综合项目案例
- 基于SSH框架的员工管理系统
- ExtJS 6.2 实战
- 图书馆管理系统界面
- 达内DMS数据采集系统
- Practical Statistics for Data Scientist
- 基于SpringMVC+Maven开发网上书城系统
- 植物大战僵尸h5+js
- 奖助学金贷款信息管理系统
- 深入浅出nodejs 最新版
- 聊天室源代码struts2+spring+hibernate
- mxgraph开发包
- 比特币白皮书中文版
- swt org.sf.feeling.swt.win32.extension_1.1.0_S
- SpringMVC+Echarts 读取后台数据进行图标
- 《Spring微服务实战》中文高清版
- 旅游社交后台管理系统241543
- Badminton.zip
- SSM框架实现多文件上传,框架可以直
- OnlineTestSystem.7z
评论
共有 条评论