Closed antsch01 closed 1 month ago
It looks like you're using a maven plugin, maven-default-http-blocker, that's not used by JHipster anymore. Can you try removing it and see if that helps?
It looks like you're using a maven plugin, maven-default-http-blocker, that's not used by JHipster anymore. Can you try removing it and see if that helps?
Hi mraible,
thank for reply. I updated settings.xml with this mirror
<mirror>
<id>maven-default-http-blocker</id>
<!--<mirrorOf>external:http:*</mirrorOf>-->
<mirrorOf>external:http:*,!repository.jboss.org,!snapshots.jboss.org,!oss.sonatype.org/jboss-snapshots</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>true</blocked>
</mirror>
when run mxnw -X http blocker log is removed but the error is present:
[INFO] [INFO] --- checksum-maven-plugin:1.11:files (create-pre-compiled-webapp-checksum) @ bookingferries --- [DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=163200, ConflictMarker.markTime=77200, ConflictMarker.nodeCount=79, ConflictIdSorter.graphTime=83800, ConflictIdSorter.topsortTime=33700, ConflictIdSorter.conflictIdCount=29, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=508000, ConflictResolver.conflictItemCount=70, DefaultDependencyCollector.collectTime=96611900, DefaultDependencyCollector.transformTime=926800} [DEBUG] net.nicoulaj.maven.plugins:checksum-maven-plugin:jar:1.11 [DEBUG] org.bouncycastle:bcprov-jdk15on:jar:1.69:compile [DEBUG] org.apache.maven.shared:maven-common-artifact-filters:jar:3.2.0:compile [DEBUG] org.apache.maven:maven-artifact:jar:3.1.1:provided (scope managed from default) (version managed from default) [DEBUG] org.codehaus.plexus:plexus-utils:jar:3.0.15:provided [DEBUG] org.apache.maven:maven-model:jar:3.1.1:provided (scope managed from default) (version managed from default) [DEBUG] org.apache.maven:maven-core:jar:3.1.1:provided (scope managed from default) (version managed from default) [DEBUG] org.apache.maven:maven-settings:jar:3.1.1:provided [DEBUG] org.apache.maven:maven-settings-builder:jar:3.1.1:provided [DEBUG] org.apache.maven:maven-repository-metadata:jar:3.1.1:provided [DEBUG] org.apache.maven:maven-model-builder:jar:3.1.1:provided [DEBUG] org.apache.maven:maven-aether-provider:jar:3.1.1:provided [DEBUG] org.eclipse.aether:aether-spi:jar:0.9.0.M2:provided [DEBUG] org.eclipse.aether:aether-impl:jar:0.9.0.M2:provided [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.19:provided [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.5.1:provided [DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:provided [DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:provided [DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:provided [DEBUG] org.apache.maven:maven-plugin-api:jar:3.1.1:provided (scope managed from default) (version managed from default) [DEBUG] commons-io:commons-io:jar:2.6:compile [DEBUG] org.eclipse.aether:aether-api:jar:0.9.0.M2:provided (scope managed from default) (version managed from default) [DEBUG] org.eclipse.aether:aether-util:jar:0.9.0.M2:provided (scope managed from default) (version managed from default) [DEBUG] org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.4:provided (scope managed from default) (version managed from default) [DEBUG] javax.enterprise:cdi-api:jar:1.0:provided [DEBUG] javax.annotation:jsr250-api:jar:1.0:provided [DEBUG] javax.inject:javax.inject:jar:1:provided [DEBUG] org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.4:provided [DEBUG] org.apache.maven.shared:maven-shared-utils:jar:3.3.4:compile [DEBUG] Created new class realm plugin>net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11 [DEBUG] Importing foreign packages into class realm plugin>net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11 [DEBUG] Included: net.nicoulaj.maven.plugins:checksum-maven-plugin:jar:1.11 [DEBUG] Included: org.bouncycastle:bcprov-jdk15on:jar:1.69 [DEBUG] Included: org.apache.maven.shared:maven-common-artifact-filters:jar:3.2.0 [DEBUG] Included: commons-io:commons-io:jar:2.6 [DEBUG] Included: org.apache.maven.shared:maven-shared-utils:jar:3.3.4 [DEBUG] Configuring mojo net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11:files from plugin realm ClassRealm[plugin>net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11, parent: java.net.URLClassLoader@50f8360d] [DEBUG] Configuring mojo 'net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11:files' with basic configurator --> [DEBUG] (f) algorithms = [SHA-1] [DEBUG] (f) attachChecksums = false [DEBUG] (f) csvSummary = true [DEBUG] (f) csvSummaryFile = checksums.csv [DEBUG] (f) encoding = UTF-8 [DEBUG] (f) failIfNoFiles = false [DEBUG] (f) failOnError = false [DEBUG] (s) directory = C:\personal-dev\bookingferries [DEBUG] (s) includes = [src/main/webapp//., target/classes/static//., package-lock.json, package.json, webpack/., tsconfig.json, tsconfig.app.json] [DEBUG] (s) excludes = [/app//service-worker.js, /app//vendor.css] [DEBUG] (f) fileSets = [FileSet {directory: C:\personal-dev\bookingferries, PatternSet [includes: {src/main/webapp//., target/classes/static//., package-lock.json, package.json, webpack/., tsconfig.json, tsconfig.app.json}, excludes: {/app//service-worker.js, /app//vendor.css}]}] [DEBUG] (f) includeRelativePath = true [DEBUG] (f) individualFiles = false [DEBUG] (f) project = MavenProject: com.booking.ferries:bookingferries:0.0.1-SNAPSHOT @ C:\personal-dev\bookingferries\pom.xml [DEBUG] (f) quiet = true [DEBUG] (f) shasumSummary = false [DEBUG] (f) shasumSummaryFile = checksums.sha [DEBUG] (f) xmlSummary = false [DEBUG] (f) xmlSummaryFile = checksums.xml [DEBUG] -- end configuration --
We haven't heard from anyone else having this issue, so I believe it's caused by your settings.xml
. If you remove it, do things still work? If you're blocked by a corporate firewall, can you tether to your phone and see if it fixes it?
I removed settings.xml under this path
C:\Users\antonio.schettino.m2\wrapper\dists\apache-maven-3.8.6-bin\67568434\apache-maven-3.8.6
C:\personal-dev\bookingferries>mvnw -X
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: C:\Users\antonio.schettino.m2\wrapper\dists\apache-maven-3.8.6-bin\67568434\apache-maven-3.8.6
Java version: 11.0.21, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"
the error is present yet.
I don’t know where else to look. If it were a connection issue, I shouldn’t have seen an error in the mvnw stack trace. I tried also with my phone and private home connection
I was facing this issue. It due to package.json. Below is my package.json.
{
"name": "dentalmanagement",
"version": "2024.1.0",
"private": true,
"description": "Description for Dentalmanagement",
"license": "UNLICENSED",
"scripts": {
"app:start": "mvnw",
"app:up": "docker compose -f src/main/docker/app.yml up --wait",
"backend:build-cache": "mvnw dependency:go-offline -ntp",
......
"webapp:build:prod": "ng build --configuration production",
"webapp:dev": "ng serve --port -o",
"webapp:dev-ssl": "ng serve --ssl",
"webapp:dev-verbose": "ng serve --verbose",
"webapp:prod": "npm run clean-www && npm run webapp:build:prod",
"webapp:test": "npm run test --"
},
"config": {
"backend_port": 8080,
"default_environment": "prod",
"packaging": "jar"
},
"dependencies": {
"@angular/animations": "17.3.6",
"@angular/cdk": "17.3.6",
"@angular/common": "17.3.6",
"@angular/compiler": "17.3.6",
"@angular/core": "17.3.6",
"@angular/forms": "17.3.6",
...
"dentalmanagement": "file:",
"diff-match-patch-ts": "^0.5.1",
"tslib": "2.6.2",
"zone.js": "0.14.4"
},
"devDependencies": {
....
},
"engines": {
"node": ">=20.12.2"
},
"cacheDirectories": [
"node_modules"
],
"overrides": {
"browser-sync": "3.0.2",
"webpack": "5.91.0"
}
}
Angular automatic add "dentalmanagement": "file:", inside my dependencies. I removed this, and it works. You can check your package.json if it contain project name inside dependencies.
Any solution ? "dentalmanagement": "file:", when i remove this from package.json he come back in seconds, how take it off definitely ? I took off the plugin for now, works fine
Any solution ? "dentalmanagement": "file:", when i remove this from package.json he come back in seconds, how take it off definitely ? I took off the plugin for now, works fine
I update my local jhipster an tryed on a clean project, same problem!
Only works without this plugin
<!-- <plugin>
<groupId>net.nicoulaj.maven.plugins</groupId>
<artifactId>checksum-maven-plugin</artifactId>
<version>${checksum-maven-plugin.version}</version>
<executions>
<execution>
<id>create-pre-compiled-webapp-checksum</id>
<goals>
<goal>files</goal>
</goals>
<phase>generate-resources</phase>
</execution>
<execution>
<id>create-compiled-webapp-checksum</id>
<goals>
<goal>files</goal>
</goals>
<phase>compile</phase>
<configuration>
<csvSummaryFile>checksums.csv.old</csvSummaryFile>
</configuration>
</execution>
</executions>
<configuration>
<fileSets>
<fileSet>
<directory>${project.basedir}</directory>
<includes>
<include>src/main/webapp/**/*.*</include>
<include>target/classes/static/**/*.*</include>
<include>package-lock.json</include>
<include>package.json</include>
<include>tsconfig.json</include>
<include>.postcss.config.js</include>
<include>webpack/*.*</include>
</includes>
<excludes>
<exclude>**/app/**/service-worker.js</exclude>
<exclude>**/app/**/vendor.css</exclude>
</excludes>
</fileSet>
</fileSets>
<failOnError>false</failOnError>
<failIfNoFiles>false</failIfNoFiles>
<individualFiles>false</individualFiles>
<algorithms>
<algorithm>SHA-1</algorithm>
</algorithms>
<includeRelativePath>true</includeRelativePath>
<quiet>true</quiet>
</configuration>
</plugin> -->
I was facing this issue. It due to package.json. Below is my package.json.
{ "name": "dentalmanagement", "version": "2024.1.0", "private": true, "description": "Description for Dentalmanagement", "license": "UNLICENSED", "scripts": { "app:start": "mvnw", "app:up": "docker compose -f src/main/docker/app.yml up --wait", "backend:build-cache": "mvnw dependency:go-offline -ntp", ...... "webapp:build:prod": "ng build --configuration production", "webapp:dev": "ng serve --port -o", "webapp:dev-ssl": "ng serve --ssl", "webapp:dev-verbose": "ng serve --verbose", "webapp:prod": "npm run clean-www && npm run webapp:build:prod", "webapp:test": "npm run test --" }, "config": { "backend_port": 8080, "default_environment": "prod", "packaging": "jar" }, "dependencies": { "@angular/animations": "17.3.6", "@angular/cdk": "17.3.6", "@angular/common": "17.3.6", "@angular/compiler": "17.3.6", "@angular/core": "17.3.6", "@angular/forms": "17.3.6", ... "dentalmanagement": "file:", "diff-match-patch-ts": "^0.5.1", "tslib": "2.6.2", "zone.js": "0.14.4" }, "devDependencies": { .... }, "engines": { "node": ">=20.12.2" }, "cacheDirectories": [ "node_modules" ], "overrides": { "browser-sync": "3.0.2", "webpack": "5.91.0" } }
Angular automatic add "dentalmanagement": "file:", inside my dependencies. I removed this, and it works. You can check your package.json if it contain project name inside dependencies.
I tried to remove this... dependency? It's appearing on its own, where does this come from?
Hey @OAllanFernando, I had a similar issue with the dependency "projectname": "file:" being auto-added to package.json. Updating my IDE to the latest version fixed it - could be worth a shot!
After multiple attempts, I finally solved the checksum issue by following these steps:
I hope this helps!
I will try, come back after test.
It’s a v7 issue which is not maintained anymore. Closing.
Overview of the issue
"I've resumed working on a JHipster project after a few months, and when I run the mvnw command, the process gets stuck at the following step:
[INFO] --- checksum-maven-plugin:1.11:files (create-pre-compiled-webapp-checksum) @ bookingferries --- [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for repository.jboss.org (http://repository.jboss.org/maven2). [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for snapshots.jboss.org (http://snapshots.jboss.org/maven2). [DEBUG] Using mirror maven-default-http-blocker (http://0.0.0.0/) for oss.sonatype.org/jboss-snapshots (http://oss.sonatype.org/content/repositories/jboss-snapshots). [DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=128300, ConflictMarker.markTime=61800, ConflictMarker.nodeCount=79, ConflictIdSorter.graphTime=66600, ConflictIdSorter.topsortTime=27099, ConflictIdSorter.conflictIdCount=29, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=393800, ConflictResolver.conflictItemCount=70, DefaultDependencyCollector.collectTime=73397601, DefaultDependencyCollector.transformTime=728200} [DEBUG] net.nicoulaj.maven.plugins:checksum-maven-plugin:jar:1.11 [DEBUG] org.bouncycastle:bcprov-jdk15on:jar:1.69:compile [DEBUG] org.apache.maven.shared:maven-common-artifact-filters:jar:3.2.0:compile [DEBUG] org.apache.maven:maven-artifact:jar:3.1.1:provided (scope managed from default) (version managed from default) [DEBUG] org.codehaus.plexus:plexus-utils:jar:3.0.15:provided [DEBUG] org.apache.maven:maven-model:jar:3.1.1:provided (scope managed from default) (version managed from default) [DEBUG] org.apache.maven:maven-core:jar:3.1.1:provided (scope managed from default) (version managed from default) [DEBUG] org.apache.maven:maven-settings:jar:3.1.1:provided [DEBUG] org.apache.maven:maven-settings-builder:jar:3.1.1:provided [DEBUG] org.apache.maven:maven-repository-metadata:jar:3.1.1:provided [DEBUG] org.apache.maven:maven-model-builder:jar:3.1.1:provided [DEBUG] org.apache.maven:maven-aether-provider:jar:3.1.1:provided [DEBUG] org.eclipse.aether:aether-spi:jar:0.9.0.M2:provided [DEBUG] org.eclipse.aether:aether-impl:jar:0.9.0.M2:provided [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.19:provided [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.5.1:provided [DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:provided [DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:provided [DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:provided [DEBUG] org.apache.maven:maven-plugin-api:jar:3.1.1:provided (scope managed from default) (version managed from default) [DEBUG] commons-io:commons-io:jar:2.6:compile [DEBUG] org.eclipse.aether:aether-api:jar:0.9.0.M2:provided (scope managed from default) (version managed from default) [DEBUG] org.eclipse.aether:aether-util:jar:0.9.0.M2:provided (scope managed from default) (version managed from default) [DEBUG] org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.4:provided (scope managed from default) (version managed from default) [DEBUG] javax.enterprise:cdi-api:jar:1.0:provided [DEBUG] javax.annotation:jsr250-api:jar:1.0:provided [DEBUG] javax.inject:javax.inject:jar:1:provided [DEBUG] org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.4:provided [DEBUG] org.apache.maven.shared:maven-shared-utils:jar:3.3.4:compile [DEBUG] Created new class realm plugin>net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11 [DEBUG] Importing foreign packages into class realm plugin>net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11 [DEBUG] Included: net.nicoulaj.maven.plugins:checksum-maven-plugin:jar:1.11 [DEBUG] Included: org.bouncycastle:bcprov-jdk15on:jar:1.69 [DEBUG] Included: org.apache.maven.shared:maven-common-artifact-filters:jar:3.2.0 [DEBUG] Included: commons-io:commons-io:jar:2.6 [DEBUG] Included: org.apache.maven.shared:maven-shared-utils:jar:3.3.4 [DEBUG] Configuring mojo net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11:files from plugin realm ClassRealm[plugin>net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11, parent: java.net.URLClassLoader@50f8360d] [DEBUG] Configuring mojo 'net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11:files' with basic configurator --> [DEBUG] (f) algorithms = [SHA-1] [DEBUG] (f) attachChecksums = false [DEBUG] (f) csvSummary = true [DEBUG] (f) csvSummaryFile = checksums.csv [DEBUG] (f) encoding = UTF-8 [DEBUG] (f) failIfNoFiles = false [DEBUG] (f) failOnError = false [DEBUG] (s) directory = C:\personal-dev\bookingferries [DEBUG] (s) includes = [src/main/webapp//., target/classes/static//., package-lock.json, package.json, webpack/., tsconfig.json, tsconfig.app.json] [DEBUG] (s) excludes = [/app//service-worker.js, /app//vendor.css] [DEBUG] (f) fileSets = [FileSet {directory: C:\personal-dev\bookingferries, PatternSet [includes: {src/main/webapp//., target/classes/static//., package-lock.json, package.json, webpack/., tsconfig.json, tsconfig.app.json}, excludes: {/app//service-worker.js, /app//vendor.css}]}] [DEBUG] (f) includeRelativePath = true [DEBUG] (f) individualFiles = false [DEBUG] (f) project = MavenProject: com.booking.ferries:bookingferries:0.0.1-SNAPSHOT @ C:\personal-dev\bookingferries\pom.xml [DEBUG] (f) quiet = true [DEBUG] (f) shasumSummary = false [DEBUG] (f) shasumSummaryFile = checksums.sha [DEBUG] (f) xmlSummary = false [DEBUG] (f) xmlSummaryFile = checksums.xml [DEBUG] -- end configuration --
Motivation for or Use Case
Build is stuck
Reproduce the error
run the command mvnw -X
Related issues
Suggest a Fix
I removed the plugin from pom.xml
and build works fine. But I would like not remove it, because out of box it is present in the pom.xml generated by jhipster.
JHipster Version(s)
7.9.3
JHipster configuration
INFO! Switching to JHipster installed locally in current project's node repository (node_modules) (node:3820) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./lib/util/" in the "exports" field module resolution of the package at C:\personal-dev\bookingferries\node_modules\yeoman-environment\package.json. Update this package.json to use a subpath pattern like "./lib/util/*". (Use
node --trace-deprecation ...
to show where the warning was created)██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║ ╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗ ╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝ https://www.jhipster.tech Welcome to JHipster v7.9.3
Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
Environment and Tools
openjdk version "17.0.10" 2024-01-16 OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7) OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode, sharing)
git version 2.41.0.windows.1
node: v16.20.1
npm: 8.19.4
No change to package.json was detected. No package manager install will be executed. Congratulations, JHipster execution is complete! Sponsored with ❤️ by @oktadev.
To provide all information we need, you should run
jhipster info
in the project root folder (or workspaces root for microservices), and copy/paste the result here.jhipster info
removes sentitive information like rememberKey, jwtSecretKey. Double check if there is any other sensitive info.As alternative you can add a JDL wrapped in below structure
JDL definitions
The information is mandatory for bug reports. This will allow us to use automated tests and genarate the broken sample using
jhipster from-issue
command.Browsers and Operating System