Add plugin to set Eclipse source path 11/2511/1
authorLott, Christopher (cl778h) <cl778h@att.com>
Thu, 13 Feb 2020 16:07:42 +0000 (11:07 -0500)
committerLott, Christopher (cl778h) <cl778h@att.com>
Thu, 13 Feb 2020 16:11:54 +0000 (11:11 -0500)
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) <cl778h@att.com>
dashboard/a1-med-client/README.md
dashboard/a1-med-client/pom.xml
dashboard/app-mgr-client/README.md
dashboard/app-mgr-client/pom.xml
dashboard/e2-mgr-client/README.md
dashboard/e2-mgr-client/pom.xml
dashboard/webapp-backend/README.md
dashboard/webapp-frontend/README.md

index 7d53865..beaff1b 100644 (file)
@@ -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
index a99f813..227b09c 100644 (file)
@@ -139,6 +139,25 @@ limitations under the License.
                                        </archive>
                                </configuration>
                        </plugin>
+                       <!-- Add generated source folder to Eclipse build path -->
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>build-helper-maven-plugin</artifactId>
+                               <!--  version>1.7</version> -->
+                               <executions>
+                                       <execution>
+                                               <phase>generate-sources</phase>
+                                               <goals>
+                                                       <goal>add-source</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <sources>
+                                                               <source>target/generated-sources/swagger/src/main/java</source>
+                                                       </sources>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
                </plugins>
                <pluginManagement>
                        <plugins>
index e18d372..495f98a 100644 (file)
@@ -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
index 5754f56..6f60811 100644 (file)
@@ -31,7 +31,7 @@ limitations under the License.
        <groupId>org.o-ran-sc.ric.plt.appmgr.client</groupId>
        <artifactId>app-mgr-client</artifactId>
        <name>RIC App Manager client</name>
-        <!-- Update to match submodule tag -->
+       <!-- Update to match submodule tag -->
        <version>0.3.3-SNAPSHOT</version>
        <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -140,6 +140,25 @@ limitations under the License.
                                        </archive>
                                </configuration>
                        </plugin>
+                       <!-- Add generated source folder to Eclipse build path -->
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>build-helper-maven-plugin</artifactId>
+                               <!--  version>1.7</version> -->
+                               <executions>
+                                       <execution>
+                                               <phase>generate-sources</phase>
+                                               <goals>
+                                                       <goal>add-source</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <sources>
+                                                               <source>target/generated-sources/swagger/src/main/java</source>
+                                                       </sources>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
                </plugins>
                <pluginManagement>
                        <plugins>
index 7a29eac..13ba584 100644 (file)
@@ -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
index f9a8382..08a13df 100644 (file)
@@ -139,6 +139,25 @@ limitations under the License.
                                        </archive>
                                </configuration>
                        </plugin>
+                       <!-- Add generated source folder to Eclipse build path -->
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>build-helper-maven-plugin</artifactId>
+                               <!--  version>1.7</version> -->
+                               <executions>
+                                       <execution>
+                                               <phase>generate-sources</phase>
+                                               <goals>
+                                                       <goal>add-source</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <sources>
+                                                               <source>target/generated-sources/swagger/src/main/java</source>
+                                                       </sources>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
                </plugins>
                <pluginManagement>
                        <plugins>
index 5dd1b1e..5e90607 100644 (file)
@@ -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
index f1c849e..4b8d9ca 100644 (file)
@@ -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