Upgrade to Pro — share decks privately, control downloads, hide ads and more …

まだ間に合うMaven(再)入門 #jjug

yusuke
December 11, 2020

まだ間に合うMaven(再)入門 #jjug

2020年12月11日 開催 JJUGナイトセミナー「Maven / Gradle入門」のMavenパートです。
https://jjug.doorkeeper.jp/events/114832

動画はこちら:
https://youtu.be/R5gWwOwo4iQ

yusuke

December 11, 2020
Tweet

More Decks by yusuke

Other Decks in Technology

Transcript

  1. .BWFOϓϩδΣΫτͷ࡞੒ํ๏ ίϚϯυϥΠϯ͔Β  mvn archetype:generate \ -DgroupId=com.samuraism.app \ -DartifactId=my-app \

    -DarchetypeArtifactId=maven-archetype-quickstart \ -DarchetypeVersion=RELEASE \ -DinteractiveMode=false BSDIFUZQF"SUJGBDUϓϩδΣΫτςϯϓϨʔτ %BSDIFUZQF"SUJGBDU*E
  2. +6OJUΛ࢖͍ͬͯΔ৔߹ σϑΥϧτͰ͸ςετ͕࣮ߦ͞Εͳ͍ ೥݄೔ݱࡏ  ࠷৽TVSF f i SFϏϧυϓϥάΠϯΛ໌ࣔతʹࢦఆ  <build>

    <plugins> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.2</version> </plugin> </plugins> </build>
  3. .BWFOͰԿ͕มΘΔʁ w ϚϧνϞδϡʔϧϏϧυͷվળ w SFTVNFͰࣦഊͨ͠Ϟδϡʔϧ͔ΒϏϧυ w NWOKFUUZSVOͳͲͰඞཁͳϞδϡʔϧΛϏϧυͯ͘͠ΕΔ w ਌ϞδϡʔϧΛࢦఆ͢Ε͹શࢠϞδϡʔϧΛϏϧυ NWOQMFYUFOTJPOTHSQDDPEFHFO

    FYUFOTJPOTHSQDEFQMPZNFOUʜʜˠNWOQMFYUFOTJPOTHSQD w .BWFO8SBQQFS NWOX ͕ඪ४ʹ w ࣗಈόʔδϣχϯά ਌Ϟδϡʔϧͷόʔδϣϯ͕ࢦఆෆཁʹ  ࢀߟ8IBUT/FXJO.BWFO IUUQTNBBSUFONVMEFSTJUXIBUTOFXJONBWFO
  4. ·ͱΊ w TIɺCBUɺCVJMEYNM "OU ͰϏϧυ͍ͯ͠Δ৔߹ɺࠓ೔͔Β࢝ΊΑ͏ w .BWFO (SBEMF  w

    ಋೖͨ͠Β௅ઓ͠Α͏ w $* w 5%% w ύοέʔδϦϙδτϦ