企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
> 请确保机器上已安装 `java8` `maven3` `git` 以及支持`JUnit`框架的IDE,笔者使用的是 `netbeans8`。 ---- 在终端执行以下命令: ```shell $ pwd # 显示目录当前路径 /Code/z8g/ioc $ git status # 查看git状态 fatal: 不是一个 git 仓库(或者任何父目录):.git $ git init # 初始化git仓库 已初始化空的 Git 仓库于 /Code/z8g/ioc/.git/ ``` 创建文件 `/Code/z8g/ioc/pom.xml` ,内容为: ```xml <?xml version="1.0" encoding="UTF-8"?> <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>net.zhaoxuyang</groupId> <artifactId>ioc</artifactId> <version>1.0</version> <packaging>jar</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.7</version> <scope>test</scope> </dependency> </dependencies> </project> ```