Skip to content

Commit 38932fc

Browse files
author
Pavel Zavora
committed
feat: update mvn assembly to rename built package
1 parent f0cd5d7 commit 38932fc

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ The tool ignores missing tables and columns when importing the data.
66
## Quick Start
77
1. Java must be installed, 1.8 or newer
88
2. Install `jdbcimage` tool
9-
* download the latest [release](https://github.com/sranka/jdbcimage/releases) as `jdbcimage.tar.gz` or `jdbcimage.zip`, or build it from sources
10-
* mvn install, the same files appear in the `target` directory
11-
* `tar xvf jdbcimage.tar.gz` or `unzip jdbcimage.zip` in a directory of your choice,
12-
* the examples below assume that the directory `jdbcimage-${version}` is in your `PATH` environment variable
9+
* download the latest [release](https://github.com/sranka/jdbcimage/releases) as `jdbcimage-${version}.tar.gz` or `jdbcimage-${version}.zip`, or build it from sources
10+
* `tar xvf jdbcimage-${version}.tar.gz` or `unzip jdbcimage-${version}.zip` in a directory of your choice,
11+
* the examples below assume that the extracted directory `jdbcimage-${version}` is in your `PATH` environment variable
1312
* if you are using oracle database, copy its JDBC drivers to the lib directory
1413
3. Know how to connect to your database
1514
* *url* - JDBC connection URL, observe examples below

pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
44
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
55
<modelVersion>4.0.0</modelVersion>
6-
<groupId>com.github.sranka</groupId>
6+
<groupId>io.github.sranka</groupId>
77
<artifactId>jdbcimage</artifactId>
88
<version>0.9.2-SNAPSHOT</version>
99
<packaging>jar</packaging>
@@ -61,7 +61,7 @@
6161
<groupId>org.postgresql</groupId>
6262
<artifactId>postgresql</artifactId>
6363
<version>42.7.5</version>
64-
<scope>provided</scope>
64+
<scope>test</scope>
6565
</dependency>
6666
<dependency>
6767
<groupId>com.microsoft.sqlserver</groupId>
@@ -72,7 +72,7 @@
7272
</dependencies>
7373

7474
<build>
75-
<finalName>jdbcimage</finalName>
75+
<finalName>jdbcimage-${project.version}</finalName>
7676
<plugins>
7777
<plugin>
7878
<groupId>org.apache.maven.plugins</groupId>

src/main/assembly/component.xml

+9-7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
<scope>test</scope>
1313
<useStrictFiltering>true</useStrictFiltering>
1414
</dependencySet>
15+
<dependencySet>
16+
<useProjectArtifact>true</useProjectArtifact>
17+
<outputDirectory/>
18+
<includes>
19+
<include>io.github.sranka:jdbcimage:jar</include>
20+
</includes>
21+
<outputFileNameMapping>jdbcimage.jar</outputFileNameMapping>
22+
<useStrictFiltering>true</useStrictFiltering>
23+
</dependencySet>
1524
</dependencySets>
1625
<fileSets>
1726
<fileSet>
@@ -51,12 +60,5 @@
5160
</includes>
5261
<fileMode>644</fileMode>
5362
</fileSet>
54-
<fileSet>
55-
<directory>${project.build.directory}</directory>
56-
<outputDirectory/>
57-
<includes>
58-
<include>jdbcimage.jar</include>
59-
</includes>
60-
</fileSet>
6163
</fileSets>
6264
</component>

0 commit comments

Comments
 (0)