Slide 1

Slide 1 text

ࢁຊϢʔεέ!ZVTVLF ·ͩؒʹ߹͏.BWFO ࠶ ೖ໳

Slide 2

Slide 2 text

ຊ೔࿩͢͜ͱ w +BWBͷϏϧυํࣜͷྺ࢙ w .BWFOͷجຊ w .BWFOϓϩδΣΫτͷ࡞੒ํ๏ w ґଘϥΠϒϥϦͷ௥Ճ w .BWFOʹΑΔϏϧυ w .BWFOͷ࠷৽৘ใ

Slide 3

Slide 3 text

ຊ೔࿩͞ͳ͍͜ͱ w ݸผͷ*%&ͷৄࡉͳར༻ํ๏ w $*πʔϧ΍ύοέʔδαʔϏε࿈ܞͱ͍ͬͨൃలతͳ.BWFOͷ࢖͍ํ

Slide 4

Slide 4 text

ϏϧυճΓͰσϕϩού͕ߦ͍͍ͨ͜ͱ w ίϯύΠϧ w ςετ w ύοέʔδ KBSXBSFBSEPDLFSΠϝʔδ࡞੒ w ੒Ռ෺Λڞ༗ ଞͷσϕϩούɺ$*؀ڥɺύοέʔδϦϙδτϦ

Slide 5

Slide 5 text

+BWBͷϏϧυํࣜͷྺ࢙

Slide 6

Slide 6 text

+BWBͷϏϧυํࣜͷྺ࢙ खಈͰίϚϯυϥΠϯϏϧυ w ຖճख࡞ۀ w ཤྺ͚͕ͩཔΓ w ଞͷਓ͕࠶ݱग़དྷͳ͍

Slide 7

Slide 7 text

+BWBͷϏϧυํࣜͷྺ࢙ όονϑΝΠϧ CBU ɺγΣϧεΫϦϓτ TI w ϏϧυεΫϦϓτΛڞ༗Ͱ͖Δ w ϓϥοτϑΥʔϜʹґଘ͢Δ

Slide 8

Slide 8 text

+BWBͷϏϧυํࣜͷྺ࢙ *%&ͰϏϧυ DMBTTQBUI w *%&ʹґଘ͢Δ w $*αʔόͰϏϧυ͕ͮ͠Β͍

Slide 9

Slide 9 text

+BWBͷϏϧυํࣜͷྺ࢙ "OU w YNMϑΝΠϧͰϏϧυΛఆٛ w ๛෋ͳϓϥάΠϯ IUUQTBOUBQBDIFPSH

Slide 10

Slide 10 text

աڈͷϏϧυํࣜͷ໰୊఺ w ϏϧυͰ͖Δ؀ڥ͕ݶఆ͞ΕΔ 04ɺ*%&ͳͲ w खଓ͖ܕͰεΫϦϓτͷهड़ྔ͕ଟ͘ɺϝϯςφϯε͕೉͍͠ w σΟϨΫτϦߏ଄͕ϓϩδΣΫτຖʹ·ͪ·ͪ TSDTPVSDFσΟϨΫτϦʁMJCMJCTσΟϨΫτϦʁ w ιʔείʔυͱҰॹʹϥΠϒϥϦΛ7$4ʹอ؅͕ͪ͠ ग़ॴɺόʔδϣϯෆ໌ͷKBSϑΝΠϧ

Slide 11

Slide 11 text

.BWFO(SBEMFΛ࢖͏ͱ w ΫϩεϓϥοτϑΥʔϜͰϏϧυՄೳ w ଟ͕͘σϑΥϧτͰܾ·ΔɺએݴతʹϏϧυΛఆٛՄೳ w ๛෋ͳϓϥάΠϯ w ʮґଘʯΛએݴ͢Ε͹ϥΠϒϥϦΛࣗಈతʹऔಘ

Slide 12

Slide 12 text

.BWFO(SBEMFΛ࢖͏ͱ w ΫϩεϓϥοτϑΥʔϜͰϏϧυՄೳ w ଟ͕͘σϑΥϧτͰܾ·ΔɺએݴతʹϏϧυΛఆٛՄೳ w ๛෋ͳϓϥάΠϯ w ʮґଘʯΛએݴ͢Ε͹ϥΠϒϥϦΛࣗಈతʹऔಘ 21ੈل͸Maven͔GradleΛ࢖͍·͠ΐ͏

Slide 13

Slide 13 text

.BWFOͷجຊ

Slide 14

Slide 14 text

.BWFOͱ͸ w ΫϩεϓϥοτϑΥʔϜͷ+BWBϏϧυπʔϧ w

Slide 15

Slide 15 text

.BWFOϓϩδΣΫτͷσΟϨΫτϦߏ੒

Slide 16

Slide 16 text

.BWFOϓϩδΣΫτͷσΟϨΫτϦߏ੒ Javaιʔείʔυ Javaςετίʔυ Ϧιʔε (ϓϩύςΟϑΝΠϧͳͲ) ϏϧυఆٛϑΝΠϧ

Slide 17

Slide 17 text

͋ΕɺϥΠϒϥϦ͸Ͳ͜ʁ MJCσΟϨΫτϦ MJCTσΟϨΫτϦʁ

Slide 18

Slide 18 text

ϥΠϒϥϦ͸ϓϩδΣΫτσΟϨΫτϦʹஔ͔ͳ͍ w ར༻͢Δ ґଘ͢Δ ϥΠϒϥϦ͸QPNYNMʹهࡌ͢Δ͚ͩ

Slide 19

Slide 19 text

.BWFOϓϩδΣΫτʹ͓͚Δґଘ ϓϩδΣΫτ͕࢖͏ ґଘ͢Δ ϥΠϒϥϦΛࢦఆ w (SPVQ*EPSHKVOJUKVQJUFSͳͲ w "SUJGBDU*EKVOJUKVQJUFSBQJͳͲ w 7FSTJPOͳͲ

Slide 20

Slide 20 text

.BWFOηϯτϥϧϦϙδτϦ w +BWBͷσϑΝΫτελϯμʔυϦϙδτϦ IUUQTSFQPNBWFOPSHNBWFO w ϝδϟʔͳϥΠϒϥϦ͕΄΅ἧ͍ͬͯΔ IUUQTSFQPNBWFOPSHNBWFOPSHKVOJUKVQJUFSKVOJUKVQJUFS IUUQTSFQPNBWFOPSHNBWFOMPHKMPHK IUUQTSFQPNBWFOPSHNBWFOPSHUXJUUFSKUXJUUFSKDPSF w ηϯτϥϧϦϙδτϦҎ֎΋ࢦఆՄೳ

Slide 21

Slide 21 text

.BWFOϓϩδΣΫτͷϥΠϒϥϦ w ϗʔϜσΟϨΫτϦNSFQPTJUPSZҎԼʹอ؅ w μ΢ϯϩʔυͨ͠ϥΠϒϥϦΛΩϟογϡ w 7$4ʹϥΠϒϥϦͷίϛοτෆཁ w QPNYNMͰʮґଘ EFQFOEFODZ ʯΛࢦఆ

Slide 22

Slide 22 text

.BWFOͷΠϯετʔϧํ๏ brew install mv n sdk install maven 3.6. 3

Slide 23

Slide 23 text

.BWFOͷΠϯετʔϧํ๏ wεςοϓ wεςοϓ wεςοϓ

Slide 24

Slide 24 text

.BWFOͷΠϯετʔϧํ๏ wεςοϓ޷Έͷ*%&ΛΠϯετʔϧ͢Δ wεςοϓ wεςοϓ

Slide 25

Slide 25 text

.BWFOͷΠϯετʔϧํ๏ wεςοϓ޷Έͷ*%&ΛΠϯετʔϧ͢Δ wεςοϓऴΘΓ wεςοϓ

Slide 26

Slide 26 text

.BWFOϓϩδΣΫτͷ࡞੒ํ๏

Slide 27

Slide 27 text

.BWFOϓϩδΣΫτͷ࡞੒ํ๏ ίϚϯυϥΠϯ͔Β mvn archetype:generate \ -DgroupId=com.samuraism.app \ -DartifactId=my-app \ -DarchetypeArtifactId=maven-archetype-quickstart \ -DarchetypeVersion=RELEASE \ -DinteractiveMode=false BSDIFUZQF"SUJGBDUϓϩδΣΫτςϯϓϨʔτ %BSDIFUZQF"SUJGBDU*E

Slide 28

Slide 28 text

.BWFOϓϩδΣΫτͷ࡞੒ํ๏ &DMJQTF͔Β

Slide 29

Slide 29 text

.BWFOϓϩδΣΫτͷ࡞੒ํ๏ &DMJQTF͔Β

Slide 30

Slide 30 text

.BWFOϓϩδΣΫτͷ࡞੒ํ๏ *OUFMMJ+*%&"͔Β

Slide 31

Slide 31 text

.BWFOϓϩδΣΫτͷ࡞੒ํ๏ /FU#FBOT͔Β

Slide 32

Slide 32 text

ґଘϥΠϒϥϦͷ௥Ճ

Slide 33

Slide 33 text

ґଘϥΠϒϥϦͷ௥Ճ QPNYNM͔Β w EFQFOEFODJFTཁૉԼʹEFQFOEFODZཁૉͰࢦఆ

Slide 34

Slide 34 text

ґଘϥΠϒϥϦͷ௥Ճ *%&͔Β *OUFMMJ+*%&"/FU#FBOT w ࢖͍͍ͨγϯϘϧ໊Λॻ͍ͯ"MU&OUFS

Slide 35

Slide 35 text

ґଘϥΠϒϥϦͷ௥Ճ *%&͔Β &DMJQTF w QPNYNMΛӈΫϦοΫɺ"EE%FQFOEFODZ

Slide 36

Slide 36 text

ґଘϥΠϒϥϦͷείʔϓ w σϑΥϧτ͸DPNQJMF w ςετέʔεͰ͔͠࢖Θͳ͍΋ͷ͸TDPQFUFTUTDPQF w ΞϓϦέʔγϣϯαʔό౳Ͱఏڙ͞ΕΔ΋ͷ͸TDPQFQSPWJEFETDPQF

Slide 37

Slide 37 text

ϥΠϒϥϦͷݕࡧ IUUQTTFBSDINBWFOPSH

Slide 38

Slide 38 text

.BWFOʹΑΔϏϧυ

Slide 39

Slide 39 text

.BWFOʹΑΔίϯύΠϧ ίϚϯυϥΠϯ͔Β % mvn compile

Slide 40

Slide 40 text

.BWFOʹΑΔίϯύΠϧ *%&͔Β

Slide 41

Slide 41 text

NWODPNQJMFͰߦΘΕΔओͳ͜ͱ ґଘϥΠϒϥϦΛ ඞཁʹԠͯ͡ μ΢ϯϩʔυ NBJO಺ͷKBWBΛίϯύΠϧͯ͠UBSHFUDMBTTFTʹDMBTTϑΝΠϧΛੜ੒ NBJOSFTPVSDFTσΟϨΫτϦҎԼͷϑΝΠϧΛUBSHFUDMBTTFTʹίϐʔ

Slide 42

Slide 42 text

.BWFOʹΑΔςετ

Slide 43

Slide 43 text

.BWFOʹΑΔςετ ίϚϯυϥΠϯ͔Β % mvn test *%&͔Β

Slide 44

Slide 44 text

NWOUFTUͰߦΘΕΔओͳ͜ͱ ίϚϯυϥΠϯ͔Β NWODPNQJMF UFTU಺ͷKBWBΛίϯύΠϧͯ͠UBSHFUUFTUDMBTTFTʹDMBTTϑΝΠϧΛੜ੒ UFTUSFTPVSDFTҎԼͷϑΝΠϧΛUBSHFUUFTUDMBTTFTʹίϐʔ ϓϩδΣΫτ಺ͷςετέʔεΛ࣮ߦ

Slide 45

Slide 45 text

+6OJUΛ࢖͍ͬͯΔ৔߹ σϑΥϧτͰ͸ςετ͕࣮ߦ͞Εͳ͍ ೥݄೔ݱࡏ ࠷৽TVSF f i SFϏϧυϓϥάΠϯΛ໌ࣔతʹࢦఆ maven-surefire-plugin 2.22.2

Slide 46

Slide 46 text

.BWFOʹΑΔύοέʔδ

Slide 47

Slide 47 text

NWOQBDLBHFͰߦΘΕΔओͳ͜ͱ ίϚϯυϥΠϯ͔Β NWODPNQJMF NWOUFTU ςετ͕શͯ੒ޭ͢Ε͹ UBSHFUʹKBSϑΝΠϧΛ࡞੒

Slide 48

Slide 48 text

.BWFOʹΑΔΠϯετʔϧ

Slide 49

Slide 49 text

NWOJOTUBMMͰߦΘΕΔओͳ͜ͱ ίϚϯυϥΠϯ͔Β NWODPNQJMF NWOUFTU ςετ͕શͯ੒ޭ͢Ε͹ NWOQBDLBHF ϗʔϜNSFQPTJUPSZσΟϨΫτϦʹ੒Ռ෺Λίϐʔ

Slide 50

Slide 50 text

஌͓ͬͯ͘ͱศར w NWODMFBO ੜ੒͞ΕͨϑΝΠϧΛશͯ࡟আ͢Δ w %NBWFOUFTUTLJQUSVF ςετΛεΩοϓ͢Δ w NWOEFQFOEFODZUSFF ґଘϥΠϒϥϦΛҰཡදࣔ w NWOEFQMPZ σϓϩΠ ੒Ռ෺Λڞ༗ % mvn -Dmaven.test.skip=true install

Slide 51

Slide 51 text

༷ʑͳύοέʔδϦϙδτϦʹσϓϩΠՄೳ +FU#SBJOT4QBDF (JU)VC +'SPH

Slide 52

Slide 52 text

ͲͷόʔδϣϯΛ࢖͏΂͖ʁ w +BWBҎ߱.BWFO w +BWB.BWFO w +BWB.BWFO w +BWB·ͨ͸ͦΕҎલ.BWFOԽͱಉ࣌ʹ+BWB ·ͨ͸+BWB ΁Ҏ߱ ࢀߟ.BWFO3FMFBTFT)JTUPSZ IUUQTNBWFOBQBDIFPSHEPDTIJTUPSZIUNM

Slide 53

Slide 53 text

.BWFOͰԿ͕มΘΔʁ w ϚϧνϞδϡʔϧϏϧυͷվળ w SFTVNFͰࣦഊͨ͠Ϟδϡʔϧ͔ΒϏϧυ w NWOKFUUZSVOͳͲͰඞཁͳϞδϡʔϧΛϏϧυͯ͘͠ΕΔ w ਌ϞδϡʔϧΛࢦఆ͢Ε͹શࢠϞδϡʔϧΛϏϧυ NWOQMFYUFOTJPOTHSQDDPEFHFO FYUFOTJPOTHSQDEFQMPZNFOUʜʜˠNWOQMFYUFOTJPOTHSQD w .BWFO8SBQQFS NWOX ͕ඪ४ʹ w ࣗಈόʔδϣχϯά ਌Ϟδϡʔϧͷόʔδϣϯ͕ࢦఆෆཁʹ ࢀߟ8IBUT/FXJO.BWFO IUUQTNBBSUFONVMEFSTJUXIBUTOFXJONBWFO

Slide 54

Slide 54 text

.BWFOͷ։ൃঢ়گΛ஌Δ IUUQTJTTVFTBQBDIFPSHKJSBQSPKFDUT./(WFSTJPOT

Slide 55

Slide 55 text

·ͱΊ w TIɺCBUɺCVJMEYNM "OU ͰϏϧυ͍ͯ͠Δ৔߹ɺࠓ೔͔Β࢝ΊΑ͏ w .BWFO (SBEMF w ಋೖͨ͠Β௅ઓ͠Α͏ w $* w 5%% w ύοέʔδϦϙδτϦ