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

Fabric8 d-m-p for containerized build #775

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mrizzi
Copy link
Member

@mrizzi mrizzi commented Mar 8, 2022

Execute mvn docker:start -N
Add the -Ddocker.host=unix:///run/user/1000/podman/podman.sockoption to provide the Docker host value in case it's requested.

@agoncal
Copy link
Contributor

agoncal commented Mar 8, 2022

When running mvn docker:start -N I get the following error:

[INFO] --- docker-maven-plugin:0.39.1:start (default-cli) @ windup-web-parent ---
[INFO] DOCKER> [quay.io/mrizzi/windup-builder:20220307182148CET]: Start container ce11bb88e16a
Container build::[ERROR] Error executing Maven.
Container build::[ERROR] The specified user settings file does not exist: /Users/agoncal/.m2/settings.xml
[ERROR] DOCKER> [quay.io/mrizzi/windup-builder:20220307182148CET]: Container stopped with exit code 1 unexpectedly after 1041 ms while waiting on log out 'Finished at:'
[ERROR] DOCKER> Error occurred during container startup, shutting down...
[INFO] DOCKER> [quay.io/mrizzi/windup-builder:20220307182148CET]: Stop and removed container ce11bb88e16a after 0 ms
[ERROR] DOCKER> I/O Error [[quay.io/mrizzi/windup-builder:20220307182148CET]: Container stopped with exit code 1 unexpectedly after 1041 ms while waiting on log out 'Finished at:']
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

So I tried with mvn --settings settings.xml docker:start -N but get the same

Instead, use this command line in the pom.xml:

<cmd>mvn --settings /${project.artifactId}/settings.xml -Dmaven.repo.local=${user.home}/.m2/repository ${build.args} -f /${project.artifactId}</cmd>

@agoncal
Copy link
Contributor

agoncal commented Mar 9, 2022

Building "Windup Web - Generate TS Models" fails.

Container build::[INFO] -----------< org.jboss.windup.web.ui:windup-web-ui-tsmodels >-----------

Container build::[INFO] Building Windup Web - Generate TS Models 5.3.0-SNAPSHOT          [17/23]
Container build::[INFO] --------------------------------[ jar ]---------------------------------

Container build::[INFO] --- windup-tsmodelsgen-maven-plugin:5.3.0-SNAPSHOT:tsmodelgen (generateTSmodels) @ windup-web-ui-tsmodels ---

Container build::WARNING: Service class not enabled due to underlying classloading error. This may happen if the class is not yet loaded by Furnace. If this is unexpected, enable DEBUG logging to see the full stack trace: java.lang.NoClassDefFoundError: Failed to link org/jboss/forge/addon/resource/converter/DirectoryResourceConverterGenerator (Module "org.jboss.forge.addon.resources:3.9.2.Final_d9a517d9-423f-4dc6-8b72-935879fc5c3b" from AddonModuleLoader): org/jboss/forge/addon/convert/ConverterGenerator

Container build::WARNING: Service class not enabled due to underlying classloading error. This may happen if the class is not yet loaded by Furnace. If this is unexpected, enable DEBUG logging to see the full stack trace: java.lang.IllegalArgumentException: name is empty
Container build::[ERROR]
Container build::java.lang.RuntimeException: org.eclipse.aether.resolution.DependencyResolutionException: Failure to find org.jboss.windup.config:windup-config-impl:jar:5.3.0-SNAPSHOT in https://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

Container build::Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Failure to find org.jboss.windup.config:windup-config-impl:jar:5.3.0-SNAPSHOT in https://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

And when I clean my local M2 repo I get :

Container build::Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact org.jboss.windup.config:windup-config-impl:jar:5.3.0-SNAPSHOT in central (https://repo1.maven.org/maven2)

@agoncal
Copy link
Contributor

agoncal commented Mar 9, 2022

When building the entire project, unpacking mta-cli-5.3.0-SNAPSHOT-offline.zip takes a lot of time. It refrains from building several times the app

Container build::[INFO] --------------< org.jboss.windup.web:windup-web-executor >--------------
Container build::[INFO] Building Windup Web - Executor 5.3.0-SNAPSHOT                    [14/23]
Container build::[INFO] --------------------------------[ jar ]---------------------------------
Container build::[INFO]
Container build::[INFO] --- maven-dependency-plugin:3.1.1:unpack (unpack-windup-dist) @ windup-web-executor ---
Container build::[INFO] Configured Artifact: org.jboss.windup:mta-cli:offline:5.3.0-SNAPSHOT:zip
Container build::[INFO] Unpacking /Users/agoncal/.m2/repository/org/jboss/windup/mta-cli/5.3.0-SNAPSHOT/mta-cli-5.3.0-SNAPSHOT-offline.zip to /windup-web-parent/executor/target/classes with includes "" and excludes ""

@mrizzi
Copy link
Member Author

mrizzi commented Mar 9, 2022

Building "Windup Web - Generate TS Models" fails.

Container build::[INFO] -----------< org.jboss.windup.web.ui:windup-web-ui-tsmodels >-----------

Container build::[INFO] Building Windup Web - Generate TS Models 5.3.0-SNAPSHOT          [17/23]
Container build::[INFO] --------------------------------[ jar ]---------------------------------

Container build::[INFO] --- windup-tsmodelsgen-maven-plugin:5.3.0-SNAPSHOT:tsmodelgen (generateTSmodels) @ windup-web-ui-tsmodels ---

Container build::WARNING: Service class not enabled due to underlying classloading error. This may happen if the class is not yet loaded by Furnace. If this is unexpected, enable DEBUG logging to see the full stack trace: java.lang.NoClassDefFoundError: Failed to link org/jboss/forge/addon/resource/converter/DirectoryResourceConverterGenerator (Module "org.jboss.forge.addon.resources:3.9.2.Final_d9a517d9-423f-4dc6-8b72-935879fc5c3b" from AddonModuleLoader): org/jboss/forge/addon/convert/ConverterGenerator

Container build::WARNING: Service class not enabled due to underlying classloading error. This may happen if the class is not yet loaded by Furnace. If this is unexpected, enable DEBUG logging to see the full stack trace: java.lang.IllegalArgumentException: name is empty
Container build::[ERROR]
Container build::java.lang.RuntimeException: org.eclipse.aether.resolution.DependencyResolutionException: Failure to find org.jboss.windup.config:windup-config-impl:jar:5.3.0-SNAPSHOT in https://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

Container build::Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Failure to find org.jboss.windup.config:windup-config-impl:jar:5.3.0-SNAPSHOT in https://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

And when I clean my local M2 repo I get :

Container build::Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact org.jboss.windup.config:windup-config-impl:jar:5.3.0-SNAPSHOT in central (https://repo1.maven.org/maven2)

commit 40eeead fixes it

@agoncal
Copy link
Contributor

agoncal commented Mar 11, 2022

@mrizzi I've just tested building with the frontend-maven-plugin: works on my machine ! I have tried using Node 17 installed globally and executing a mvn install. Works great

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

Successfully merging this pull request may close these issues.

2 participants