如何使用IDEA创建Maven父子类工程

IDEA使用Maven创建父与子多模块项目 在 IntelliJ IDEA 中使用 Maven 创建父与子多模块项目是一个常见的开发实践,有助于更好地组织和管理代码。在多模块项目中,可以将公共的代码、资源或配置抽离到独立的模块中,然后在其他模块中直接引用。这样可以避免代码重复,提高代码的重用性。 阅读详情

创建父工程parentDemo:
第一步:File->New->Project->Maven,取消选择“从原型创建”,选择下一步。
在这里插入图片描述
第二步:补充完整信息。
在这里插入图片描述
第三步:完成。系统选择默认填充图下信息,也可以自行修改。
在这里插入图片描述
parentDemo完成图:(一般父项目不做代码编写,可以直接删除src文件夹。)
在这里插入图片描述
子项目childDemo的创建:
第一步:在父模块parentDemo上右键,创建一个子模块。
在这里插入图片描述
第二步:如果子工程只是普通模块则不选择“从原型创建”,如果是功能性子模块,可以打上√并选择相应的模块。这里选择普通模块,不做深入。
在这里插入图片描述
第三步:GroupId和Version继承自父工程,所以这里只用修改ArtifactId(子工程名childDemo)即可。
在这里插入图片描述
默认即可。
在这里插入图片描述
成果图:
在这里插入图片描述

到此,使用IDEA创建Maven父子类工程结束。IDEA的使用重在积累和熟能生巧,持之以恒定能玩转IDEA。

IDEA新建maven父子项目 1 项目视图 2 创建 2.1总目录 空项目 2.1.1 第一步 2.1.2 第二步 2.1.3 第三步 结果 2.2父工程 e3-parent 2.2.1 第一步 选择File–>New–>Module,进入New Module页面: 2.2.2 第二步... 阅读详情

相关推荐

IDEA创建Java工程、Maven安装与建立工程、Web工程、Tomcat配置

例如:第一章 Python 机器学习入门之pandas的使用。

buyaotutou的博客 1996

IDEA创建maven父子项目

IDEA架构如何创建maven父子工程(超详细)

超的博客 7956

Visual Studio报错TRK0005找不到CL.exe?三步彻底解决环境变量问题

本文详细解析了Visual Studio报错TRK0005找不到CL.exe的根本原因,并提供了三步彻底解决环境变量问题的方案。从验证安装完整性到配置永久环境变量,再到注册表级修复,帮助开发者建立健壮的开发环境配置体系,确保编译链稳定运行。

weixin_30839881的博客 459

超详细:通过IDEA创建Maven聚合工程(父子工程)

然后点击apply==>>ok即可。

helpluozhao123的博客 4948

MFC停靠窗口实战:CDockablePane从创建到控件布局的完整指南(附残影问题排查)

本文提供了MFC中CDockablePane停靠窗口的完整实战指南,涵盖从自定义窗格类创建、主框架集成、内部控件布局到高级功能定制的全过程。针对开发中常见的“残影”视觉问题,文章深入剖析了其根源,并给出了系统性的排查步骤与解决方案,帮助开发者构建稳定、专业的可停靠用户界面。

sun99的博客 613

光谱特征选择之模拟退火算法SA

光谱特征选择之模拟退火算法SA。

weixin_42621095的博客 901

idea 创建父子工程项目

使用idea创建父子工程 1.如下图: 2.直接next,如图: 3.如图: 4. 如图: 5.如图: 6.此时父工程已经创建完成,我这里是已经删除了其它文件后的父工程只保留了pom文件,可以配置一下maven的国内仓库,不需要配置的可以忽略,(具体配置这里就不说了,可以自行去搜一下maven国内仓库配置)如图: 7.接下来开始创建子工程,鼠标右键点击父工程项...

qq_42419105的博客 1974

ESP32-IDF HTTP服务器实战:从零搭建Web控制界面

本文详细介绍了如何在ESP32平台上使用ESP-IDF框架从零搭建HTTP服务器,并创建Web控制界面。内容涵盖环境配置、服务器基础设置、Web页面处理、GPIO控制接口实现及AJAX异步请求处理,帮助开发者快速掌握物联网设备Web控制开发。

efc123456的博客 1063

IDEA熟能生巧大纲

做此文的目的是为了更好的的使用IDEA,日积月累,相信定能玩转IDEA。 如何使用IDEA创建Maven父子类工程

睶 841

YOLOv11 改进 - 检测头 | Detect_LSCD轻量共享卷积检测头:轻量化设计破解计算瓶颈,增强复杂场景目标感知能力

本文介绍了基于群归一化(GroupNorm)和共享卷积的轻量化检测头LSCD,并将其集成进YOLOv11。LSCD检测头充分利用了GroupNorm和共享卷积的优势,在保持特征信息有效融合的同时,减少计算量和运算复杂度。我们将LSCD的代码集成到YOLOv11检测头中,并在tasks文件中进行注册。实验证明,YOLOv11-LSCD在目标检测任务中取得了良好的效果。

魔改工程师的博客 2384

【WRF数据准备】基于Python更新geo_em.d0.nc文件中Albedo/LAI等静态地理数据

基于Python更新geo_em.d0.nc文件中Albedo/LAI等静态地理数据

WW、forever的博客 589

IDEA 创建SpringBoot多级Maven父子项目

IDEA 创建SpringBoot多级MAVEN父子项目一、环境准备1、JDK安装配置2、MAVEN安装配置3、IDEA破解版二、项目搭建1、创建顶级Maven项目附: 一级项目完整`pom.xml`配置2、创建二级Maven子项目附: 二级子项目完整`pom.xml`配置3、创建三级Springboot子项目附: 三级子项目完整`pom.xml`配置如何改变文本的样式插入链接与图片如何插入一段漂...

qq_39870079的博客 1万+

基于 Python + Flask + Echarts 的疫情监控系统

基于 Python + Flask + Echarts 的疫情监控系统

743

Maven学习—如何在IDEA中配置Maven?又如何创建Maven工程?(详细攻略)

本篇博客将详细的介绍在IDEA中如何配置Maven,以及如何创建一个Maven项目;

Future_yzx的博客 1万+

【路径规划】Theta_star算法机器人栅格地图最短路径规划【含Matlab源码 2618期】

Theta_star算法机器人栅格地图最短路径规划 完整的代码,方可运行;可提供运行操作视频!适合小白!

订阅付费专栏Matlab(奶茶价版),可赠送奶茶价版付费专栏指定代码1份; 361

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

IDEA通过构建springboot项目的方式创建父子聚合工程

一、创建父工程 1、首先在IDEA中使用Spring Initializr的方式创建一个springboot工程,具体过程:点击File—>New—>Project,在弹出的界面选择Spring Initializr,然后点击Next。 2、在弹出的New Project界面输入Group与Artifact,一般遵守相应的规范(即GroupId为域.公司名,例如com.company,...

小志的博客 1万+

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

IDEA创建Maven工程

IDEA创建Maven工程IDEA创建Maven工程 1配置Maven环境配置IDEA 2创建Maven工程 1 使用IDE创建 11使用原型maven-archetype-webapp创建 111创建工程 112 为项目配置Tomcat 113 启动测试 12不用原型maven-archetype-webapp创建 121创建工程 122 添加Factes组件 123 添加artifact

王晓安 7790

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

八,springBoot-父子工程创建(idea)

这里讲一下idea如何创建springboot的父子工程。创建自定义父工程的原因就不多做解释了,主要为了拓展jar包的统一管理。 一,springBoot创建父工程 创建springboot工程 ①File→New→Project→Maven(推荐使用Spring Initalizr创建,此处用maven纯属加深印象) 创建工程后项目结构如下: 此时,一个springboot工程已经创建完成,但是我们知道在maven中父工程打包方式必须是pom,所以此处我们需要修改pom.xml文件。 具体

博客 1万+

使用IDEA创建maven父子工程项目

使用IDEA创建maven父子工程项目 <div class="operating"> </div> </div> </div> </div> <article class="baidu_pl"> <div id="article_conten...

Dynamic_W的博客 846

Idea创建maven父子工程及其依赖关系

1、先不使用骨架创建maven项目 2、删除src目录,因为是父项目,所以不需要src 3、创建子工程 1、创建模块 2、创建完毕POM文件自动改变 4、父子工程之间的maven依赖 1、先不使用骨架创建maven项目 Idea创建Maven项目介绍 2、删除src目录,因为是父项目,所以不需要src 3、创建子工程 1、创建模块 步骤和父工程基本一致,除了ArtifactId不能和父工程一样 2、创建完毕POM...

林高禄 7950

idea创建父子工程

使用IDEA进行项目编程。其中牵扯到maven进行父子模块项目。 1、创建一个新的工程:file—–&gt;new—-&gt;project 2、步骤如图: 3、填写公司名称以及项目名称 4、创建好的新的工程如图所示: 5、因为新建的项目为maven父模板,所以其中的src目录可以删除。其实父工程就是一个空的目录(自己理解) 6、选中工程右键—&gt;new—&gt;module 7、为子项目添加...

山若万丈-云自萦绕的博客 8081

IDEA_09 使用Idea创建maven父子工程 方法一

目录 1:创建一个maven工程 2:删除SRC目录 4:创建子工程 5:父子工程pom.xml的区别 6:再创建一个子工程,pom怎么变化呢? 7:整个项目工程的目录(如何让父子工程在同一级文件夹下面呢?) 1:创建一个maven工程 2:删除SRC目录 3:设置pom.xml 的packaging(父工程必须设置为pom) <?xml version...

思念十年后 1907

【Maven】基于IDEA进行Maven工程的创建、构建

详细讲解如何基于IDEA进行Maven工程的创建、构建

August_._的博客 2482
上一篇: 在Linux系统的安装Zookeeper
下一篇: IDEA熟能生巧大纲
_睶_
博客等级 码龄10年 1685粉丝 204原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值