|
6 | 6 | <artifactId>org.eclipse.emfcloud.modelserver.parent</artifactId> |
7 | 7 | <description>parent for all modelserver modules</description> |
8 | 8 | <version>0.7.0-SNAPSHOT</version> |
| 9 | + <name>EMF.cloud Modelserver Parent</name> |
9 | 10 | <packaging>pom</packaging> |
10 | 11 |
|
11 | 12 | <!-- Required metadata for deploying releases to mvn central --> |
|
63 | 64 |
|
64 | 65 | <modules> |
65 | 66 | <module>bundles</module> |
66 | | - <module>examples</module> |
67 | | - <module>releng</module> |
68 | | - <module>tests</module> |
69 | 67 | </modules> |
70 | 68 |
|
71 | 69 | <!-- Properties --> |
|
81 | 79 | <!-- Deployment: used by the maven-deploy-plugin --> |
82 | 80 | <maven.deploy.skip>true</maven.deploy.skip> |
83 | 81 |
|
84 | | - <!-- Target: version used to reference target platform from our releng |
85 | | - bundle --> |
86 | | - <target.version>0.7.0-SNAPSHOT</target.version> |
87 | | - |
88 | 82 | <!-- Package Type: type of bundles to create (can be re-defined by profiles) --> |
89 | 83 | <package.type>eclipse-plugin</package.type> |
90 | 84 | <package.type.test>eclipse-test-plugin</package.type.test> |
|
205 | 199 | <profile> |
206 | 200 | <id>p2</id> |
207 | 201 | <activation> |
208 | | - <activeByDefault>true</activeByDefault> |
| 202 | + <property> |
| 203 | + <name>!noP2</name> <!-- deactivated if system property noP2 is set, otherwise activated --> |
| 204 | + </property> |
209 | 205 | </activation> |
210 | 206 |
|
211 | 207 | <modules> |
212 | 208 | <module>features</module> |
213 | 209 | </modules> |
214 | 210 |
|
215 | | - |
216 | 211 | <build> |
217 | 212 | <pluginManagement> |
218 | 213 | <plugins> |
|
239 | 234 | <artifactId>target-platform-configuration</artifactId> |
240 | 235 | <version>${tycho.version}</version> |
241 | 236 | </plugin> |
| 237 | + <plugin> |
| 238 | + <groupId>org.eclipse.tycho</groupId> |
| 239 | + <artifactId>tycho-versions-plugin</artifactId> |
| 240 | + <version>${tycho.version}</version> |
| 241 | + </plugin> |
242 | 242 | </plugins> |
243 | 243 | </pluginManagement> |
244 | 244 | <plugins> |
|
274 | 274 | </execution> |
275 | 275 | </executions> |
276 | 276 | </plugin> |
| 277 | + <plugin> |
| 278 | + <groupId>org.eclipse.tycho</groupId> |
| 279 | + <artifactId>tycho-versions-plugin</artifactId> |
| 280 | + <version>${tycho.version}</version> |
| 281 | + </plugin> |
277 | 282 | <plugin> |
278 | 283 | <groupId>org.eclipse.tycho</groupId> |
279 | 284 | <artifactId>target-platform-configuration</artifactId> |
|
302 | 307 | <groupId>org.eclipse.emfcloud.modelserver</groupId> |
303 | 308 | <artifactId>org.eclipse.emfcloud.modelserver.parent</artifactId> |
304 | 309 | <classifier>releng/org.eclipse.emfcloud.modelserver.releng.target/r2020-09</classifier> |
305 | | - <version>${target.version}</version> |
| 310 | + <version>${project.version}</version> |
306 | 311 | </artifact> |
307 | 312 | </target> |
308 | 313 | </configuration> |
|
389 | 394 | <properties> |
390 | 395 | <package.type>jar</package.type> |
391 | 396 | <package.type.test>jar</package.type.test> |
| 397 | + <noP2>true</noP2> |
392 | 398 | </properties> |
393 | 399 |
|
394 | 400 | <repositories> |
|
516 | 522 | </snapshotRepository> |
517 | 523 | </distributionManagement> |
518 | 524 |
|
| 525 | + <properties> |
| 526 | + <pluginsOnly>true</pluginsOnly> |
| 527 | + </properties> |
| 528 | + |
519 | 529 | <build> |
520 | 530 | <plugins> |
521 | 531 | <!-- To release to Sonatype/Maven central --> |
|
530 | 540 | <autoreleaseafterclose>false</autoreleaseafterclose> |
531 | 541 | </configuration> |
532 | 542 | </plugin> |
533 | | - <!-- To generate javadoc --> |
534 | | - |
535 | | - <!-- Deactivate for now. Not needed for snapshot deployments --> |
536 | | - <!-- <plugin> --> |
537 | | - <!-- <groupId>org.apache.maven.plugins</groupId> --> |
538 | | - <!-- <artifactId>maven-javadoc-plugin</artifactId> --> |
539 | | - <!-- <version>3.1.0</version> --> |
540 | | - <!-- <executions> --> |
541 | | - <!-- <execution> --> |
542 | | - <!-- <id>attach-javadocs</id> --> |
543 | | - <!-- <goals> --> |
544 | | - <!-- <goal>jar</goal> --> |
545 | | - <!-- </goals> --> |
546 | | - <!-- <configuration> --> |
547 | | - <!-- <additionalJOption>-Xdoclint:none</additionalJOption> --> |
548 | | - <!-- <tags> --> |
549 | | - <!-- <tag> --> |
550 | | - <!-- <name>generated</name> --> |
551 | | - <!-- <placement>a</placement> --> |
552 | | - <!-- <head></head> --> |
553 | | - <!-- </tag> --> |
554 | | - <!-- <tag> --> |
555 | | - <!-- <name>ordered</name> --> |
556 | | - <!-- <placement>a</placement> --> |
557 | | - <!-- <head></head> --> |
558 | | - <!-- </tag> --> |
559 | | - <!-- <tag> --> |
560 | | - <!-- <name>model</name> --> |
561 | | - <!-- <placement>a</placement> --> |
562 | | - <!-- <head>Model:</head> --> |
563 | | - <!-- </tag> --> |
564 | | - <!-- </tags> --> |
565 | | - <!-- </configuration> --> |
566 | | - <!-- </execution> --> |
567 | | - <!-- </executions> --> |
568 | | - <!-- </plugin> --> |
569 | 543 |
|
570 | 544 | <!-- To sign the artifacts --> |
571 | 545 | <plugin> |
|
591 | 565 | </plugins> |
592 | 566 | </build> |
593 | 567 | </profile> |
| 568 | + |
| 569 | + <!--In certain corner cases we only want to use the core modules/plugins e.g. when deploying to maven central. |
| 570 | + This profile is active by default and can be deactivated by passing the -DpluginsOnly--> |
| 571 | + <profile> |
| 572 | + <id>non-plugin-modules</id> |
| 573 | + <activation> |
| 574 | + <property> |
| 575 | + <name>!pluginsOnly</name> |
| 576 | + </property> |
| 577 | + </activation> |
| 578 | + <modules> |
| 579 | + <module>examples</module> |
| 580 | + <module>releng</module> |
| 581 | + <module>tests</module> |
| 582 | + </modules> |
| 583 | + </profile> |
594 | 584 | </profiles> |
595 | 585 | </project> |
0 commit comments