Project

General

Profile

« Previous | Next » 

Revision cd0cc937

Added by Andreas Müller 4 months ago

add pluginManagement tag to avoid error for tag

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
    <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>
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>
57 59
  </build>
58 60
  <dependencies>
59 61
    <dependency>

Also available in: Unified diff