Eclipse/STS-> Workspace:D:\java\wosp-sts\PolEyB2BWoSp -> Launch-> File-> New-> Spring Starter Project Spring New Starter Project window: Service URL: https://start.spring.io Name: PolEy B2B Use default location: checked Type: Maven Packaging: Jar Java Version: 11 Language: Java Group: net.yazilimcity.b2b Artifact: poleyb2b Version: 0.0.1-SNAPSHOT Description :PolEy B2B Spring Boot Maven Project Package :net.yazilimcity.poley-> New Spring Starter Project Dependencies window: Spring Boot version :2.2.1 Selected :Spring Boot Dev Tools, Lombok, Spring Web-> New Spring Start Project window: Site Info-Base Url :https://start.spring.io/starter.zip Site Info-Full Url :https://start.spring.io/starter.zip?name=PolEy+B2B&groupId=net.yazilimcity.b2b&artifactId=poleyb2b&version=0.0.1-SNAPSHOT&description=Pol+Ey+B2B+Spring+Boot+Maven+Project&packageName=net.yazilimcity.poley&type=maven-project&packaging=jar&javaVersion=11&language=java&bootVersion=2.2.1.RELEASE&dependencies=lombok&dependencies=devtools&dependencies=web -> Finish pom.xml dosyanız aşağıdakine benzer olacaktır. [code lang=”xml”] <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.1.RELEASE</version> <relativePath /> <!– lookup parent from repository –> </parent> <groupId>net.yazilimcity.poley</groupId> <artifactId>poleyb2b</artifactId> <packaging>jar</packaging> <version>0.0.1-SNAPSHOT</version> <name>PolEy B2B</name> <description>Pol Ey B2B Spring Boot Maven Project</description> <properties> <java.version>11</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> <!– lombok dependency –> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> <exclusions> <exclusion> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> </exclusion> </exclusions> </dependency> </dependencies> <build> <plugins> <!– Package as an executable jar –> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project> [/code] change .gitignore file content like as: [code lang=”shell”] HELP.md target/ !.mvn/wrapper/maven-wrapper.jar !**/src/main/** !**/src/test/** ### STS ### .apt_generated .classpath .factorypath .project .settings .springBeans .sts4-cache ### IntelliJ IDEA ### .idea *.iws *.iml *.ipr ### NetBeans ### /nbproject/private/ /nbbuild/ /dist/ /nbdist/ /.nb-gradle/ build/ ### VS Code ### .vscode/ ##### added new gitignore settings# Created by https://www.gitignore.io/api/eclipse,intellij,visualstudiocode # Edit at https://www.gitignore.io/?templates=eclipse,intellij,visualstudiocode ### Eclipse ### .metadata bin/ tmp/ *.tmp *.bak *.swp *~.nib local.properties .settings/ .loadpath .recommenders # External tool builders .externalToolBuilders/ # Locally stored "Eclipse launch configurations" *.launch # PyDev specific (Python IDE for Eclipse) *.pydevproject # CDT-specific (C/C++ Development Tooling) .cproject # CDT- autotools .autotools # Java annotation processor (APT) .factorypath # PDT-specific (PHP Development Tools) .buildpath # sbteclipse plugin .target # Tern plugin .tern-project # TeXlipse plugin .texlipse # STS (Spring Tool Suite) .springBeans # Code Recommenders .recommenders/ # Annotation Processing .apt_generated/ # Scala IDE specific (Scala & Java development for Eclipse) .cache-main .scala_dependencies .worksheet ### Eclipse Patch ### # Eclipse Core .project # JDT-specific (Eclipse Java Development Tools) .classpath # Annotation Processing .apt_generated .sts4-cache/ ### Intellij ### # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 # User-specific stuff .idea/**/workspace.xml .idea/**/tasks.xml .idea/**/usage.statistics.xml .idea/**/dictionaries .idea/**/shelf # Generated files .idea/**/contentModel.xml # Sensitive or high-churn files .idea/**/dataSources/ .idea/**/dataSources.ids .idea/**/dataSources.local.xml .idea/**/sqlDataSources.xml .idea/**/dynamic.xml .idea/**/uiDesigner.xml .idea/**/dbnavigator.xml # Gradle .idea/**/gradle.xml .idea/**/libraries # Gradle and Maven with auto-import # When using Gradle or Maven with auto-import, you should exclude module files, # since they will be recreated, and may cause churn. Uncomment if using # auto-import. # .idea/modules.xml # .idea/*.iml # .idea/modules # *.iml # *.ipr # CMake cmake-build-*/ # Mongo Explorer plugin .idea/**/mongoSettings.xml # File-based project format *.iws # IntelliJ out/ # mpeltonen/sbt-idea plugin .idea_modules/ # JIRA plugin atlassian-ide-plugin.xml # Cursive Clojure plugin .idea/replstate.xml # Crashlytics plugin (for Android Studio and IntelliJ) com_crashlytics_export_strings.xml crashlytics.properties crashlytics-build.properties fabric.properties # Editor-based Rest Client .idea/httpRequests # Android studio 3.1+ serialized cache file .idea/caches/build_file_checksums.ser ### Intellij Patch ### # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 # *.iml # modules.xml # .idea/misc.xml # *.ipr # Sonarlint plugin .idea/**/sonarlint/ # SonarQube Plugin .idea/**/sonarIssues.xml # Markdown Navigator plugin .idea/**/markdown-navigator.xml .idea/**/markdown-navigator/ ### VisualStudioCode ### .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json ### VisualStudioCode Patch ### # Ignore all local history of files .history # End of https://www.gitignore.io/api/eclipse,intellij,visualstudiocode # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output /dist /tmp /out-tsc # dependencies /node_modules # IDEs and editors /.idea .project .classpath .c9/ *.launch .settings/ *.sublime-workspace # IDE – VSCode .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json # misc /.sass-cache /connect.lock /coverage /libpeerconnection.log npm-debug.log yarn-error.log testem.log /typings # System Files .DS_Store Thumbs.db # End of See http://help.github.com/ignore-files/ for more about ignoring files. [/code] Bu gitignore dosyasından sonra projeyi alan Eclipse/STS geliştirme ortamlarında moduller git pull ile doğru alınamayabilir, .classpath ve .project dosyalarını her kodu alan kendi elle eklemelidir. IntelliJ IDEA ise kendi dosyalarını otomatik oluşturacağı için bu adımı yapmasına gerek yoktur. POM packaging: add [code lang=”xml”]<packaging>pom</packaging>[/code] to pom.xml Eclipse/STS-> Project-> Properties-> Java Built Path-> Libraries : JRE System Library [JavaSE-11] (unbound)-> Edit-> JRE System Library window: Installed JREs…-> Add-> StandartVM-> Next-> JRE Definition window : JRE home :C:\Program Files\Java\jdk-11.0.2 JRE name :jdk-11.0.2-> Finish Select jdk-11.0.2-> Apply and Close-> Alternate JRE :jdk-11.0.2-> Finish-> Apply and Close Run PolEyB2BApplication main method as Java Appliation or Spring Boot App An other alternate : right click to module then run as-> Java Appliation or Spring Boot App Eclipse/STS-> MyApp-> Run-> Run As-> Java Application or Spring Boot App http://my.local.git.server/groups/YCNB2B -> New Project-> Project Path :poleyb2b Description :Java 11, Spring Boot, Maven, YCNB2BPackage Visibility Level :Private-> Create Project On Git CMD or Shell : [code lang=”shell”] cd D:\java\wosp-sts\PolEyB2BWoSp\PolEyB2B git init git remote add origin http://my.local.git.server/YCNB2B/PolEyB2B.git git add . git commit git push -u origin master [/code] Block Master Branch : http://my.local.git.server/YCNB2B/PolEyB2B -> Settings-> Protected Branches-> master Developers can push unchecked Create Maven Sub Module: Eclipse/STS-> My_Project right click-> Maven-> New Maven Module Project-> New Maven Module window: Create a simple project (skip archetype selection) to be clicked Module Name: poleyb2b-ui Parent Project: poley-b2b→ Artifact: Group Id: net.yazilimcity Artifact Id: poleyb2b-ui Version: 0.0.1-SNAPSHOT Packaging: jar Name: PolEyB2BOlympiaNgUi Description: PolEy B2B Olympia NG UI-> Finish Skip archetype yaptığımız için bu sınıfı elle ekliyoruz: [code lang=”java”] package net.yazilimcity.poley.ui; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class PolEyB2BUIApp { public static void main(String[] args) { SpringApplication.run(PolEyB2BUIApp.class, args); } } [/code] D:\java\wosp-sts\PolEyB2BWoSp\PolEyB2B> dizininde aşağıdaki komutlar hatasız çalışmalıdır. mvn clean mvn install – every module build as application so we can see on task manager – every module can run with embedded web container and with different port Spring Boot projenizi ayağa kaldırmak için ise buradaki yolu izleyebilirsiniz. Spring Boot projenizle beraber Angular projenizi de aynı kod içerisinde barındırdığınızda buradaki gibi Atom Editor ile geliştirmeye başlayabilirsiniz. Aşağıdaki bağlantı adreslerine de gözatabilirsiniz: Spring Boot #8.1 Creating Maven Multi-Module Project —- Part 1/a> Create a Spring Boot Application Using Multiple Maven Modules [Intermediate Spring Boot]]]>