You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2016/04/22 04:13:25 UTC

[17/21] cxf git commit: Generating the static metamodel

Generating the static metamodel


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/fd5e3251
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/fd5e3251
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/fd5e3251

Branch: refs/heads/master-jaxrs-2.1
Commit: fd5e32511b71e8c90e54eef65d6d64d77c65a52c
Parents: e92e57c
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Thu Apr 21 17:42:20 2016 +0100
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Thu Apr 21 17:43:25 2016 +0100

----------------------------------------------------------------------
 rt/rs/security/oauth-parent/oauth2/pom.xml | 51 +++++++++++++++++++++++-
 rt/rs/security/sso/oidc/pom.xml            | 52 +++++++++++++++++++++++--
 2 files changed, 98 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/fd5e3251/rt/rs/security/oauth-parent/oauth2/pom.xml
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/pom.xml b/rt/rs/security/oauth-parent/oauth2/pom.xml
index b15a3b6..bb8ee54 100644
--- a/rt/rs/security/oauth-parent/oauth2/pom.xml
+++ b/rt/rs/security/oauth-parent/oauth2/pom.xml
@@ -118,9 +118,56 @@
         </dependency>
         
      </dependencies>
-     <!--
      <build>
        <plugins>
+         <plugin>
+	       <groupId>org.bsc.maven</groupId>
+	       <artifactId>maven-processor-plugin</artifactId>
+	       <version>3.1.0</version>
+	       <executions>
+	        <execution>
+		     <id>process</id>
+		     <goals>
+		       <goal>process</goal>
+		     </goals>
+		     <phase>generate-sources</phase>
+		     <configuration>
+               <compilerArguments>-Aopenjpa.source=7 -Aopenjpa.metamodel=true</compilerArguments>
+		       <processors>
+		         <processor>org.apache.openjpa.persistence.meta.AnnotationProcessor6</processor>
+	           </processors>
+               <outputDirectory>target/generated-sources/metamodel</outputDirectory>
+		     </configuration>
+            </execution>
+		   </executions>
+		   <dependencies>
+		     <dependency>
+		       <groupId>org.apache.openjpa</groupId>
+		       <artifactId>openjpa</artifactId>
+		       <version>${openjpa.version}</version>
+		     </dependency>
+		   </dependencies>
+		 </plugin>
+		 <plugin>
+		  <groupId>org.codehaus.mojo</groupId>
+		  <artifactId>build-helper-maven-plugin</artifactId>
+		  <version>1.10</version>
+		  <executions>
+		    <execution>
+		      <id>add-source</id>
+		      <phase>generate-sources</phase>
+		      <goals>
+			<goal>add-source</goal>
+		      </goals>
+		      <configuration>
+			<sources>
+			  <source>target/generated-sources/metamodel</source>
+			</sources>
+		      </configuration>
+		    </execution>
+		  </executions>
+		 </plugin>
+         <!--
             <plugin>
                 <groupId>org.apache.openjpa</groupId>
                 <artifactId>openjpa-maven-plugin</artifactId>
@@ -148,7 +195,7 @@
                     </execution>
                 </executions>
             </plugin>
+          -->
         </plugins>
       </build>
-      -->
    </project>

http://git-wip-us.apache.org/repos/asf/cxf/blob/fd5e3251/rt/rs/security/sso/oidc/pom.xml
----------------------------------------------------------------------
diff --git a/rt/rs/security/sso/oidc/pom.xml b/rt/rs/security/sso/oidc/pom.xml
index b5dcec2..3ad097e 100644
--- a/rt/rs/security/sso/oidc/pom.xml
+++ b/rt/rs/security/sso/oidc/pom.xml
@@ -85,16 +85,62 @@
             <scope>test</scope>
         </dependency>
     </dependencies>
-    <!--
     <build>
        <plugins>
+         <plugin>
+	       <groupId>org.bsc.maven</groupId>
+	       <artifactId>maven-processor-plugin</artifactId>
+	       <version>3.1.0</version>
+	       <executions>
+	        <execution>
+		     <id>process</id>
+		     <goals>
+		       <goal>process</goal>
+		     </goals>
+		     <phase>generate-sources</phase>
+		     <configuration>
+               <compilerArguments>-Aopenjpa.source=7 -Aopenjpa.metamodel=true</compilerArguments>
+		       <processors>
+		         <processor>org.apache.openjpa.persistence.meta.AnnotationProcessor6</processor>
+	           </processors>
+               <outputDirectory>target/generated-sources/metamodel</outputDirectory>
+		     </configuration>
+            </execution>
+		   </executions>
+		   <dependencies>
+		     <dependency>
+		       <groupId>org.apache.openjpa</groupId>
+		       <artifactId>openjpa</artifactId>
+		       <version>${openjpa.version}</version>
+		     </dependency>
+		   </dependencies>
+		 </plugin>
+		 <plugin>
+		  <groupId>org.codehaus.mojo</groupId>
+		  <artifactId>build-helper-maven-plugin</artifactId>
+		  <version>1.10</version>
+		  <executions>
+		    <execution>
+		      <id>add-source</id>
+		      <phase>generate-sources</phase>
+		      <goals>
+			<goal>add-source</goal>
+		      </goals>
+		      <configuration>
+			<sources>
+			  <source>target/generated-sources/metamodel</source>
+			</sources>
+		      </configuration>
+		    </execution>
+		  </executions>
+		 </plugin>
+         <!--
             <plugin>
                 <groupId>org.apache.openjpa</groupId>
                 <artifactId>openjpa-maven-plugin</artifactId>
                 <version>${openjpa.version}</version>
                 <configuration>
                     <includes>
-                       org/apache/cxf/rs/security/oidc/idp/OidcUserSubject.class,
                        org/apache/cxf/rs/security/oauth2/common/Client.class,
                        org/apache/cxf/rs/security/oauth2/common/UserSubject.class,
                        org/apache/cxf/rs/security/oauth2/grants/code/AuthorizationCodeGrant,
@@ -116,7 +162,7 @@
                     </execution>
                 </executions>
             </plugin>
+          -->
         </plugins>
       </build>
-      -->
 </project>