|
3 | 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
4 | 4 | xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
5 | 5 | <modelVersion>4.0.0</modelVersion>
|
6 |
| - <groupId>it.baeyens.arduino</groupId> |
| 6 | + <groupId>${parent.groupId}</groupId> |
7 | 7 | <artifactId>it.baeyens.arduino.parent</artifactId>
|
8 | 8 | <version>1.0.0-SNAPSHOT</version>
|
9 | 9 | <packaging>pom</packaging>
|
|
13 | 13 | <built.repo.dir>${project.build.directory}/repo</built.repo.dir>
|
14 | 14 | </properties>
|
15 | 15 |
|
| 16 | + |
| 17 | + <parent> |
| 18 | + <groupId>org.sonatype.oss</groupId> |
| 19 | + <artifactId>oss-parent</artifactId> |
| 20 | + <version>7</version> |
| 21 | + <relativePath>org.sonatype.oss:oss-parent</relativePath> |
| 22 | + </parent> |
| 23 | + |
| 24 | + <!-- TODO : github.repo.username --> |
| 25 | + <scm> |
| 26 | + <connection>scm:git:git://github.com/brodykenrick/arduino-eclipse-plugin.git</connection> |
| 27 | + < developerConnection>scm:git: [email protected]:brodykenrick/arduino-eclipse-plugin.git</ developerConnection> |
| 28 | + <url>http://github.com/brodykenrick/arduino-eclipse-plugin</url> |
| 29 | + </scm> |
| 30 | + |
| 31 | + <!-- Sonatype repos --> |
| 32 | + <distributionManagement> |
| 33 | + <snapshotRepository> |
| 34 | + <id>sonatype-nexus-snapshots</id> |
| 35 | + <name>Sonatype Nexus snapshot repository</name> |
| 36 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 37 | + </snapshotRepository> |
| 38 | + <repository> |
| 39 | + <id>sonatype-nexus-staging</id> |
| 40 | + <name>Sonatype Nexus release repository</name> |
| 41 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 42 | + </repository> |
| 43 | + </distributionManagement> |
| 44 | + |
16 | 45 | <modules>
|
17 | 46 | <module>../it.baeyens.arduino.core.nl1</module>
|
18 | 47 | <module>../it.baeyens.arduino.feature</module>
|
|
47 | 76 | </configuration>
|
48 | 77 | </plugin>
|
49 | 78 |
|
50 |
| - <!-- Deploying to github --> |
51 |
| - <plugin> |
52 |
| - <artifactId>maven-deploy-plugin</artifactId> |
53 |
| - <version>2.7</version> |
54 |
| - <configuration> |
55 |
| - <altDeploymentRepository>internal.repo::default::file://${built.repo.dir}</altDeploymentRepository> |
56 |
| - </configuration> |
57 |
| - </plugin> |
58 |
| - |
| 79 | + <!-- Maven release with PGP signing --> |
59 | 80 | <plugin>
|
60 |
| - <groupId>com.github.github</groupId> |
61 |
| - <artifactId>site-maven-plugin</artifactId> |
62 |
| - <version>0.8</version> |
| 81 | + <groupId>org.apache.maven.plugins</groupId> |
| 82 | + <artifactId>maven-release-plugin</artifactId> |
| 83 | + <version>2.2.2</version> |
63 | 84 | <configuration>
|
64 |
| - <!-- git commit message --> |
65 |
| - <message>Maven artifacts for ${project.groupId}:${project.artifactId}:${project.version} ~${maven.build.timestamp}</message> |
66 |
| - <noJekyll>true</noJekyll> <!-- disable webpage processing --> |
67 |
| - <outputDirectory>${built.repo.dir}</outputDirectory> |
68 |
| - <!-- This isn't perfect, because every old SNAPSHOT is kept.. --> |
69 |
| - <merge>true</merge> |
70 |
| - |
71 |
| - <!-- <dryRun>true</dryRun> --> |
72 |
| - <repositoryOwner>${env.CI_DEPLOY_USERNAME}</repositoryOwner> <!-- github username --> |
73 |
| - <repositoryName>arduino-eclipse-plugin</repositoryName> <!-- github repo name --> |
74 |
| - <branch>refs/heads/gh-pages</branch> <!-- remote branch name --> |
75 |
| - <path>maven/snapshots</path> |
76 |
| - |
77 |
| - <!-- This token, obtained from https://github.com/settings/applications, |
78 |
| - encrypted using http://about.travis-ci.org/docs/user/build-configuration/#Secure-environment-variables, |
79 |
| - is like a password; encrypt & guard it carefully! --> |
80 |
| - <oauth2Token>${env.CI_DEPLOY_OAUTH2_TOKEN}</oauth2Token> |
81 |
| - |
82 |
| - <includes> |
83 |
| - <include>**/*</include> |
84 |
| - </includes> |
| 85 | + <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments> |
85 | 86 | </configuration>
|
86 |
| - <executions> |
87 |
| - <!-- run site-maven-plugin's 'site' target as part of the build's normal |
88 |
| - 'deploy' phase --> |
89 |
| - <execution> |
90 |
| - <goals> |
91 |
| - <goal>site</goal> |
92 |
| - </goals> |
93 |
| - <phase>deploy</phase> |
94 |
| - </execution> |
95 |
| - </executions> |
96 |
| - </plugin> |
| 87 | + </plugin> |
97 | 88 |
|
98 | 89 | </plugins>
|
99 | 90 |
|
|
118 | 109 |
|
119 | 110 |
|
120 | 111 | <profiles>
|
121 |
| - |
| 112 | + <!-- GPG Signing --> |
| 113 | + <profile> |
| 114 | + <id>release-sign-artifacts</id> |
| 115 | + <activation> |
| 116 | + <property> |
| 117 | + <name>performRelease</name> |
| 118 | + <value>true</value> |
| 119 | + </property> |
| 120 | + </activation> |
| 121 | + <build> |
| 122 | + <plugins> |
| 123 | + <plugin> |
| 124 | + <groupId>org.apache.maven.plugins</groupId> |
| 125 | + <artifactId>maven-gpg-plugin</artifactId> |
| 126 | + <version>1.4</version> |
| 127 | + <configuration> |
| 128 | + <passphrase>${gpg.passphrase}</passphrase> |
| 129 | + </configuration> |
| 130 | + <executions> |
| 131 | + <execution> |
| 132 | + <id>sign-artifacts</id> |
| 133 | + <phase>verify</phase> |
| 134 | + <goals> |
| 135 | + <goal>sign</goal> |
| 136 | + </goals> |
| 137 | + </execution> |
| 138 | + </executions> |
| 139 | + </plugin> |
| 140 | + </plugins> |
| 141 | + </build> |
| 142 | + </profile> |
| 143 | + |
122 | 144 | <profile>
|
123 | 145 | <id>all</id>
|
124 | 146 | <build>
|
|
373 | 395 |
|
374 | 396 | <repositories>
|
375 | 397 | <repository>
|
376 |
| - <id>Nebula</id> |
| 398 | + <id>nebula</id> |
377 | 399 | <layout>p2</layout>
|
378 | 400 | <url> http://download.eclipse.org/technology/nebula/snapshot</url>
|
379 | 401 | </repository>
|
|
0 commit comments