Project

General

Profile

« Previous | Next » 

Revision 87b297f0

Added by Andreas Müller 4 months ago

fix pluginManagement for m2e in cdmlib-model and -test

View differences:

cdmlib-model/pom.xml
11 11
  <description>The domain model java implementation of EDIT's Common Data Model</description>
12 12

  
13 13
  <build>
14
	<pluginManagement>
15
	    <plugins>
16
	      <plugin>
17
	        <groupId>org.apache.maven.plugins</groupId>
18
	        <artifactId>maven-antrun-plugin</artifactId>
19
	        <executions>
20
	          <execution>
21
	            <id>aspectj-main</id>
22
	            <phase>process-sources</phase>
23
	            <goals>
24
	              <goal>run</goal>
25
	            </goals>
26
	            <configuration>
27
	              <target>
28
	                <path id="aspectPath" location="${settings.localRepository}/org/springframework/spring-aspects/${spring.version}/spring-aspects-${spring.version}.jar" />
29
	                <taskdef classname="org.aspectj.tools.ant.taskdefs.AjcTask" name="iajc">
30
	                  <classpath refid="maven.plugin.classpath" />
31
	                </taskdef>
32
	                <iajc verbose="false" source="${java.codelevel}" destDir="target/classes" aspectPathRef="aspectPath">
33
	                <!--  see https://www.eclipse.org/aspectj/doc/released/devguide/antTasks-iajc.html#antTasks-iajc-paths -->
34
	                <classpath>
35
	                    <path refid="maven.compile.classpath" />
36
	                    <path refid="maven.plugin.classpath" />
37
	                </classpath>
38
	                  <sourceroots>
39
	                    <pathelement location="src/main/java" />
40
	                  </sourceroots>
41
	                </iajc>
42
	              </target>
43
	            </configuration>
44
	          </execution>
45
	          <execution>
46
	            <id>aspectj-test</id>
47
	            <phase>process-test-sources</phase>
48
	            <goals>
49
	              <goal>run</goal>
50
	            </goals>
51
	            <configuration>
52
	              <target>
53
	                <path id="aspectPath" location="${settings.localRepository}/org/springframework/spring-aspects/${spring.version}/spring-aspects-${spring.version}.jar" />
54
	                <taskdef classname="org.aspectj.tools.ant.taskdefs.AjcTask" name="iajc">
55
	                  <classpath refid="maven.plugin.classpath" />
56
	                </taskdef>
57
	                <iajc verbose="false" source="${java.codelevel}" destDir="target/test-classes" aspectPathRef="aspectPath">
58
	                <!--  see https://www.eclipse.org/aspectj/doc/released/devguide/antTasks-iajc.html#antTasks-iajc-paths -->
59
	                  <classpath>
60
	                    <path refid="maven.compile.classpath" />
61
	                    <path refid="maven.plugin.classpath" />
62
	                    <path refid="maven.test.classpath" />
63
	                </classpath>
64
	                  <sourceroots>
65
	                    <pathelement location="src/test/java" />
66
	                  </sourceroots>
67
	                </iajc>
68
	              </target>
69
	          </configuration>
70
	        </execution>
71
	      </executions>
72
	        <dependencies>
73
	          <dependency>
74
	            <groupId>org.aspectj</groupId>
75
	            <artifactId>aspectjtools</artifactId>
76
	            <version>${aspectj.version}</version>
77
	          </dependency>
78
	          <dependency>
79
	            <groupId>org.aspectj</groupId>
80
	            <artifactId>aspectjrt</artifactId>
81
	            <version>${aspectj.version}</version>
82
	          </dependency>
83
	      </dependencies>
84
	      </plugin>
85
	    </plugins>
86
	</pluginManagement>
14
    <plugins>
15
      <plugin>
16
        <groupId>org.apache.maven.plugins</groupId>
17
        <artifactId>maven-antrun-plugin</artifactId>
18
        <executions>
19
          <execution>
20
            <id>aspectj-main</id>
21
            <phase>process-sources</phase>
22
            <goals>
23
              <goal>run</goal>
24
            </goals>
25
            <configuration>
26
              <target>
27
                <path id="aspectPath" location="${settings.localRepository}/org/springframework/spring-aspects/${spring.version}/spring-aspects-${spring.version}.jar" />
28
                <taskdef classname="org.aspectj.tools.ant.taskdefs.AjcTask" name="iajc">
29
                  <classpath refid="maven.plugin.classpath" />
30
                </taskdef>
31
                <iajc verbose="false" source="${java.codelevel}" destDir="target/classes" aspectPathRef="aspectPath">
32
                <!--  see https://www.eclipse.org/aspectj/doc/released/devguide/antTasks-iajc.html#antTasks-iajc-paths -->
33
                <classpath>
34
                    <path refid="maven.compile.classpath" />
35
                    <path refid="maven.plugin.classpath" />
36
                </classpath>
37
                  <sourceroots>
38
                    <pathelement location="src/main/java" />
39
                  </sourceroots>
40
                </iajc>
41
              </target>
42
            </configuration>
43
          </execution>
44
          <execution>
45
            <id>aspectj-test</id>
46
            <phase>process-test-sources</phase>
47
            <goals>
48
              <goal>run</goal>
49
            </goals>
50
            <configuration>
51
              <target>
52
                <path id="aspectPath" location="${settings.localRepository}/org/springframework/spring-aspects/${spring.version}/spring-aspects-${spring.version}.jar" />
53
                <taskdef classname="org.aspectj.tools.ant.taskdefs.AjcTask" name="iajc">
54
                  <classpath refid="maven.plugin.classpath" />
55
                </taskdef>
56
                <iajc verbose="false" source="${java.codelevel}" destDir="target/test-classes" aspectPathRef="aspectPath">
57
                <!--  see https://www.eclipse.org/aspectj/doc/released/devguide/antTasks-iajc.html#antTasks-iajc-paths -->
58
                  <classpath>
59
                    <path refid="maven.compile.classpath" />
60
                    <path refid="maven.plugin.classpath" />
61
                    <path refid="maven.test.classpath" />
62
                </classpath>
63
                  <sourceroots>
64
                    <pathelement location="src/test/java" />
65
                  </sourceroots>
66
                </iajc>
67
              </target>
68
          </configuration>
69
        </execution>
70
      </executions>
71
        <dependencies>
72
          <dependency>
73
            <groupId>org.aspectj</groupId>
74
            <artifactId>aspectjtools</artifactId>
75
            <version>${aspectj.version}</version>
76
          </dependency>
77
          <dependency>
78
            <groupId>org.aspectj</groupId>
79
            <artifactId>aspectjrt</artifactId>
80
            <version>${aspectj.version}</version>
81
          </dependency>
82
      </dependencies>
83
      </plugin>
84
    </plugins>
85
  	<pluginManagement>
86
  		<plugins>
87
  			<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
88
  			<plugin>
89
  				<groupId>org.eclipse.m2e</groupId>
90
  				<artifactId>lifecycle-mapping</artifactId>
91
  				<version>1.0.0</version>
92
  				<configuration>
93
  					<lifecycleMappingMetadata>
94
  						<pluginExecutions>
95
  							<pluginExecution>
96
  								<pluginExecutionFilter>
97
  									<groupId>
98
  										org.apache.maven.plugins
99
  									</groupId>
100
  									<artifactId>
101
  										maven-antrun-plugin
102
  									</artifactId>
103
  									<versionRange>
104
  										[3.0.0,)
105
  									</versionRange>
106
  									<goals>
107
  										<goal>run</goal>
108
  									</goals>
109
  								</pluginExecutionFilter>
110
  								<action>
111
  									<ignore></ignore>
112
  								</action>
113
  							</pluginExecution>
114
  						</pluginExecutions>
115
  					</lifecycleMappingMetadata>
116
  				</configuration>
117
  			</plugin>
118
  		</plugins>
119
  	</pluginManagement>
87 120
  </build>
88 121
  <dependencies>
89 122
    <dependency>

Also available in: Unified diff