Project

General

Profile

« Previous | Next » 

Revision 87b297f0

Added by Andreas Müller over 2 years ago

fix pluginManagement for m2e in cdmlib-model and -test

View differences:

cdmlib-test/pom.xml
13 13
  <description>EDIT CDM library integration test layer. Some base classes and resources for CDM Library integration testing</description>
14 14

  
15 15
  <build>
16
	<pluginManagement>
17
	    <plugins>
18
	      <plugin>
19
	        <artifactId>maven-antrun-plugin</artifactId>
20
	            <executions>
21
	              <execution>
22
	                  <!-- Generate DDL for test -->
23
	                  <!-- Alternatives: http://jpdigital.github.io/hibernate5-ddl-maven-plugin/usage.html, 
24
	                                     https://webdev.jhuep.com/~jcs/ejava-javaee/coursedocs/content/html/jpa-entitymgrex-dbschemagen.html -->
25
	                  <!-- manual execution of the below ant task:  -->
26
	                  <!-- mvn antrun:run@generate-ddl-create       -->
27
	                  <id>generate-ddl-create</id>
28
	                  <phase>process-classes</phase>
29
	                  <goals>
30
	                      <goal>run</goal>
31
	                  </goals>
32
	                  <configuration>
33
	                      <target>
34
	                          <delete file="${project.build.outputDirectory}/dbscripts/001-cdm.h2.sql" />
35
	                          <!-- copy template file -->
36
	                          <copy file="${basedir}/src/main/resources/dbscripts/001-cdm.h2.template.sql" tofile="${project.build.outputDirectory}/dbscripts/001-cdm.h2.sql" />
37
	                                <!-- for directory shortcuts: https://stackoverflow.com/questions/13354531/maven-project-build-directory   but a short cut to /src/main/resources did not work for me -->
38
	                          <!-- run DdlCreator -->
39
	                          <java classname="eu.etaxonomy.cdm.test.unitils.DdlCreator" fork="false" failonerror="true" classpathref="maven.compile.classpath" /> 
40
	                      </target>
41
	                  </configuration>
42
	              </execution>
43
	          </executions>
44
	      </plugin>
45
	      <plugin>
46
	        <groupId>org.apache.maven.plugins</groupId>
47
	        <artifactId>maven-jar-plugin</artifactId>
48
	        <version>3.2.0</version>
49
	        <executions>
50
	          <execution>
51
	            <goals>
52
	              <goal>test-jar</goal>
53
	            </goals>
54
	          </execution>
55
	        </executions>
56
	      </plugin>
57
	    </plugins>
58
	</pluginManagement>
16
    <plugins>
17
      <plugin>
18
        <artifactId>maven-antrun-plugin</artifactId>
19
            <executions>
20
              <execution>
21
                  <!-- Generate DDL for test -->
22
                  <!-- Alternatives: http://jpdigital.github.io/hibernate5-ddl-maven-plugin/usage.html, 
23
                                     https://webdev.jhuep.com/~jcs/ejava-javaee/coursedocs/content/html/jpa-entitymgrex-dbschemagen.html -->
24
                  <!-- manual execution of the below ant task:  -->
25
                  <!-- mvn antrun:run@generate-ddl-create       -->
26
                  <id>generate-ddl-create</id>
27
                  <phase>process-classes</phase>
28
                  <goals>
29
                      <goal>run</goal>
30
                  </goals>
31
                  <configuration>
32
                      <target>
33
                          <delete file="${project.build.outputDirectory}/dbscripts/001-cdm.h2.sql" />
34
                          <!-- copy template file -->
35
                          <copy file="${basedir}/src/main/resources/dbscripts/001-cdm.h2.template.sql" tofile="${project.build.outputDirectory}/dbscripts/001-cdm.h2.sql" />
36
                                <!-- for directory shortcuts: https://stackoverflow.com/questions/13354531/maven-project-build-directory   but a short cut to /src/main/resources did not work for me -->
37
                          <!-- run DdlCreator -->
38
                          <java classname="eu.etaxonomy.cdm.test.unitils.DdlCreator" fork="false" failonerror="true" classpathref="maven.compile.classpath" /> 
39
                      </target>
40
                  </configuration>
41
              </execution>
42
          </executions>
43
      </plugin>
44
      <plugin>
45
        <groupId>org.apache.maven.plugins</groupId>
46
        <artifactId>maven-jar-plugin</artifactId>
47
        <version>3.2.0</version>
48
        <executions>
49
          <execution>
50
            <goals>
51
              <goal>test-jar</goal>
52
            </goals>
53
          </execution>
54
        </executions>
55
      </plugin>
56
    </plugins>
57
    <pluginManagement>
58
    	<plugins>
59
    		<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
60
    		<plugin>
61
    			<groupId>org.eclipse.m2e</groupId>
62
    			<artifactId>lifecycle-mapping</artifactId>
63
    			<version>1.0.0</version>
64
    			<configuration>
65
    				<lifecycleMappingMetadata>
66
    					<pluginExecutions>
67
    						<pluginExecution>
68
    							<pluginExecutionFilter>
69
    								<groupId>
70
    									org.apache.maven.plugins
71
    								</groupId>
72
    								<artifactId>
73
    									maven-antrun-plugin
74
    								</artifactId>
75
    								<versionRange>
76
    									[3.0.0,)
77
    								</versionRange>
78
    								<goals>
79
    									<goal>run</goal>
80
    								</goals>
81
    							</pluginExecutionFilter>
82
    							<action>
83
    								<ignore></ignore>
84
    							</action>
85
    						</pluginExecution>
86
    					</pluginExecutions>
87
    				</lifecycleMappingMetadata>
88
    			</configuration>
89
    		</plugin>
90
    	</plugins>
91
    </pluginManagement>
59 92
  </build>
60 93
  <dependencies>
61 94
    <dependency>

Also available in: Unified diff