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

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024

Комментарии • 41

  • @cyper0418
    @cyper0418 7 лет назад +1

    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 лет назад +4

    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 лет назад +4

    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

  • @chifortudor5105
    @chifortudor5105 8 лет назад +1

    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?

  • @nitrowizard9193
    @nitrowizard9193 8 лет назад +1

    This was so helpful. Thanks so much!!

  • @wadimovich
    @wadimovich 6 лет назад

    Very good explained. Thanks!

  • @vs193928
    @vs193928 9 лет назад +1

    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.

  • @Maceta444
    @Maceta444 3 года назад +1

    Thanks dude!

  • @lisafox9026
    @lisafox9026 4 года назад +1

    Greate!!!!!

  • @jonathansommerfeld4611
    @jonathansommerfeld4611 6 лет назад

    great, thank you so much!

  • @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.

  • @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...

  • @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: ruclips.net/video/z0JEA8sSLUA/видео.html
      Please tell me wether this works for you. Good luck and have fun!

  • @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 лет назад +1

      +Junchao Lu I've got something for you :) ruclips.net/video/I15SQsMBjSM/видео.html

    • @jcl7987
      @jcl7987 9 лет назад

      +Let's Developer Thanks so much for the help!

    • @letsdeveloper
      @letsdeveloper  9 лет назад

      +Junchao Lu You're quite welcome :)

  • @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 лет назад +1

      +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?

  • @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.

  • @PROJECTJoza100
    @PROJECTJoza100 7 лет назад +3

    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!!!