|
16 | 16 |
|
17 | 17 | --> |
18 | 18 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 19 | + |
19 | 20 | <modelVersion>4.0.0</modelVersion> |
| 21 | + |
20 | 22 | <parent> |
21 | 23 | <groupId>com.datastax.cassandra</groupId> |
22 | 24 | <artifactId>cassandra-driver-parent</artifactId> |
23 | | - <version>3.2.1-SNAPSHOT</version> |
| 25 | + <version>3.3.0-SNAPSHOT</version> |
24 | 26 | </parent> |
25 | | - <artifactId>cassandra-driver-dist</artifactId> |
26 | 27 |
|
| 28 | + <artifactId>cassandra-driver-dist</artifactId> |
27 | 29 | <!-- Should be pom but Javadoc generation requires a "classpath-capable" package --> |
28 | 30 | <packaging>jar</packaging> |
29 | | - |
30 | 31 | <name>DataStax Java Driver for Apache Cassandra - Binary distribution</name> |
31 | 32 |
|
32 | | - <!-- These dependencies are only here to ensure proper build order --> |
| 33 | + <!-- These dependencies are only here to ensure proper build order and proper inclusion of binaries in the final tarball --> |
33 | 34 | <dependencies> |
| 35 | + |
34 | 36 | <dependency> |
35 | 37 | <groupId>com.datastax.cassandra</groupId> |
36 | 38 | <artifactId>cassandra-driver-core</artifactId> |
37 | | - <version>${project.parent.version}</version> |
38 | 39 | </dependency> |
39 | 40 |
|
40 | 41 | <dependency> |
41 | 42 | <groupId>com.datastax.cassandra</groupId> |
42 | 43 | <artifactId>cassandra-driver-mapping</artifactId> |
43 | | - <version>${project.parent.version}</version> |
44 | 44 | </dependency> |
45 | 45 |
|
46 | 46 | <dependency> |
47 | 47 | <groupId>com.datastax.cassandra</groupId> |
48 | 48 | <artifactId>cassandra-driver-extras</artifactId> |
49 | | - <version>${project.parent.version}</version> |
50 | 49 | </dependency> |
51 | 50 |
|
52 | 51 | </dependencies> |
53 | 52 |
|
54 | 53 | <build> |
| 54 | + |
55 | 55 | <finalName>cassandra-java-driver-${project.version}</finalName> |
| 56 | + |
56 | 57 | <plugins> |
57 | | - <plugin> |
58 | | - <artifactId>maven-javadoc-plugin</artifactId> |
59 | | - <version>2.9.1</version> |
60 | | - <executions> |
61 | | - <execution> |
62 | | - <id>dependencies-javadoc</id> |
63 | | - <phase>package</phase> |
64 | | - <goals> |
65 | | - <goal>jar</goal> |
66 | | - </goals> |
67 | | - <configuration> |
68 | | - <includeDependencySources>true</includeDependencySources> |
69 | | - </configuration> |
70 | | - </execution> |
71 | | - </executions> |
72 | | - </plugin> |
73 | | - <plugin> |
74 | | - <artifactId>maven-assembly-plugin</artifactId> |
75 | | - <version>3.0.0</version> |
76 | | - <executions> |
77 | | - <execution> |
78 | | - <id>assemble-binary-tarball</id> |
79 | | - <phase>package</phase> |
80 | | - <goals> |
81 | | - <goal>single</goal> |
82 | | - </goals> |
83 | | - </execution> |
84 | | - </executions> |
85 | | - <configuration> |
86 | | - <appendAssemblyId>false</appendAssemblyId> |
87 | | - <descriptors> |
88 | | - <descriptor>src/assembly/binary-tarball.xml</descriptor> |
89 | | - </descriptors> |
90 | | - <tarLongFileMode>posix</tarLongFileMode> |
91 | | - </configuration> |
92 | | - </plugin> |
| 58 | + |
93 | 59 | <plugin> |
94 | 60 | <artifactId>maven-jar-plugin</artifactId> |
95 | | - <version>3.0.2</version> |
96 | 61 | <!-- http://stackoverflow.com/questions/13218313/unable-to-disable-generation-of-empty-jar-maven-jar-plugin --> |
97 | 62 | <executions> |
98 | 63 | <execution> |
|
101 | 66 | </execution> |
102 | 67 | </executions> |
103 | 68 | </plugin> |
| 69 | + |
| 70 | + <plugin> |
| 71 | + <artifactId>maven-source-plugin</artifactId> |
| 72 | + <configuration> |
| 73 | + <skipSource>true</skipSource> |
| 74 | + </configuration> |
| 75 | + </plugin> |
| 76 | + |
104 | 77 | <plugin> |
105 | | - <groupId>org.apache.maven.plugins</groupId> |
106 | 78 | <artifactId>maven-install-plugin</artifactId> |
107 | | - <version>2.5.1</version> |
108 | 79 | <configuration> |
109 | 80 | <skip>true</skip> |
110 | 81 | </configuration> |
111 | 82 | </plugin> |
| 83 | + |
112 | 84 | <plugin> |
113 | | - <groupId>org.apache.maven.plugins</groupId> |
114 | 85 | <artifactId>maven-deploy-plugin</artifactId> |
115 | | - <version>2.8.1</version> |
116 | 86 | <configuration> |
117 | 87 | <skip>true</skip> |
118 | 88 | </configuration> |
119 | 89 | </plugin> |
| 90 | + |
120 | 91 | </plugins> |
| 92 | + |
121 | 93 | </build> |
122 | 94 |
|
| 95 | + <profiles> |
| 96 | + |
| 97 | + <profile> |
| 98 | + <id>release</id> |
| 99 | + <build> |
| 100 | + <plugins> |
| 101 | + <plugin> |
| 102 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 103 | + <executions> |
| 104 | + <execution> |
| 105 | + <id>dependencies-javadoc</id> |
| 106 | + <phase>package</phase> |
| 107 | + <goals> |
| 108 | + <goal>jar</goal> |
| 109 | + </goals> |
| 110 | + <configuration> |
| 111 | + <includeDependencySources>true</includeDependencySources> |
| 112 | + </configuration> |
| 113 | + </execution> |
| 114 | + </executions> |
| 115 | + </plugin> |
| 116 | + <plugin> |
| 117 | + <artifactId>maven-assembly-plugin</artifactId> |
| 118 | + <executions> |
| 119 | + <execution> |
| 120 | + <id>assemble-binary-tarball</id> |
| 121 | + <phase>package</phase> |
| 122 | + <goals> |
| 123 | + <goal>single</goal> |
| 124 | + </goals> |
| 125 | + </execution> |
| 126 | + </executions> |
| 127 | + <configuration> |
| 128 | + <appendAssemblyId>false</appendAssemblyId> |
| 129 | + <descriptors> |
| 130 | + <descriptor>src/assembly/binary-tarball.xml</descriptor> |
| 131 | + </descriptors> |
| 132 | + <tarLongFileMode>posix</tarLongFileMode> |
| 133 | + </configuration> |
| 134 | + </plugin> |
| 135 | + <plugin> |
| 136 | + <groupId>org.sonatype.plugins</groupId> |
| 137 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 138 | + <configuration> |
| 139 | + <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo> |
| 140 | + </configuration> |
| 141 | + </plugin> |
| 142 | + </plugins> |
| 143 | + </build> |
| 144 | + </profile> |
| 145 | + |
| 146 | + </profiles> |
| 147 | + |
123 | 148 | </project> |
124 | 149 |
|
0 commit comments