From d67a8cb18d802e6b638b5e76c4152fb790cc3126 Mon Sep 17 00:00:00 2001 From: "Lott, Christopher (cl778h)" Date: Thu, 13 Feb 2020 11:07:42 -0500 Subject: [PATCH] Add plugin to set Eclipse source path Non-functional change to make Eclipse work better when importing a subproject with a Swagger-generated source folder. Change-Id: I0ed95d4d465e9aad2a9566d43b14837005df5222 Signed-off-by: Lott, Christopher (cl778h) --- dashboard/a1-med-client/README.md | 7 ++++--- dashboard/a1-med-client/pom.xml | 19 +++++++++++++++++++ dashboard/app-mgr-client/README.md | 7 ++++--- dashboard/app-mgr-client/pom.xml | 21 ++++++++++++++++++++- dashboard/e2-mgr-client/README.md | 7 ++++--- dashboard/e2-mgr-client/pom.xml | 19 +++++++++++++++++++ dashboard/webapp-backend/README.md | 2 +- dashboard/webapp-frontend/README.md | 2 +- 8 files changed, 72 insertions(+), 12 deletions(-) diff --git a/dashboard/a1-med-client/README.md b/dashboard/a1-med-client/README.md index 7d538659..beaff1b5 100644 --- a/dashboard/a1-med-client/README.md +++ b/dashboard/a1-med-client/README.md @@ -6,8 +6,9 @@ with a pinned version, and packages it in a jar. ## Eclipse and STS Users -The Swagger Codegen maven plugin is not supported in Eclipse/STS. You can -limp along by taking these steps: +The source folder should be generated automatically by the Swagger Codegen maven +plugin and should also appear on the build path in Eclipse/STS, but if not, +follow these steps: 1. Generate the code using maven: mvn install @@ -16,7 +17,7 @@ limp along by taking these steps: ## License -Copyright (C) 2019 AT&T Intellectual Property & Nokia. All rights reserved. +Copyright (C) 2019-2020 AT&T Intellectual Property & Nokia. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/dashboard/a1-med-client/pom.xml b/dashboard/a1-med-client/pom.xml index a99f813e..227b09cf 100644 --- a/dashboard/a1-med-client/pom.xml +++ b/dashboard/a1-med-client/pom.xml @@ -139,6 +139,25 @@ limitations under the License. + + + org.codehaus.mojo + build-helper-maven-plugin + + + + generate-sources + + add-source + + + + target/generated-sources/swagger/src/main/java + + + + + diff --git a/dashboard/app-mgr-client/README.md b/dashboard/app-mgr-client/README.md index e18d372d..495f98a7 100644 --- a/dashboard/app-mgr-client/README.md +++ b/dashboard/app-mgr-client/README.md @@ -6,8 +6,9 @@ with a pinned version, and packages it in a jar. ## Eclipse and STS Users -The Swagger Codegen maven plugin is not supported in Eclipse/STS. You can -limp along by taking these steps: +The source folder should be generated automatically by the Swagger Codegen maven +plugin and should also appear on the build path in Eclipse/STS, but if not, +follow these steps: 1. Generate the code using maven: mvn install @@ -16,7 +17,7 @@ limp along by taking these steps: ## License -Copyright (C) 2019 AT&T Intellectual Property & Nokia. All rights reserved. +Copyright (C) 2019-2020 AT&T Intellectual Property & Nokia. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/dashboard/app-mgr-client/pom.xml b/dashboard/app-mgr-client/pom.xml index 5754f562..6f608116 100644 --- a/dashboard/app-mgr-client/pom.xml +++ b/dashboard/app-mgr-client/pom.xml @@ -31,7 +31,7 @@ limitations under the License. org.o-ran-sc.ric.plt.appmgr.client app-mgr-client RIC App Manager client - + 0.3.3-SNAPSHOT UTF-8 @@ -140,6 +140,25 @@ limitations under the License. + + + org.codehaus.mojo + build-helper-maven-plugin + + + + generate-sources + + add-source + + + + target/generated-sources/swagger/src/main/java + + + + + diff --git a/dashboard/e2-mgr-client/README.md b/dashboard/e2-mgr-client/README.md index 7a29eacc..13ba5841 100644 --- a/dashboard/e2-mgr-client/README.md +++ b/dashboard/e2-mgr-client/README.md @@ -5,8 +5,9 @@ file stored here and packages it in a jar. ## Eclipse and STS Users -The Swagger Codegen maven plugin is not supported in Eclipse/STS. You can -limp along by taking these steps: +The source folder should be generated automatically by the Swagger Codegen maven +plugin and should also appear on the build path in Eclipse/STS, but if not, +follow these steps: 1. Generate the code using maven: mvn install @@ -15,7 +16,7 @@ limp along by taking these steps: ## License -Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. +Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/dashboard/e2-mgr-client/pom.xml b/dashboard/e2-mgr-client/pom.xml index f9a8382c..08a13df8 100644 --- a/dashboard/e2-mgr-client/pom.xml +++ b/dashboard/e2-mgr-client/pom.xml @@ -139,6 +139,25 @@ limitations under the License. + + + org.codehaus.mojo + build-helper-maven-plugin + + + + generate-sources + + add-source + + + + target/generated-sources/swagger/src/main/java + + + + + diff --git a/dashboard/webapp-backend/README.md b/dashboard/webapp-backend/README.md index 5dd1b1ea..5e90607a 100644 --- a/dashboard/webapp-backend/README.md +++ b/dashboard/webapp-backend/README.md @@ -11,7 +11,7 @@ URL `http://your-host-name-here:8080/swagger-ui.html` ## License -Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. +Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/dashboard/webapp-frontend/README.md b/dashboard/webapp-frontend/README.md index f1c849e7..4b8d9ca4 100644 --- a/dashboard/webapp-frontend/README.md +++ b/dashboard/webapp-frontend/README.md @@ -28,7 +28,7 @@ To get more help on the Angular CLI use `ng help` or go check out the [Angular C ## License -Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. +Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -- 2.16.6