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.
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
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?
@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.
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?
@@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 ;)
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.
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.
+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
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] ------------------------------------------------------------------------
+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?
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
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 ..
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!!!
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.
Oh my, I was lost till I found these tutorials, thank you so much for sharing
+Enissay You're quite welcome! Glad I could help.
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
Nice video ,
I would suggest (if your in any need for ideas) this 2 ideas :
Maven for dummies
Maven with Intelij
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?
This was so helpful. Thanks so much!!
Very good explained. Thanks!
nice one !! thanks for posting .
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.
Thanks dude!
Greate!!!!!
great, thank you so much!
@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.
Hello, what button you clicked after we added junit so that it came into the side menu bar?
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?
@@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 ;)
@@arnold123user sorry for the late reply! All I did was saving the pom.xml file. So the Command+S or Ctrl+S ;) no magic.
hi i found this very help full. Can you make a video which has a demo of camel(integration pattern) using maven in eclipse.
Hi, thanks for the feedback. I'm not really sure what you want to achieve with Camel and Maven, though. Could you elaborate?
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.
Sunilkumar More So you want to know how to use Maven to manage Camel as a dependency?
Let's Developer yes
Sunilkumar More Can you give me some details about your use case? Including camel-core via Maven is probably not all you need...
when i created a maven project it only created a src folder and pom.xml inside it.. what am i missing?
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.
at4junk Here's a video that might help you: ruclips.net/video/z0JEA8sSLUA/видео.html
Please tell me wether this works for you. Good luck and have fun!
When I run with maven test, it seems like it skips test classes, do you know why by any chance?
+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
+Junchao Lu I've got something for you :) ruclips.net/video/I15SQsMBjSM/видео.html
+Let's Developer Thanks so much for the help!
+Junchao Lu You're quite welcome :)
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] ------------------------------------------------------------------------
+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?
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
+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?
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 ..
+Nur Fathiah oh... Then this is a problem with eclipse, not Maven. Have you tried restart/reinstall eclipse?
I have had the same issue, then I updated JAVA, that solves it.
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!!!