Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on 3-amazoncorretto-11-alpine docker container fails due to ant tasks being deprecated #570

Open
owenh28 opened this issue Nov 19, 2024 · 0 comments

Comments

@owenh28
Copy link

owenh28 commented Nov 19, 2024

Describe the bug
Maven fails to build project, returns this error:

30.25 [WARNING]  Parameter 'tasks' is deprecated: Use {@link #target} instead. For version 3.0.0, this parameter is only defined to break the build if
30.25             you use it!
30.25 [INFO] ------------------------------------------------------------------------
30.25 [INFO] BUILD FAILURE
30.25 [INFO] ------------------------------------------------------------------------
30.25 [INFO] Total time:  27.815 s
30.25 [INFO] Finished at: 2024-11-19T18:18:59Z
30.25 [INFO] ------------------------------------------------------------------------
30.25 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:3.1.0:run (default) on project geoportal: You are using 'tasks' which has been removed from the maven-antrun-plugin. Please use 'target' and refer to the >>Major Version Upgrade to version 3.0.0<< on the plugin site. -> [Help 1]
30.25 [ERROR] 
30.25 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
30.25 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
30.25 [ERROR] 
30.25 [ERROR] For more information about the errors and possible solutions, please read the following articles:
30.25 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

To Reproduce
Steps to reproduce the behavior:

  1. Top section of dockerfile contains:
FROM maven:3-amazoncorretto-11-alpine AS gptbuild

MAINTAINER David Valentine [email protected]

# Install geoportal web application
ENV GPTGITURL=https://github.com/esri/geoportal-server-catalog.git

WORKDIR /tmp
RUN apk add git
RUN git clone ${GPTGITURL} geoportal-server-catalog
WORKDIR /tmp/geoportal-server-catalog/geoportal/src/main/resources/config
#ENV HARVESTER_CONFIG_DIR=/tmp/harvester/geoportal-application/geoportal-harvester-war/src/main/resources/config/
COPY config/geoportal/ .
#COPY config/harvester/app-security_harvester.xml app-security.xml
#RUN ls -al /tmp/geoportal-server-catalog/geoportal/src/main/resources/config/
WORKDIR /tmp/geoportal-server-catalog/geoportal
RUN mvn package -DskipTests
  1. Run docker compose build
  2. Build fails

Expected behavior
Build succeeds and moves on to building the harvester application.

Desktop (please complete the following information):

  • OS: AlmaLinux 9.3
  • Docker Version information:
Client: Docker Engine - Community
 Version:           27.3.1
 API version:       1.47
 Go version:        go1.22.7
 Git commit:        ce12230
 Built:             Fri Sep 20 11:43:04 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          27.3.1
  API version:      1.47 (minimum version 1.24)
  Go version:       go1.22.7
  Git commit:       41ca978
  Built:            Fri Sep 20 11:41:21 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.22
  GitCommit:        7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c
 runc:
  Version:          1.1.14
  GitCommit:        v1.1.14-0-g2c9f560
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Docker Compose version v2.29.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant