Eclispe IDE集成Maven

Eclipse IDE使用教程与技巧总结(干货分享~~!) Eclipse是一款开源、跨平台的集成开发环境(IDE),支持多种编程语言(Java、C/C++、Python、PHP等),尤其以Java开发著称。其核心优势包括插件扩展机制、强大的调试能力和丰富的社区资源。 阅读详情

本文转自 易佰教程


Eclipse提供了一个很好的插件m2eclipse 无缝将Maven和Eclipse集成在一起。

m2eclipse一些特点如下

  • 您可以从Eclipse运行Maven目标。

  • 可以使用其自己的控制台查看Maven命令的输出在Eclipse里面。

  • 你可以更新maven的依赖关系使用IDE。

  • 您可以启动Maven在Eclipse中建立。

  • 它的依赖管理基于Maven的pom.xml 在Eclipse构建路径。

  • 它解决了从Eclipse工作区Maven的依赖关系,而不需要安装到本地Maven仓库(需要依赖项目在同一个工作区)。

  • 它自动下载需要的依赖和源从远程Maven仓库。

  • 它提供了向导,用于创建新的Maven项目,pom.xml和现有项目可让Maven支持

  • 它提供了快速搜索远程Maven仓库的依赖

安装m2eclipse插件














请使用以下链接之一安装m2eclipse:

Eclipse URL
Eclipse 3.5 (Gallileo) Installing m2eclipse in Eclipse 3.5 (Gallileo)
Eclipse 3.6 (Helios) Installing m2eclipse in Eclipse 3.6 (Helios)

下面的例子将帮助您利用集成Eclipse和Maven。

导入Eclipse中Maven项目

  • 打开Eclipse.

  • 选择File > Import > 选项.

  • 选择Maven项目选项。单击Next按钮。

Import a maven project in Eclipse.
  • 选择项目的位置,使用Maven创建一个项目。我们已经创建一个Java项目consumerBanking。看到Maven创建项目,看看如何创建使用Maven项目。

  • 单击Finish按钮。

Import a maven project in Eclipse.

现在,你可以看到Maven项目在eclipse。

maven project in Eclipse.

现在,看看consumerBanking项目属性。你可以看到,Eclipse已经添加Maven的依赖关系,以Java构建路径。

Java Build Path having Maven dependencies.

现在,它使用Eclipse的Maven来构建项目。

  • 右键点击consumerBanking项目打开上下文菜单。

  • 选择 Run 作为选项

  • 然后maven的封装选项





Maven将开始建设该项目。你可以看到在Eclipse控制台输出

[INFO] Scanning for projects...
[INFO] -------------------------------------------------------------------
[INFO] Building consumerBanking
[INFO] 
[INFO] Id: com.companyname.bank:consumerBanking:jar:1.0-SNAPSHOT
[INFO] task-segment: [package]
[INFO] -------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: 
C:MVNconsumerBanking	argetsurefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.companyname.bank.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] -------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] -------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Jul 12 18:18:24 IST 2012
[INFO] Final Memory: 2M/15M
[INFO] -------------------------------------------------------------------
Run maven command using run as option.

现在,右键点击App.java。选择Run As选项。选择作为Java应用程序。

你会看到结果

Eclispe中scala maven-scala插件的安装 maven-scala插件的安装scala IDE eclipse的插件在https://blog.youkuaiyun.com/liyifan687/article/details/80115771中已安装过。这里需要安装一个 m2e-scala1.安装m2e-scala网址http://alchim31.free.fr/m2e-scala/update-site/ ?问题    第一次安装以上三个只安装了... 阅读详情

相关推荐

simple-maven-project

简单的Maven示例项目 要求 要构建,您需要 Java 8 或更高版本 ( ) Maven 3 或更高版本 ( ) 构建和设置 在克隆此存储库之前,请确保使用git config --global core.autocrlf input在您的机器上启用 CRLF/LF 的自动转换。 更多信息请参考 要构建项目,请运行mvn package ,这将构建程序并将生成的 jar 文件放在目录target/ 。 跑步 要运行,请使用mvn exec:java 。

Eclipse IDE教程

1.关于Eclipse的一些知识 Eclipse作为一种广泛流行的用于多种编程语言的IDE,已经存在了很多年。 凭借其出色的基于插件的体系结构,Eclipse是减轻开发任务的一个很好的工具。 要成为当今世界上使用最广泛的IDE,需要付出很多努力和工具。 Eclipse是为相同目的而组合在一起的众多插件的组合。 在本教程中,我将介绍Eclipse用户界面的主要预打包组件,并帮助您开始使用Ec...

danpu0978的博客 9932

java(jni)获得CPU、内存使用率 绝对可用

java获得CPU、内存使用率,通过jni获得C程序获得CPU、内存的使用率,可直接运行。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

设置Intellij idea和maven,支持lambda表达式

https://blog.youkuaiyun.com/boling_cavalry/article/details/72853503 附: 请按照修改intellij idea配置之一和二均修改后生效。

由入门到精通 937

Mplus—随机截距交叉滞后模型(RI-CLPM)语法

随机截距交叉滞后模型RI-CLPM的Mplus语法。

m0_54401011的博客 2536

deap数据集的情绪检测代码环境搭建与实现

deap数据数据集很大

f的博客 4160

Maven坐标详解(超详解)

什么是坐标? Maven坐标主要组成

weixin_46991199的博客 1687

Cadence原理图设计10个高效技巧:从封装绑定到BOM表导出全流程

本文为硬件工程师提供了一套Cadence OrCAD Capture CIS原理图设计的高效实战指南。文章深度解析了从封装库的精准管理与CIS数据库绑定、封装批量处理技巧,到设计缓存清理、跨页信号追踪,再到关键的DRC检查、网表导出以及智能BOM报表生成的全流程核心技巧,旨在帮助工程师提升设计效率与可靠性,规避常见错误。

weixin_29178069的博客 203

maven 学习---Eclispe IDE集成Maven

Eclipse提供了一个很好的插件m2eclipse无缝将Maven和Eclipse集成在一起。 m2eclipse一些特点如下 您可以从Eclipse运行Maven目标。 可以使用其自己的控制台查看Maven命令的输出在Eclipse里面。 你可以更新maven的依赖关系使用IDE。 您可以启动Maven在Eclipse中建立。 它的依赖管理...

weixin_30677475的博客 86

无线Mesh组网全攻略:从原理、部署到调优与排障

对于布线困难的大户型、复式楼或园区,传统的无线中继往往面临带宽减半和链路不稳定的问题。无线Mesh网络通过多跳转发与自组织路由,让每个节点无需网线即可协作扩展覆盖,并依靠动态路径选择实现自愈。其核心技术涉及802.11s、HWMP路由协议,以及802.11k/v/r协同的无缝漫游,能有效提升终端切换体验。在实际部署中,设备选型、回程频段规划与布点位置直接决定网络质量。围绕无线Mesh的组网原理、设备选型、配置调优与故障排查,提供一套工程实践参考,帮助用户在复杂环境下构建稳定高效的无缝覆盖。

weixin_34098209的博客 277

QT快速配置MSVC2017编译环境(3分钟极简指南)

本文提供了一份3分钟极简指南,帮助开发者快速配置QT的MSVC2017编译环境。通过断网安装、精准勾选组件和配置QT Creator编译器路径等步骤,大幅提升QT开发效率。MSVC2017作为Windows平台高性能C++编译器,特别适合处理大型QT项目,编译速度优势明显。

weixin_30399821的博客 507

Maven Eclispe

Eclipse 提供了一个很好的插件 m2eclipse ,该插件能将 Maven 和 Eclipse 集成在一起。 在最新的 Eclipse 中自带了 Maven,我们打开,Windows->Preferences,如果会出现下面的画面: 下面列出 m2eclipse 的一些特点: 可以在 Eclipse 环境上运行 Maven 的目标文件。 可以使用其自带的控制台在 Ecli...

wuwangchuxin 235

Zemax热分析实战:多重结构编辑器与操作数优化技巧

本文详细介绍了在Zemax中进行热分析的全流程,重点讲解了如何利用多重结构编辑器模拟不同温度环境,并通过TENP、CRVT、THIC等关键操作数建立热膨胀模型。文章结合双胶合透镜实例,阐述了如何设置热跟随、构建多温度评价函数,并运用锤型优化提升光学系统在全温度范围内的热稳定性与成像质量。

yog99的博客 577

Eclispe创建Maven项目步骤

学习用Eclipse 创建maven项目,具体步骤如下: 第一步,eclipse下点击File ——> New ——> Other...(如下图) 第二步:Maven文件夹下选择Maven Project并选择下一步 第三步:直接选择Next(下一步) 第四步:选择开发类型 第五步:填写Group id和Artifact id 点击Finish ...

weixin_30325071的博客 83

基于学术研究风云卫星数据下载教程

目录 一、相关网址 1.登录注册网址:国家卫星气象中心 2.风云数据服务客户端下载网址 3.风云卫星遥感数据服务网址 二、下载数据步骤 1.首先在注册登录网址,注册一个账户 2.待账户审核后,登录账户即可搜索并下载数据 三、相关工具下载 1.登录风云卫星遥感数据服务网址 2.NCSA HDFView软件 3.风云卫星数据(L1)处理软件包(FENGYUN Toolkit v1.1) 4.静止卫星云图分区图显示软件(SECView) 5.风云二号静止气象卫星数据及产品处理..

珞瑜的博客 1万+

全网最详细的 Ubuntu 18.04 安装Livox mid-360驱动,测试 fast_lio2

Livox mid-360需要使用Livox-SDK2,而非Livox-SDK,以及对应的。并需要修改FAST_LIO中部分代码。Faster—LIO;Faster-LIO:快速激光IMU里程计。Faster-LIO:快速激光IMU里程计PDF。大部分Lidar SLAM都是基于loam进行改造的,基本上是通过线特征edge和面特征(面点)分割进行配准得到里程计的,而fast-lio2是通过一个迭代扩展卡尔曼滤波器去优化帧内位姿,然后通过输入点云与地图进行配准得到里程计,精度和鲁棒性都不错。

努力努力努力 6241

eclispe创建scala+maven项目

使用eclispe编写scala项目时需搭建scala环境、eclispe安装scala插件 1.win10下搭建scala环境 安装包尽量与spark版本中使用的scala保持一致   解压缩至指定目录下(D:\dev) 配置环境变量(右击此电脑 -- 属性 -- 高级系统设置 -- 环境变量 -- 系统环境变量 -- 新建SCALA_HOME) 设置系统环境变量:SCALA_H...

csdnmrliu的博客 2797

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

eclispe使用

eclipse 快捷键 ctrl+shif+o :去除多余引用 ctrl+shift+x :转大写 ctrl+shift+y :转小写 ctrl+o :查找方法 Alt+← :回退 ctrl+shift+G :查找引用 ctrl+Alt+↑ :双击选中 ctrl+shift+/ (小键盘) :折叠 ctrl+shift+* (小键盘)...

anjl1296的博客 108

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

深度学习工具包 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")

eclispe中maven工程配置 maven build报错java.lang.NullPointerException解决方法

在eclispe中maven工程配置 maven build报错java.lang.NullPointerException 方法1. 在"开始"-->"运行"---->打入"cmd"进入命令提示行后,再进入eclipse的安装目录,          然后输入eclipse -clean即可(我用的这个方法 成功了) 方法2. 删除configura

戈多 1万+

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

eclispe设置

package explorer 下,包名cong.xmg.p2p形式显示 navigator 下,有.settings文件夹,.classpath文件,.project文件,但不展示依赖的包

weixin_48356665的博客 128

eclispe创建maven项目出现的问题及解决方法

问题一:: Retrieving archetypes:". GC overhead limit exceeded (网上对这个问题有详细的描述,在此仅提供解决办法) 解决: 1、找到eclipse解压路径下的eclipse.ini文件 2、编辑修改此文件,修改模版如下 -startupplugins/org.eclipse.equinox.launcher_1.3.0.v201404...

weixin_30362233的博客 182

集成 Maven 2 插件到 Eclipse 的过程

前言         本文使用的不是在线方式安装 Maven 插件,用的是 link 方式。之所以使用 link 方式,是为了可以方便对 Eclipse 插件的管理,不至于一大堆东西都放在 plugins 目录下。         作者的 eclipse 版本是 Indigo Release,Eclipse Java EE IDE for Web Developers。         1.

Defonds 的专栏 1万+

使用 Maven 和 Eclipse IDE 创建 .jar 部署程序包 (Java)

本章节介绍如何使用 Eclipse IDE 和用于 Eclipse 的 Maven 插件将 Java 代码打包到部署程序包中。 主题 在您开始之前步骤 1:创建并构建项目 在您开始之前 安装用于 Eclipse 的 Maven 插件。 启动 Eclipse。从 Eclipse 的 Help 菜单中,选择 Install New Software

蝉之洞 905
上一篇: 定制库到Maven本地资源库
下一篇: Eclipse构建Maven项目
yongc20
博客等级 码龄17年 20粉丝 2原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值