|
55 | 55 | <artifactId>aem-sdk-api</artifactId> |
56 | 56 | <version>2021.5.5343.20210524T070738Z-210527</version> |
57 | 57 | </dependency> |
58 | | - |
59 | 58 | </dependencies> |
60 | 59 | <build> |
61 | 60 | <pluginManagement> |
|
77 | 76 | </plugins> |
78 | 77 | </pluginManagement> |
79 | 78 | <plugins> |
80 | | - <!-- for "cloud" package use repoinit instead of actool-content-package --> |
81 | | - <plugin> |
82 | | - <artifactId>maven-resources-plugin</artifactId> |
83 | | - <executions> |
84 | | - <execution> |
85 | | - <id>copy-cloud-package-resources</id> |
86 | | - <!-- here the phase you need --> |
87 | | - <phase>process-resources</phase> |
88 | | - <goals> |
89 | | - <goal>copy-resources</goal> |
90 | | - </goals> |
91 | | - <configuration> |
92 | | - <outputDirectory>${project.build.directory}/vault-work-cloud/jcr_root</outputDirectory> |
93 | | - <resources> |
94 | | - <resource> |
95 | | - <directory>src/main/jcr_root-cloud</directory> |
96 | | - <filtering>false</filtering> |
97 | | - </resource> |
98 | | - </resources> |
99 | | - </configuration> |
100 | | - </execution> |
101 | | - </executions> |
102 | | - </plugin> |
103 | | - <!-- generate two packages: one for cloud (classifier "cloud") and one for classic (no classifier) --> |
| 79 | + <!-- optionally generate two packages: one for cloud (classifier "cloud") and one for classic (no classifier) --> |
104 | 80 | <plugin> |
105 | 81 | <groupId>org.apache.jackrabbit</groupId> |
106 | 82 | <artifactId>filevault-package-maven-plugin</artifactId> |
|
141 | 117 | <installHooks>org.apache.sling:org.apache.sling.installer.provider.installhook:1.1.0</installHooks> |
142 | 118 | </configuration> |
143 | 119 | </execution> |
144 | | - <execution> |
145 | | - <id>cloud-generate-metadata</id> |
146 | | - <goals> |
147 | | - <goal>generate-metadata</goal> |
148 | | - </goals> |
149 | | - <configuration> |
150 | | - <!-- everything via embed, no subpackages, no accesscontroltool-content-package --> |
151 | | - <embeddeds> |
152 | | - <embedded> |
153 | | - <artifactId>accesscontroltool-bundle</artifactId> |
154 | | - </embedded> |
155 | | - <embedded> |
156 | | - <artifactId>accesscontroltool-apps-package</artifactId> |
157 | | - </embedded> |
158 | | - <embedded> |
159 | | - <artifactId>accesscontroltool-startuphook-bundle</artifactId> |
160 | | - <target>/apps/netcentric/actool/install/27</target> |
161 | | - </embedded> |
162 | | - </embeddeds> |
163 | | - <classifier>cloud</classifier> |
164 | | - </configuration> |
165 | | - </execution> |
166 | | - <execution> |
167 | | - <id>cloud-package</id> |
168 | | - <goals> |
169 | | - <goal>package</goal> |
170 | | - </goals> |
171 | | - <configuration> |
172 | | - <classifier>cloud</classifier> |
173 | | - <failOnDuplicateEntries>false</failOnDuplicateEntries> |
174 | | - </configuration> |
175 | | - </execution> |
176 | | - <execution> |
177 | | - <id>default-validate-package</id> |
178 | | - <configuration> |
179 | | - <!-- validate both generated packages in one execution --> |
180 | | - <classifier>cloud</classifier> |
181 | | - </configuration> |
182 | | - </execution> |
183 | 120 | <execution> |
184 | 121 | <id>default-analyze-classes</id> |
185 | 122 | <phase>invalid</phase> |
|
193 | 130 | <plugin> |
194 | 131 | <groupId>com.adobe.aem</groupId> |
195 | 132 | <artifactId>aemanalyser-maven-plugin</artifactId> |
196 | | - <configuration> |
197 | | - <classifier>cloud</classifier> |
198 | | - </configuration> |
199 | 133 | </plugin> |
200 | 134 | </plugins> |
201 | 135 | </build> |
| 136 | + <profiles> |
| 137 | + <profile> |
| 138 | + <id>cloud</id> |
| 139 | + <!-- automatically active on CI --> |
| 140 | + <activation> |
| 141 | + <property> |
| 142 | + <name>env.CI</name> |
| 143 | + </property> |
| 144 | + </activation> |
| 145 | + <build> |
| 146 | + <plugins> |
| 147 | + <!-- for "cloud" package use repoinit instead of actool-content-package --> |
| 148 | + <plugin> |
| 149 | + <artifactId>maven-resources-plugin</artifactId> |
| 150 | + <executions> |
| 151 | + <execution> |
| 152 | + <id>copy-cloud-package-resources</id> |
| 153 | + <!-- here the phase you need --> |
| 154 | + <phase>process-resources</phase> |
| 155 | + <goals> |
| 156 | + <goal>copy-resources</goal> |
| 157 | + </goals> |
| 158 | + <configuration> |
| 159 | + <outputDirectory>${project.build.directory}/vault-work-cloud/jcr_root</outputDirectory> |
| 160 | + <resources> |
| 161 | + <resource> |
| 162 | + <directory>src/main/jcr_root-cloud</directory> |
| 163 | + <filtering>false</filtering> |
| 164 | + </resource> |
| 165 | + </resources> |
| 166 | + </configuration> |
| 167 | + </execution> |
| 168 | + </executions> |
| 169 | + </plugin> |
| 170 | + <plugin> |
| 171 | + <!-- optionally generate two packages: one for cloud (classifier "cloud") and one for classic (no classifier) --> |
| 172 | + <groupId>org.apache.jackrabbit</groupId> |
| 173 | + <artifactId>filevault-package-maven-plugin</artifactId> |
| 174 | + <executions> |
| 175 | + <execution> |
| 176 | + <id>cloud-generate-metadata</id> |
| 177 | + <goals> |
| 178 | + <goal>generate-metadata</goal> |
| 179 | + </goals> |
| 180 | + <configuration> |
| 181 | + <!-- everything via embed, no subpackages, no accesscontroltool-content-package --> |
| 182 | + <embeddeds> |
| 183 | + <embedded> |
| 184 | + <artifactId>accesscontroltool-bundle</artifactId> |
| 185 | + </embedded> |
| 186 | + <embedded> |
| 187 | + <artifactId>accesscontroltool-apps-package</artifactId> |
| 188 | + </embedded> |
| 189 | + <embedded> |
| 190 | + <artifactId>accesscontroltool-startuphook-bundle</artifactId> |
| 191 | + <target>/apps/netcentric/actool/install/27</target> |
| 192 | + </embedded> |
| 193 | + </embeddeds> |
| 194 | + <classifier>cloud</classifier> |
| 195 | + </configuration> |
| 196 | + </execution> |
| 197 | + <execution> |
| 198 | + <id>cloud-package</id> |
| 199 | + <goals> |
| 200 | + <goal>package</goal> |
| 201 | + </goals> |
| 202 | + <configuration> |
| 203 | + <classifier>cloud</classifier> |
| 204 | + <failOnDuplicateEntries>false</failOnDuplicateEntries> |
| 205 | + </configuration> |
| 206 | + </execution> |
| 207 | + <execution> |
| 208 | + <id>default-validate-package</id> |
| 209 | + <configuration> |
| 210 | + <!-- validate both generated packages in one execution --> |
| 211 | + <classifier>cloud</classifier> |
| 212 | + </configuration> |
| 213 | + </execution> |
| 214 | + </executions> |
| 215 | + </plugin> |
| 216 | + <plugin> |
| 217 | + <groupId>com.adobe.aem</groupId> |
| 218 | + <artifactId>aemanalyser-maven-plugin</artifactId> |
| 219 | + <configuration> |
| 220 | + <classifier>cloud</classifier> |
| 221 | + </configuration> |
| 222 | + </plugin> |
| 223 | + </plugins> |
| 224 | + </build> |
| 225 | + </profile> |
| 226 | + </profiles> |
202 | 227 | </project> |
0 commit comments