|
17 | 17 | <groupId>org.sonatype.oss</groupId> |
18 | 18 | <artifactId>oss-parent</artifactId> |
19 | 19 | <version>7</version> |
20 | | - <relativePath /> |
| 20 | + <relativePath/> |
21 | 21 | </parent> |
22 | | - |
| 22 | + |
23 | 23 | <groupId>com.datastax.cassandra</groupId> |
24 | 24 | <artifactId>cassandra-driver-parent</artifactId> |
25 | 25 | <version>2.0.10-SNAPSHOT</version> |
26 | 26 | <packaging>pom</packaging> |
27 | 27 | <name>DataStax Java Driver for Apache Cassandra</name> |
28 | 28 | <description>A driver for Apache Cassandra 1.2+ that works exclusively with the Cassandra Query Language version 3 (CQL3) and Cassandra's binary protocol.</description> |
29 | 29 | <url>https://github.com/datastax/java-driver</url> |
| 30 | + <inceptionYear>2012</inceptionYear> |
30 | 31 |
|
31 | 32 | <modules> |
32 | 33 | <module>driver-core</module> |
|
59 | 60 | our build is still using JDK 6. |
60 | 61 | --> |
61 | 62 | <scassandra.version>0.4.1</scassandra.version> |
| 63 | + <main.basedir>${project.basedir}</main.basedir> |
62 | 64 | </properties> |
63 | 65 |
|
64 | 66 | <dependencies> |
|
95 | 97 | <artifactId>maven-compiler-plugin</artifactId> |
96 | 98 | <version>3.1</version> |
97 | 99 | <configuration> |
98 | | - <source>${java.version}</source> |
99 | | - <target>${java.version}</target> |
100 | | - <optimize>true</optimize> |
101 | | - <showDeprecation>true</showDeprecation> |
102 | | - <showWarnings>true</showWarnings> |
| 100 | + <source>${java.version}</source> |
| 101 | + <target>${java.version}</target> |
| 102 | + <optimize>true</optimize> |
| 103 | + <showDeprecation>true</showDeprecation> |
| 104 | + <showWarnings>true</showWarnings> |
| 105 | + </configuration> |
| 106 | + </plugin> |
| 107 | + <plugin> |
| 108 | + <groupId>org.apache.maven.plugins</groupId> |
| 109 | + <artifactId>maven-source-plugin</artifactId> |
| 110 | + <version>2.2.1</version> |
| 111 | + <executions> |
| 112 | + <execution> |
| 113 | + <id>attach-sources</id> |
| 114 | + <goals> |
| 115 | + <goal>jar</goal> |
| 116 | + </goals> |
| 117 | + </execution> |
| 118 | + </executions> |
| 119 | + </plugin> |
| 120 | + <plugin> |
| 121 | + <groupId>org.apache.maven.plugins</groupId> |
| 122 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 123 | + <version>2.9.1</version> |
| 124 | + <configuration> |
| 125 | + <!-- I can haz math in my javadoc (see http://zverovich.net/2012/01/14/beautiful-math-in-javadoc.html) --> |
| 126 | + <additionalparam>-header '<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'</additionalparam> |
| 127 | + </configuration> |
| 128 | + <executions> |
| 129 | + <execution> |
| 130 | + <id>attach-javadocs</id> |
| 131 | + <goals> |
| 132 | + <goal>jar</goal> |
| 133 | + </goals> |
| 134 | + <configuration> |
| 135 | + <additionalparam>${javadoc.opts}</additionalparam> |
| 136 | + </configuration> |
| 137 | + </execution> |
| 138 | + </executions> |
| 139 | + </plugin> |
| 140 | + <plugin> |
| 141 | + <artifactId>maven-assembly-plugin</artifactId> |
| 142 | + <version>2.4</version> |
| 143 | + <configuration> |
| 144 | + <descriptorRefs> |
| 145 | + <descriptorRef>jar-with-dependencies</descriptorRef> |
| 146 | + </descriptorRefs> |
103 | 147 | </configuration> |
104 | 148 | </plugin> |
105 | 149 | <plugin> |
106 | | - <groupId>org.apache.maven.plugins</groupId> |
107 | | - <artifactId>maven-source-plugin</artifactId> |
108 | | - <version>2.2.1</version> |
109 | | - <executions> |
110 | | - <execution> |
111 | | - <id>attach-sources</id> |
112 | | - <goals> |
113 | | - <goal>jar</goal> |
114 | | - </goals> |
115 | | - </execution> |
116 | | - </executions> |
| 150 | + <groupId>org.apache.maven.plugins</groupId> |
| 151 | + <artifactId>maven-release-plugin</artifactId> |
| 152 | + <version>2.5</version> |
| 153 | + <configuration> |
| 154 | + <tagNameFormat>@{project.version}</tagNameFormat> |
| 155 | + </configuration> |
117 | 156 | </plugin> |
118 | 157 | <plugin> |
119 | | - <groupId>org.apache.maven.plugins</groupId> |
120 | | - <artifactId>maven-javadoc-plugin</artifactId> |
121 | | - <version>2.9.1</version> |
122 | | - <configuration> |
123 | | - <!-- I can haz math in my javadoc (see http://zverovich.net/2012/01/14/beautiful-math-in-javadoc.html) --> |
124 | | - <additionalparam>-header '<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'</additionalparam> |
125 | | - </configuration> |
126 | | - <executions> |
127 | | - <execution> |
128 | | - <id>attach-javadocs</id> |
129 | | - <goals> |
130 | | - <goal>jar</goal> |
131 | | - </goals> |
132 | | - <configuration> |
133 | | - <additionalparam>${javadoc.opts}</additionalparam> |
134 | | - </configuration> |
135 | | - </execution> |
136 | | - </executions> |
| 158 | + <groupId>org.codehaus.mojo</groupId> |
| 159 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 160 | + <version>1.9.1</version> |
| 161 | + <executions> |
| 162 | + <execution> |
| 163 | + <id>timestamp-property</id> |
| 164 | + <phase>initialize</phase> |
| 165 | + <goals> |
| 166 | + <goal>timestamp-property</goal> |
| 167 | + </goals> |
| 168 | + <configuration> |
| 169 | + <name>currentYear</name> |
| 170 | + <pattern>yyyy</pattern> |
| 171 | + <locale>en_US</locale> |
| 172 | + </configuration> |
| 173 | + </execution> |
| 174 | + </executions> |
137 | 175 | </plugin> |
| 176 | + <!-- |
| 177 | + To update license headers run: |
| 178 | + mvn license:format -DcurrentYear=XXXX |
| 179 | + --> |
138 | 180 | <plugin> |
139 | | - <artifactId>maven-assembly-plugin</artifactId> |
140 | | - <version>2.4</version> |
141 | | - <configuration> |
142 | | - <descriptorRefs> |
143 | | - <descriptorRef>jar-with-dependencies</descriptorRef> |
144 | | - </descriptorRefs> |
145 | | - </configuration> |
146 | | - </plugin> |
147 | | - <plugin> |
148 | | - <groupId>org.apache.maven.plugins</groupId> |
149 | | - <artifactId>maven-release-plugin</artifactId> |
150 | | - <version>2.5</version> |
151 | | - <configuration> |
152 | | - <tagNameFormat>@{project.version}</tagNameFormat> |
153 | | - </configuration> |
154 | | - </plugin> |
| 181 | + <groupId>com.mycila</groupId> |
| 182 | + <artifactId>license-maven-plugin</artifactId> |
| 183 | + <version>2.8</version> |
| 184 | + <configuration> |
| 185 | + <header>${main.basedir}/src/license/header.txt</header> |
| 186 | + <includes> |
| 187 | + <include>src/**/*.java</include> |
| 188 | + <include>src/**/*.xml</include> |
| 189 | + <include>src/**/*.properties</include> |
| 190 | + <include>**/pom.xml</include> |
| 191 | + </includes> |
| 192 | + <excludes> |
| 193 | + <exclude>**/src/main/config/ide/**</exclude> |
| 194 | + </excludes> |
| 195 | + <mapping> |
| 196 | + <java>SLASHSTAR_STYLE</java> |
| 197 | + <properties>SCRIPT_STYLE</properties> |
| 198 | + </mapping> |
| 199 | + <strictCheck>true</strictCheck> |
| 200 | + </configuration> |
| 201 | + <executions> |
| 202 | + <execution> |
| 203 | + <id>check-license</id> |
| 204 | + <phase>initialize</phase> |
| 205 | + <goals> |
| 206 | + <goal>check</goal> |
| 207 | + </goals> |
| 208 | + <configuration> |
| 209 | + <properties> |
| 210 | + <currentYear>${currentYear}</currentYear> |
| 211 | + </properties> |
| 212 | + </configuration> |
| 213 | + </execution> |
| 214 | + </executions> |
| 215 | + </plugin> |
155 | 216 | </plugins> |
156 | 217 | </build> |
157 | 218 |
|
|
0 commit comments