Skip to content

Commit

Permalink
Use LMP for copyDeps in package
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Kurz <[email protected]>
  • Loading branch information
scottkurz committed Feb 20, 2024
1 parent 77cdfa5 commit e0fb51f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion finish/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ COPY --chown=1001:0 \
/config/apps

COPY --chown=1001:0 \
target/liberty/wlp/usr/shared/resources/*.jar \
target/liberty/wlp/usr/shared/resources/postgresql-*.jar \
/opt/ol/wlp/usr/shared/resources/

USER 1001
Expand Down
19 changes: 7 additions & 12 deletions finish/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,25 +111,21 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.6.1</version>
</plugin>
<!-- end::maven-dependency-plugin[] -->
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.10</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
<goal>create</goal>
</goals>
<configuration>
<includeGroupIds>org.postgresql</includeGroupIds>
<includeArtifactIds>postgresql</includeArtifactIds>
<outputDirectory>${project.build.directory}/liberty/wlp/usr/shared/resources</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- end::maven-dependency-plugin[] -->
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<configuration>
<copyDependencies>
<dependencyGroup>
Expand All @@ -141,7 +137,6 @@
</dependencyGroup>
</copyDependencies>
</configuration>
<version>3.10</version>
</plugin>
<!-- tag::failsafe[] -->
<plugin>
Expand Down

0 comments on commit e0fb51f

Please sign in to comment.