[LD] Maven in Eclipse (m2e) 01 - Project Setup | Let's Develop With

  Рет қаралды 74,701

Let's Developer

Let's Developer

Күн бұрын

Пікірлер: 41
@cyper0418
@cyper0418 7 жыл бұрын
As some experienced java developer but not so good at maven, the content is just what I need. And your voice is like magic, I like your video classes, I will come here often. Sincerely thanks.
@enissay9950
@enissay9950 8 жыл бұрын
Oh my, I was lost till I found these tutorials, thank you so much for sharing
@letsdeveloper
@letsdeveloper 8 жыл бұрын
+Enissay You're quite welcome! Glad I could help.
@letsdeveloper
@letsdeveloper 10 жыл бұрын
Apache Maven is a powerful build-automation tool. The Eclipse integration m2e makes it easy for developers familiar with Eclipse to use Maven for their projects. In this episode I set up a simple Maven project and add a dependency. Furthermore, I show how to run a Maven build of the project from within Eclipse. #Maven #EclipseKepler #m2e
@Maceta444
@Maceta444 3 жыл бұрын
Thanks dude!
@wadimovich
@wadimovich 6 жыл бұрын
Very good explained. Thanks!
@vs193928
@vs193928 9 жыл бұрын
nice one !! thanks for posting .
@letsdeveloper
@letsdeveloper 9 жыл бұрын
You're most welcome :) if you have other aspects you'd like to see a video about, just tell me. I see what o can do.
@nitrowizard9193
@nitrowizard9193 8 жыл бұрын
This was so helpful. Thanks so much!!
@chifortudor5105
@chifortudor5105 8 жыл бұрын
Nice video , I would suggest (if your in any need for ideas) this 2 ideas : Maven for dummies Maven with Intelij
@letsdeveloper
@letsdeveloper 8 жыл бұрын
I like the idea of Maven with IntelliJ. Since I'm just beginning to explore IntelliJ myself, the topic might be on my agenda soon anyways ;) I'm not sure what you mean by Maven for Dummies. Could you give me some examples of more specific topics that you would like me to present?
@lisafox9026
@lisafox9026 4 жыл бұрын
Greate!!!!!
@prananiedla398
@prananiedla398 8 жыл бұрын
i created same exact proj as yours and when i try to execute the project by Run as >maven test its not executing my Tests it only executing class file and gives me the below copied console mssg. Hope you can help !!! ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- [INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Tutorial_01 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ tutorial1 --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ tutorial1 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ tutorial1 --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ tutorial1 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ tutorial1 --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.414 s [INFO] Finished at: 2016-05-25T12:48:06-08:00 [INFO] Final Memory: 8M/155M [INFO] ------------------------------------------------------------------------
@letsdeveloper
@letsdeveloper 8 жыл бұрын
+Beginner learner what is the name of your test class? Make sure it ends with Test and that it's in src/test/java/. In case that doesn't solve it: can you sent me a screenshot of the expanded package tree?
@KuldeepSingh-cm3oe
@KuldeepSingh-cm3oe 8 жыл бұрын
Hello, what button you clicked after we added junit so that it came into the side menu bar?
@letsdeveloper
@letsdeveloper 8 жыл бұрын
I assume by "it came into the side menu bar" you mean that the test view (with the test results) opened up? This happens automatically when you execute a test. You can also open it manually via Window > Show View > Other... Java > JUnit (this is on a Mac, should be similar for Windows/Linux though). Does that answer your question?
@arnold123user
@arnold123user 6 жыл бұрын
​@@letsdeveloper I have the same question as the Kuldeep Singh, and we meant the key that you press in 10:45- when you add dependency to POM, and the field "Maven dependencies" pops in the project explorer. And please tell what this key or combination does ;) BTW I must admit this Maven tutorial is awesome, keep doind what you do ;)
@letsdeveloper
@letsdeveloper 5 жыл бұрын
@@arnold123user sorry for the late reply! All I did was saving the pom.xml file. So the Command+S or Ctrl+S ;) no magic.
@sunilkumarmore3168
@sunilkumarmore3168 9 жыл бұрын
hi i found this very help full. Can you make a video which has a demo of camel(integration pattern) using maven in eclipse.
@letsdeveloper
@letsdeveloper 9 жыл бұрын
Hi, thanks for the feedback. I'm not really sure what you want to achieve with Camel and Maven, though. Could you elaborate?
@sunilkumarmore3168
@sunilkumarmore3168 9 жыл бұрын
Let's Developer my team is working on integration patterns in general. but we are concentrating more on camel. we also thought inclusion of maven may help in making the job easier in both testing and jar file accumulation of camel in general.
@letsdeveloper
@letsdeveloper 9 жыл бұрын
Sunilkumar More So you want to know how to use Maven to manage Camel as a dependency?
@sunilkumarmore3168
@sunilkumarmore3168 9 жыл бұрын
Let's Developer yes
@letsdeveloper
@letsdeveloper 9 жыл бұрын
Sunilkumar More Can you give me some details about your use case? Including camel-core via Maven is probably not all you need...
@jonathansommerfeld4611
@jonathansommerfeld4611 6 жыл бұрын
great, thank you so much!
@jcl7987
@jcl7987 9 жыл бұрын
When I run with maven test, it seems like it skips test classes, do you know why by any chance?
@letsdeveloper
@letsdeveloper 9 жыл бұрын
+Junchao Lu Just a wild guess, but how are your test classes called? By default, Maven (i.e. the Surefire plugin) will only find tests if the files match one of the patterns Test*.java, *Test.java, or *TestCase.java. Let me know whether this helped! maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html
@letsdeveloper
@letsdeveloper 9 жыл бұрын
+Junchao Lu I've got something for you :) kzbin.info/www/bejne/f2KYhISpgqedia8
@jcl7987
@jcl7987 9 жыл бұрын
+Let's Developer Thanks so much for the help!
@letsdeveloper
@letsdeveloper 9 жыл бұрын
+Junchao Lu You're quite welcome :)
@at4junk
@at4junk 9 жыл бұрын
when i created a maven project it only created a src folder and pom.xml inside it.. what am i missing?
@letsdeveloper
@letsdeveloper 9 жыл бұрын
at4junk It creates a pom.xml _inside_ a src folder? It sounds to me like the wizard is somehow broken for you... though I'm not sure how to fix it, it's actually easy to work without: Create two source folders "main/java" and "test/java" (and "main/resources", "text/resources" if required); then add the "Maven Dependencies" library to you Build Path. That's it. Maybe I create I video on how to do that in the next weeks.
@letsdeveloper
@letsdeveloper 9 жыл бұрын
at4junk Here's a video that might help you: kzbin.info/www/bejne/sGGtdnRuqLh_i6M Please tell me wether this works for you. Good luck and have fun!
@nurfathiah5867
@nurfathiah5867 8 жыл бұрын
i have this error when building the project.. cn you help ? Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'hello'. Unable to provision, see the following errors: 1) Error injecting constructor, java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext) at io.takari.aether.connector.AetherRepositoryConnectorFactory.(Unknown Source) at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule) while locating io.takari.aether.connector.AetherRepositoryConnectorFactory while locating java.lang.Object annotated with * 1 error
@letsdeveloper
@letsdeveloper 8 жыл бұрын
+Nur Fathiah I'm sorry, but I can't do anything with only this information. Can you provide your project or at least the pom.xml somewhere?
@nurfathiah5867
@nurfathiah5867 8 жыл бұрын
i cant even start the project. it occurs during the first phase of building the project which is during the Creation of Maven project. once i click finish, then the error pops up and my project is not even created ..
@letsdeveloper
@letsdeveloper 8 жыл бұрын
+Nur Fathiah oh... Then this is a problem with eclipse, not Maven. Have you tried restart/reinstall eclipse?
@ahmadoudiop8547
@ahmadoudiop8547 7 жыл бұрын
I have had the same issue, then I updated JAVA, that solves it.
@Smonjirez
@Smonjirez 5 жыл бұрын
@10:17 Unfortunately this doesn't work. No search results show up when you start typing there. There's probably an essential step here that you skipped.
@PROJECTJoza100
@PROJECTJoza100 7 жыл бұрын
for all who had Index downloads are disabled, search results may be incomplete. Visit this website to know how to fix stackoverflow.com/questions/24252256/how-do-i-enable-index-downloads-in-eclipse-for-maven-dependency-search Thank me later!!!
Gradle tutorial for complete beginners
24:48
Tom Gregory Tech
Рет қаралды 237 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Maven in 10 minutes | pom.xml | dependencies | scopes
11:08
Nikolay Panyukov
Рет қаралды 49 М.
Maven Full Course | Apache Maven Tutorial for Beginners
4:54:56
Dev Lessons
Рет қаралды 62 М.
How To Create and Run Maven Project with Eclipse and CommandLine | Step by Step
16:27
Why use Maven for Java? - Java Brains
12:07
Java Brains
Рет қаралды 65 М.
Simple Explanation of Maven and pom.xml
17:37
Brandan Jones
Рет қаралды 232 М.
How I Use Tmux With Neovim For An Awesome Dev Workflow On My Mac
21:41
Josean Martinez
Рет қаралды 381 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН