|
13 | 13 | <log4j.version>2.20.0</log4j.version> |
14 | 14 | <maven.compiler.source>1.8</maven.compiler.source> |
15 | 15 | <maven.compiler.target>1.8</maven.compiler.target> |
| 16 | + <aspectj.version>1.9.20</aspectj.version> |
16 | 17 | </properties> |
17 | 18 |
|
18 | 19 | <dependencies> |
|
51 | 52 | <artifactId>log4j-api</artifactId> |
52 | 53 | <version>${log4j.version}</version> |
53 | 54 | </dependency> |
| 55 | + <dependency> |
| 56 | + <groupId>org.aspectj</groupId> |
| 57 | + <artifactId>aspectjrt</artifactId> |
| 58 | + <version>${aspectj.version}</version> |
| 59 | + </dependency> |
54 | 60 |
|
55 | 61 | <dependency> |
56 | 62 | <groupId>junit</groupId> |
|
64 | 70 | <finalName>helloworld-lambda</finalName> |
65 | 71 | <plugins> |
66 | 72 | <plugin> |
67 | | - <groupId>dev.aspectj</groupId> |
68 | | - <artifactId>aspectj-maven-plugin</artifactId> |
69 | | - <version>1.13.1</version> |
70 | | - <configuration> |
71 | | - <source>${maven.compiler.source}</source> |
72 | | - <target>${maven.compiler.target}</target> |
73 | | - <complianceLevel>${maven.compiler.target}</complianceLevel> |
74 | | - <aspectLibraries> |
75 | | - <aspectLibrary> |
76 | | - <groupId>software.amazon.lambda</groupId> |
77 | | - <artifactId>powertools-tracing</artifactId> |
78 | | - </aspectLibrary> |
79 | | - <aspectLibrary> |
80 | | - <groupId>software.amazon.lambda</groupId> |
81 | | - <artifactId>powertools-logging</artifactId> |
82 | | - </aspectLibrary> |
83 | | - <aspectLibrary> |
84 | | - <groupId>software.amazon.lambda</groupId> |
85 | | - <artifactId>powertools-metrics</artifactId> |
86 | | - </aspectLibrary> |
87 | | - </aspectLibraries> |
88 | | - </configuration> |
89 | | - <executions> |
90 | | - <execution> |
91 | | - <goals> |
92 | | - <goal>compile</goal> |
93 | | - </goals> |
94 | | - </execution> |
95 | | - </executions> |
| 73 | + <groupId>dev.aspectj</groupId> |
| 74 | + <artifactId>aspectj-maven-plugin</artifactId> |
| 75 | + <version>1.13.1</version> |
| 76 | + <configuration> |
| 77 | + <source>${maven.compiler.source}</source> |
| 78 | + <target>${maven.compiler.target}</target> |
| 79 | + <complianceLevel>${maven.compiler.target}</complianceLevel> |
| 80 | + <aspectLibraries> |
| 81 | + <aspectLibrary> |
| 82 | + <groupId>software.amazon.lambda</groupId> |
| 83 | + <artifactId>powertools-tracing</artifactId> |
| 84 | + </aspectLibrary> |
| 85 | + <aspectLibrary> |
| 86 | + <groupId>software.amazon.lambda</groupId> |
| 87 | + <artifactId>powertools-logging</artifactId> |
| 88 | + </aspectLibrary> |
| 89 | + <aspectLibrary> |
| 90 | + <groupId>software.amazon.lambda</groupId> |
| 91 | + <artifactId>powertools-metrics</artifactId> |
| 92 | + </aspectLibrary> |
| 93 | + </aspectLibraries> |
| 94 | + </configuration> |
| 95 | + <executions> |
| 96 | + <execution> |
| 97 | + <goals> |
| 98 | + <goal>compile</goal> |
| 99 | + </goals> |
| 100 | + </execution> |
| 101 | + </executions> |
| 102 | + <dependencies> |
| 103 | + <dependency> |
| 104 | + <groupId>org.aspectj</groupId> |
| 105 | + <artifactId>aspectjtools</artifactId> |
| 106 | + <version>${aspectj.version}</version> |
| 107 | + </dependency> |
| 108 | + </dependencies> |
96 | 109 | </plugin> |
97 | 110 | <plugin> |
98 | 111 | <groupId>org.apache.maven.plugins</groupId> |
|
121 | 134 | </plugin> |
122 | 135 | <!-- Don't deploy the example --> |
123 | 136 | <plugin> |
124 | | - <groupId>org.apache.maven.plugins</groupId> |
125 | | - <artifactId>maven-deploy-plugin</artifactId> |
126 | | - <configuration> |
127 | | - <skip>true</skip> |
128 | | - </configuration> |
| 137 | + <groupId>org.apache.maven.plugins</groupId> |
| 138 | + <artifactId>maven-deploy-plugin</artifactId> |
| 139 | + <configuration> |
| 140 | + <skip>true</skip> |
| 141 | + </configuration> |
129 | 142 | </plugin> |
130 | 143 | </plugins> |
131 | 144 | </build> |
|
147 | 160 | <properties> |
148 | 161 | <aspectj.version>1.9.7</aspectj.version> |
149 | 162 | </properties> |
150 | | - <dependencyManagement> |
151 | | - <dependencies> |
152 | | - <dependency> |
153 | | - <groupId>org.aspectj</groupId> |
154 | | - <artifactId>aspectjtools</artifactId> |
155 | | - <version>${aspectj.version}</version> |
156 | | - </dependency> |
157 | | - </dependencies> |
158 | | - </dependencyManagement> |
159 | | - <build> |
160 | | - <pluginManagement> |
161 | | - <plugins> |
162 | | - <plugin> |
163 | | - <groupId>dev.aspectj</groupId> |
164 | | - <artifactId>aspectj-maven-plugin</artifactId> |
165 | | - <version>${aspectj.plugin.version}</version> |
166 | | - <configuration> |
167 | | - <source>${maven.compiler.source}</source> |
168 | | - <target>${maven.compiler.target}</target> |
169 | | - <complianceLevel>${maven.compiler.target}</complianceLevel> |
170 | | - <aspectLibraries> |
171 | | - <aspectLibrary> |
172 | | - <groupId>software.amazon.lambda</groupId> |
173 | | - <artifactId>powertools-tracing</artifactId> |
174 | | - </aspectLibrary> |
175 | | - <aspectLibrary> |
176 | | - <groupId>software.amazon.lambda</groupId> |
177 | | - <artifactId>powertools-logging</artifactId> |
178 | | - </aspectLibrary> |
179 | | - <aspectLibrary> |
180 | | - <groupId>software.amazon.lambda</groupId> |
181 | | - <artifactId>powertools-metrics</artifactId> |
182 | | - </aspectLibrary> |
183 | | - </aspectLibraries> |
184 | | - </configuration> |
185 | | - <executions> |
186 | | - <execution> |
187 | | - <goals> |
188 | | - <goal>compile</goal> |
189 | | - <goal>test-compile</goal> |
190 | | - </goals> |
191 | | - </execution> |
192 | | - </executions> |
193 | | - <!-- Enforce aspectJ 1.9.7 --> |
194 | | - <dependencies> |
195 | | - <dependency> |
196 | | - <groupId>org.aspectj</groupId> |
197 | | - <artifactId>aspectjtools</artifactId> |
198 | | - <version>${aspectj.version}</version> |
199 | | - </dependency> |
200 | | - </dependencies> |
201 | | - </plugin> |
202 | | - </plugins> |
203 | | - </pluginManagement> |
204 | | - </build> |
205 | 163 | </profile> |
206 | 164 | </profiles> |
207 | 165 | </project> |
0 commit comments