可添加功能-----机器学习管理平台

1.可以添加Junit,用于程序单元测试

<dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

2.可以添加log4j,用于添加程序运行日志信息

Let‘s add another dependency to our project. Let‘s say we‘ve added some logging to the code and need to add log4j as a dependency. First, we need to know what the groupId, artifactId, and version are for log4j. We can browse ibiblio and look for it, or use Google to help by searching for "site:www.ibiblio.org maven2 log4j". The search shows a directory called /maven2/log4j/log4j (or /pub/packages/maven2/log4j/log4j). In that directory is a file called maven-metadata.xml. Here‘s what the maven-metadata.xml for log4j looks like:

<metadata>
  <groupId>log4j</groupId>
  <artifactId>log4j</artifactId>
  <version>1.1.3</version>
  <versioning>
    <versions>
      <version>1.1.3</version>
      <version>1.2.4</version>
      <version>1.2.5</version>
      <version>1.2.6</version>
      <version>1.2.7</version>
      <version>1.2.8</version>
      <version>1.2.11</version>
      <version>1.2.9</version>
      <version>1.2.12</version>
    </versions>
  </versioning>
</metadata>

From this file, we can see that the groupId we want is "log4j" and the artifactId is "log4j". We see lots of different version values to choose from; for now, we‘ll just use the latest version, 1.2.12 (some maven-metadata.xml files may also specify which version is the current release version). Alongside the maven-metadata.xml file, we can see a directory corresponding to each version of the log4j library. Inside each of these, we‘ll find the actual jar file (e.g. log4j-1.2.12.jar) as well as a pom file (this is the pom.xml for the dependency, indicating any further dependencies it might have and other information) and another maven-metadata.xml file. There‘s also an md5 file corresponding to each of these, which contains an MD5 hash for these files. You can use this to authenticate the library or to figure out which version of a particular library you may be using already.

Now that we know the information we need, we can add the dependency to our pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.mycompany.app</groupId>
  <artifactId>my-app</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>Maven Quick Start Archetype</name>
  <url>http://maven.apache.org</url>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.12</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
</project>

Now, when we compile the project (mvn compile), we‘ll see Maven download the log4j dependency for us.

时间: 2024-08-08 05:38:06

可添加功能-----机器学习管理平台的相关文章

智慧路灯-智慧灯杆-多功能综合管理平台

智慧路灯-智慧灯杆-多功能综合管理平台我们都知道在我们传统的行业中,路灯就是定时开关,每天到傍晚的时候就打开,夜间也是一样,可是我们知道吗,这样的路灯难以管理,坏了也维修费用高,随着科技的前进发展,我们现在路灯也是开始应用软件的发展,路灯实现智能化,人性化,由此变成了智慧路灯.智慧路灯-智慧灯杆-综合管理平台"一体化"."集成化"."数字化"."网络化"."智能化"1.一体化:系统采用一体化的管理平台,将灯

综述------&gt;机器学习管理平台项目-------&gt;目录结构

1.maven java web工程标准目录结构 2.后续添加(项目名/src/mian/webapp目录下的文件) 都是view层相关文件(包括image.html.css.js.jsp等) 参见博客添加开源view模板(网站门户.登录界面.后台管理界面)到自己的web project

系统管理模块_岗位管理_改进_使用ModelDroven方案_套用美工写好的页面效果_添加功能与修改功能使用同一个页面

改进_使用ModelDroven方案 @Controller @Scope("prototype") public class RoleAction extends ActionSupport implements ModelDriven<Role>{//把ModelDriven放到栈顶,帮我们封装参数 //在Action里面要用到Service,用注解@Resource,另外在RoleServiceImpl类上要添加注解@Service @Resource private

高效、易用、功能强大的 api 管理平台(内附彩蛋)

前言导读 实际环境的需求可以说是:只有你没想到,没有实现不了的,征对于目前实际开发.测试.生产等环境中,需要用到各类的接口可达几十.甚至上百个,因此,必须需要一个统一管理的工具平台来统一管理这类接口,从而方便后续使用.那么今天来简单介绍下开源的接口管理工具:YApi 平台介绍 官方网站:https://yapi.ymfe.org/index.htmlGithub地址:https://github.com/YMFE/yapi YApi 是高效.易用.功能强大的 api 管理平台,旨在为开发.产品.

Rancher集群化docker管理平台部署、特性及破坏性测试。

rancher是一个docker集群化管理平台,相对于mesos和k8s架构,rancher的部署管理非常简单方便.并且功能丰富.如下为本人绘制的逻辑架构图. 1:部署Rancher管理平台 规划: server:10.64.5.184 agent1:10.64.5.185 agent2:10.64.5.186 agent3:10.64.5.187 agent4:10.64.5.188 部署方式: docker容器启动 server端部署   依赖镜像:rancher/server:latest

测试管理平台大比拼

测试管理平台很多,在选择时也会想那个好用那个适合自己,在腾讯云tmq团队的分析下,为大家带来测试平台的综合评价. 作者:solinazhao 简介 测试管理平台是贯穿测试整个生命周期的工具集合,它主要解决的是测试过程中团队协作的问题,比如缺陷管理.用例管理.测试任务管理等. 目前市面上比较流行的测试管理工具有QC. Mantis. BugZilla.TestLink.Redmine等.有开源软件,也有商业软件.这些软件的各自侧重点不同:比如Mantis.BugZilla偏重缺陷管理,TestLi

2、kvm虚拟化管理平台WebVirtMgr部署

场景:当KVM宿主机越来越多,需要对宿主机的状态进行调控.这里我采用WebVirtMgr作为kvm虚拟化的web管理工具,图形化的WEB,让人能更方便的查看kvm 宿主机的情况和操作 介绍:官网 https://www.webvirtmgr.net/ : WebVirtMgr是近两年来发展较快,比较活跃,非常清新的一个KVM管理平台,提供对宿主机和虚机的统一管理,它有别于kvm自带的图形管理工具(virtual machine manager),让kvm管理变得更为可视化 WebVirtMgr特

KVM虚拟化管理平台VManagePlatform

VManagePlatform是什么? 一个KVM虚拟化管理平台 开发语言与框架: 编程语言:Python2.7 + HTML + JScripts 前端Web框架:Bootstrap 后端Web框架:Django 后端Task框架:Celery + Redis VManagePlatform有哪些功能? Kvm虚拟机生产周期管理功能 资源利用率(如:CPU.MEM.磁盘.网络) 实例控制(如:生存周期管理.快照技术,Web Console等等) 设备资源控制(如:在线调整内存.CPU资源.热添

【原】这可能是最懂你的时间管理平台!

索引 1.我的时间管理之路 2.打造自己的时间管理工具 3.为什么不让更多人得到帮助? 4.这可能是最懂你的时间管理平台! 一.我的时间管理之路 “时间管理”这个概念我们并不陌生,经常被一些精英教育机构拿出来讲,被鼓吹.被放大,被理想化,被成功学化,而实际上只是卖概念而己,真正去实践的人才会体会其中真正的能量! 作为一个GTD深度实践者,我是从2012年开始实践时间管理的,当时是用一款手机app——shuffle,这是我一直以来感觉最得心应手的一个gtd工具,绝杀所有其他的同类app,甚至我还专