|
344 | 344 | </execution> |
345 | 345 | </executions> |
346 | 346 | </plugin> |
347 | | - |
348 | | - <!-- Source JAR --> |
349 | | - <plugin> |
350 | | - <groupId>org.apache.maven.plugins</groupId> |
351 | | - <artifactId>maven-source-plugin</artifactId> |
352 | | - <version>2.2.1</version> |
353 | | - <configuration> |
354 | | - <excludeResources>true</excludeResources> |
355 | | - </configuration> |
356 | | - <executions> |
357 | | - <execution> |
358 | | - <id>attach-sources</id> |
359 | | - <phase>package</phase> |
360 | | - <goals> |
361 | | - <goal>jar-no-fork</goal> |
362 | | - </goals> |
363 | | - </execution> |
364 | | - </executions> |
365 | | - </plugin> |
366 | | - |
367 | | - <!-- Javadoc jar --> |
368 | | - <plugin> |
369 | | - <groupId>org.apache.maven.plugins</groupId> |
370 | | - <artifactId>maven-javadoc-plugin</artifactId> |
371 | | - <version>2.9.1</version> |
372 | | - <configuration> |
373 | | - <additionalparam>-Xdoclint:none</additionalparam> |
374 | | - <failOnError>false</failOnError> |
375 | | - <links> |
376 | | - <link>http://download.oracle.com/javase/7/docs/api/</link> |
377 | | - </links> |
378 | | - <doctitle>${project.name} ${project.version}</doctitle> |
379 | | - <bottom> |
380 | | - <![CDATA[Copyright © {currentYear} <a href="http://cdap.io" target="_blank">CDAP</a> Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License, Version 2.0</a>.]]> |
381 | | - </bottom> |
382 | | - </configuration> |
383 | | - <executions> |
384 | | - <execution> |
385 | | - <id>attach-javadoc</id> |
386 | | - <phase>package</phase> |
387 | | - <goals> |
388 | | - <goal>jar</goal> |
389 | | - </goals> |
390 | | - </execution> |
391 | | - </executions> |
392 | | - </plugin> |
393 | | - <plugin> |
394 | | - <groupId>org.apache.maven.plugins</groupId> |
395 | | - <artifactId>maven-gpg-plugin</artifactId> |
396 | | - <version>1.5</version> |
397 | | - <configuration> |
398 | | - <passphrase>${gpg.passphrase}</passphrase> |
399 | | - <useAgent>${gpg.useagent}</useAgent> |
400 | | - </configuration> |
401 | | - <executions> |
402 | | - <execution> |
403 | | - <goals> |
404 | | - <goal>sign</goal> |
405 | | - </goals> |
406 | | - </execution> |
407 | | - </executions> |
408 | | - </plugin> |
409 | | - <plugin> |
410 | | - <groupId>org.apache.maven.plugins</groupId> |
411 | | - <artifactId>maven-release-plugin</artifactId> |
412 | | - <version>2.5.3</version> |
413 | | - <configuration> |
414 | | - <tag>v${releaseVersion}</tag> |
415 | | - <tagNameFormat>v@{project.version}</tagNameFormat> |
416 | | - <autoVersionSubmodules>true</autoVersionSubmodules> |
417 | | - <!-- releaseProfiles configuration will actually force a Maven profile |
418 | | - – the `releases` profile – to become active during the Release process. --> |
419 | | - <releaseProfiles>releases</releaseProfiles> |
420 | | - </configuration> |
421 | | - </plugin> |
422 | | - <plugin> |
423 | | - <groupId>org.sonatype.plugins</groupId> |
424 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
425 | | - <version>1.6.14</version> |
426 | | - <extensions>true</extensions> |
427 | | - <configuration> |
428 | | - <nexusUrl>https://oss.sonatype.org</nexusUrl> |
429 | | - <serverId>sonatype.release</serverId> |
430 | | - </configuration> |
431 | | - </plugin> |
432 | 347 | </plugins> |
433 | 348 | </build> |
434 | 349 |
|
|
470 | 385 | </plugins> |
471 | 386 | </build> |
472 | 387 | </profile> |
| 388 | + <profile> |
| 389 | + <id>release</id> |
| 390 | + <build> |
| 391 | + <plugins> |
| 392 | + <plugin> |
| 393 | + <groupId>org.sonatype.plugins</groupId> |
| 394 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 395 | + <version>1.6.14</version> |
| 396 | + <extensions>true</extensions> |
| 397 | + <configuration> |
| 398 | + <nexusUrl>https://oss.sonatype.org</nexusUrl> |
| 399 | + <serverId>sonatype.release</serverId> |
| 400 | + <stagingProfileId>655dc88dc770c3</stagingProfileId> |
| 401 | + </configuration> |
| 402 | + </plugin> |
| 403 | + <!-- Source JAR --> |
| 404 | + <plugin> |
| 405 | + <groupId>org.apache.maven.plugins</groupId> |
| 406 | + <artifactId>maven-source-plugin</artifactId> |
| 407 | + <version>2.2.1</version> |
| 408 | + <configuration> |
| 409 | + <excludeResources>true</excludeResources> |
| 410 | + </configuration> |
| 411 | + <executions> |
| 412 | + <execution> |
| 413 | + <id>attach-sources</id> |
| 414 | + <phase>package</phase> |
| 415 | + <goals> |
| 416 | + <goal>jar-no-fork</goal> |
| 417 | + </goals> |
| 418 | + </execution> |
| 419 | + </executions> |
| 420 | + </plugin> |
| 421 | + |
| 422 | + <!-- Javadoc jar --> |
| 423 | + <plugin> |
| 424 | + <groupId>org.apache.maven.plugins</groupId> |
| 425 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 426 | + <version>2.9.1</version> |
| 427 | + <configuration> |
| 428 | + <additionalparam>-Xdoclint:none</additionalparam> |
| 429 | + <failOnError>false</failOnError> |
| 430 | + <links> |
| 431 | + <link>http://download.oracle.com/javase/${jee.version}/docs/api/</link> |
| 432 | + </links> |
| 433 | + <doctitle>${project.name} ${project.version}</doctitle> |
| 434 | + <bottom> |
| 435 | + <![CDATA[Copyright © {currentYear} <a href="http://cdap.io" target="_blank">CDAP</a> Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License, Version 2.0</a>.]]> |
| 436 | + </bottom> |
| 437 | + </configuration> |
| 438 | + <executions> |
| 439 | + <execution> |
| 440 | + <id>attach-javadoc</id> |
| 441 | + <phase>package</phase> |
| 442 | + <goals> |
| 443 | + <goal>jar</goal> |
| 444 | + </goals> |
| 445 | + </execution> |
| 446 | + </executions> |
| 447 | + </plugin> |
| 448 | + |
| 449 | + <plugin> |
| 450 | + <groupId>org.apache.maven.plugins</groupId> |
| 451 | + <artifactId>maven-gpg-plugin</artifactId> |
| 452 | + <version>1.5</version> |
| 453 | + <configuration> |
| 454 | + <passphrase>${gpg.passphrase}</passphrase> |
| 455 | + <useAgent>${gpg.useagent}</useAgent> |
| 456 | + </configuration> |
| 457 | + <executions> |
| 458 | + <execution> |
| 459 | + <goals> |
| 460 | + <goal>sign</goal> |
| 461 | + </goals> |
| 462 | + </execution> |
| 463 | + </executions> |
| 464 | + </plugin> |
| 465 | + </plugins> |
| 466 | + </build> |
| 467 | + </profile> |
473 | 468 | <profile> |
474 | 469 | <id>e2e-tests</id> |
475 | 470 | <properties> |
|
0 commit comments