资源简介
Tomcat 部署 war 源文件 springmvc_war.zip
https://blog.csdn.net/jx520/article/details/87276010
代码片段和文件信息
/*
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.
*/
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) {
System
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-02-14 16:45 springmvc_war\
文件 1308 2019-02-14 16:47 springmvc_war\.classpath
文件 269 2019-02-14 02:05 springmvc_war\.gitignore
目录 0 2019-02-14 10:05 springmvc_war\.mvn\
目录 0 2019-02-14 10:05 springmvc_war\.mvn\wrapper\
文件 48337 2019-02-14 02:05 springmvc_war\.mvn\wrapper\maven-wrapper.jar
文件 116 2019-02-14 02:05 springmvc_war\.mvn\wrapper\maven-wrapper.properties
文件 4624 2019-02-14 02:05 springmvc_war\.mvn\wrapper\MavenWrapperDownloader.java
文件 1083 2019-02-14 16:42 springmvc_war\.project
目录 0 2019-02-14 16:42 springmvc_war\.settings\
文件 639 2019-02-14 10:07 springmvc_war\.settings\.jsdtscope
文件 155 2019-02-14 10:07 springmvc_war\.settings\org.eclipse.core.resources.prefs
文件 430 2019-02-14 10:07 springmvc_war\.settings\org.eclipse.jdt.core.prefs
文件 90 2019-02-14 16:42 springmvc_war\.settings\org.eclipse.m2e.core.prefs
文件 669 2019-02-14 16:42 springmvc_war\.settings\org.eclipse.wst.common.component
文件 252 2019-02-14 10:07 springmvc_war\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2019-02-14 10:07 springmvc_war\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2019-02-14 10:07 springmvc_war\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 50 2019-02-14 10:07 springmvc_war\.settings\org.eclipse.wst.validation.prefs
文件 9113 2019-02-14 02:05 springmvc_war\mvnw
文件 5810 2019-02-14 02:05 springmvc_war\mvnw.cmd
文件 2174 2019-02-14 10:14 springmvc_war\pom.xm
目录 0 2019-02-14 10:05 springmvc_war\src\
目录 0 2019-02-14 10:07 springmvc_war\src\main\
目录 0 2019-02-14 10:21 springmvc_war\src\main\java\
目录 0 2019-02-14 10:05 springmvc_war\src\main\java\com\
目录 0 2019-02-14 10:21 springmvc_war\src\main\java\com\jerry\
目录 0 2019-02-14 10:21 springmvc_war\src\main\java\com\jerry\mvc\
目录 0 2019-02-14 10:21 springmvc_war\src\main\java\com\jerry\mvc\controller\
文件 398 2019-02-14 15:38 springmvc_war\src\main\java\com\jerry\mvc\controller\WelcomeController.java
文件 301 2019-02-14 02:05 springmvc_war\src\main\java\com\jerry\mvc\MvcApplication.java
............此处省略44个文件信息
相关资源
- Tomcat中间件监控配置&指标.doc
- tomcat配置INFORMIX数据库的连接池(测试
- jdktomcat环境变量自动配置工具
- apache-tomcat-7.0.90
- Linux相关--apache-tomcat-7.0.57.tar.gz
- Tomcat7中文文档(配置说明详解)
- apache-tomcat-7.0.103.zip
- tcnative-1.dll 包括32位/64位
- tcnative-1.dll win64 1.1.30
- tomcat64位tcnative-1.dll文件
- spring boot项目和vue一起放在tomcat部署
- apache-tomcat-8.0.36-windows-x64
- apache-tomcat-5.5.26
- Websphere下部署与tomcat程序配置的差异
- apache-tomcat-8.0.32.tar.gz
- apache-tomcat-7.0.82.tar.gz
- apache-tomcat-7.0.73.tar.gz
- linux apache-tomcat-7.0.27.tar.gz 安装
- apache-tomcat-7.0.42-windows-x86(32位免安装
- tomcat+memcached依赖包
- cronolog-1.6.2_0.zip
- linux的tomcat8.5压缩文件
- apache-tomcat-7.0.537.0版本windows-x64
- tomcat - 8.5 linux版本
- Linux版本tomcat8-8.5.35.tar.gz
- tomcat-8.5.51 32位/64位 安装包 官网8.5系
- 官方 tomcat-9 (windws-x64 绿色版)
- apache-tomcat-8.5.50.tar.gz
- apache-tomcat-8.5.33-windowsx64.zip
- tomcat配置系统服务.docx
评论
共有 条评论