maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1443179 - in /maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/issue/ src/main/resources/ src/main/resources/META-INF/
Date Wed, 06 Feb 2013 20:09:35 GMT
Author: olamy
Date: Wed Feb  6 20:09:34 2013
New Revision: 1443179

URL: http://svn.apache.org/viewvc?rev=1443179&view=rev
Log:
add it for MCOMPILER-197

Added:
    maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/
    maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/invoker.properties   (with
props)
    maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/pom.xml   (with props)
    maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/
    maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/
    maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/java/
    maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/java/org/
    maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/java/org/issue/
    maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/java/org/issue/Person.java
  (with props)
    maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/resources/
    maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/resources/META-INF/
    maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/resources/META-INF/persistence.xml
  (with props)
    maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/verify.groovy   (with props)

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/invoker.properties?rev=1443179&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/invoker.properties (added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/invoker.properties Wed
Feb  6 20:09:34 2013
@@ -0,0 +1 @@
+invoker.java.version = 1.6+
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/pom.xml?rev=1443179&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/pom.xml (added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/pom.xml Wed Feb  6 20:09:34
2013
@@ -0,0 +1,67 @@
+<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.issue</groupId>
+  <artifactId>compiler-test</artifactId>
+  <version>1.0-SNAPSHOT</version>
+    
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-jpa_2.0_spec</artifactId>
+      <version>1.1</version>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>@project.version@</version>
+        <executions>
+          <execution>
+            <id>generate-entity-metamodel</id>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>compile</goal>
+            </goals>
+            <configuration>
+              <target>1.6</target>
+              <source>1.6</source>
+              <generatedSourcesDirectory>${project.build.directory}/generated-sources</generatedSourcesDirectory>
+              <!-- jpa annotation processor doesn't work with javax.tools -->
+              <forceJavacCompilerUse>true</forceJavacCompilerUse>
+              <compilerArguments>
+                <Aopenjpa.metamodel>true</Aopenjpa.metamodel>
+              </compilerArguments>
+            </configuration>
+          </execution>
+          <execution>
+            <id>compile</id>
+            <phase>compile</phase>
+            <goals>
+              <goal>compile</goal>
+            </goals>
+            <configuration>
+              <source>1.6</source>
+              <target>1.6</target>
+            </configuration>
+          </execution>
+        </executions>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.openjpa</groupId>
+            <artifactId>openjpa</artifactId>
+            <version>@openJpaVersion@</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/java/org/issue/Person.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/java/org/issue/Person.java?rev=1443179&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/java/org/issue/Person.java
(added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/java/org/issue/Person.java
Wed Feb  6 20:09:34 2013
@@ -0,0 +1,44 @@
+package org.issue;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+
+@Entity
+public class Person {
+    @Id
+    @GeneratedValue
+    private long id;
+    private String name;
+
+    public long getId() {
+        return id;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+}

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/java/org/issue/Person.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/java/org/issue/Person.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/resources/META-INF/persistence.xml?rev=1443179&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/resources/META-INF/persistence.xml
(added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/resources/META-INF/persistence.xml
Wed Feb  6 20:09:34 2013
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence version="2.0"
+             xmlns="http://java.sun.com/xml/ns/persistence"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
+                       http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
+  <persistence-unit name="user">
+    <jta-data-source>jdbc/ds</jta-data-source>
+    <non-jta-data-source>jdbc/ds-non-jta</non-jta-data-source>
+    <class>org.issue.Person</class>
+    <exclude-unlisted-classes>true</exclude-unlisted-classes>
+    <properties>
+      <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
+    </properties>
+  </persistence-unit>
+</persistence>

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/verify.groovy
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/verify.groovy?rev=1443179&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/verify.groovy (added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/verify.groovy Wed Feb 
6 20:09:34 2013
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+def sourceFile = new File( basedir, 'target/generated-sources/org/issue/Person_.java')
+assert sourceFile.exists()
+

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/verify.groovy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/MCOMPILER-197/verify.groovy
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision



Mime
View raw message