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

mvnw is stuck -> checksum-maven-plugin:1.11:files (create-pre-compiled-webapp-checksum) #27332

Closed
1 task done
antsch01 opened this issue Sep 19, 2024 · 12 comments
Closed
1 task done

Comments

@antsch01
Copy link

antsch01 commented Sep 19, 2024

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

                    <groupId>net.nicoulaj.maven.plugins</groupId>
                    <artifactId>checksum-maven-plugin</artifactId>
                    <version>${checksum-maven-plugin.version}</version>

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)
[email protected] C:\personal-dev\bookingferries
├─┬ [email protected] -> .\
│ └── [email protected] deduped
└── [email protected]

JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "generator-jhipster": {
    "applicationType": "monolith",
    "authenticationType": "jwt",
    "baseName": "bookingferries",
    "blueprints": [],
    "buildTool": "maven",
    "cacheProvider": "ehcache",
    "clientFramework": "angularX",
    "clientPackageManager": "npm",
    "clientTheme": "none",
    "clientThemeVariant": "",
    "creationTimestamp": 1714496000788,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "devServerPort": 4200,
    "dtoSuffix": "DTO",
    "enableGradleEnterprise": false,
    "enableHibernateCache": true,
    "enableSwaggerCodegen": true,
    "enableTranslation": true,
    "entities": [
      "Port",
      "Company",
      "System",
      "Reservation",
      "ReservationRoute",
      "ReservationTicket",
      "Route",
      "RouteCompany",
      "SearchResult",
      "GlobalSettings",
      "CertusOrder",
      "Vendor",
      "Affiliation",
      "Agency"
    ],
    "entitySuffix": "",
    "herokuAppName": "bookingferries",
    "herokuDeployType": "git",
    "herokuJavaVersion": "11",
    "jhiPrefix": "jhi",
    "jhipsterVersion": "7.9.3",
    "jwtSecretKey": "YourJWTSecretKeyWasReplacedByThisMeaninglessTextByTheJHipsterInfoCommandForObviousSecurityReasons",
    "languages": ["it", "en"],
    "lastLiquibaseTimestamp": 1715434823000,
    "messageBroker": false,
    "microfrontend": false,
    "microfrontends": [],
    "nativeLanguage": "it",
    "otherModules": [],
    "packageName": "com.booking.ferries",
    "pages": [],
    "prodDatabaseType": "postgresql",
    "reactive": false,
    "searchEngine": false,
    "serverPort": "8080",
    "serverSideOptions": ["enableSwaggerCodegen:true"],
    "serviceDiscoveryType": "no",
    "skipCheckLengthOfIdentifier": false,
    "skipClient": false,
    "skipFakeData": false,
    "skipUserManagement": false,
    "testFrameworks": [],
    "websocket": false,
    "withAdminUi": true
  }
}
JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions
entity Port {
  name String unique required
  code String unique required
}
entity Company {
  name String unique required
  code String unique required
  active Boolean
  service String unique required
  systemIntegration String
  termConditionLink String
  maxAgeEnfant Integer required
  maxAgeChildren Integer required
  maxLuggageDimension String
  maxLuggageWeightInKG Integer
}
entity System {
  name String required unique
  taxPreview BigDecimal required
  expirationReservationInMinutes Integer
  channel Channel
}
entity Reservation {
  code String unique required
  dateCreated ZonedDateTime
  dateSubmitted ZonedDateTime
  dateExpiration ZonedDateTime
  contactMail String
  contactPhone String
  contactName String
  contactSurname String
  initialPrice BigDecimal
  taxPreview BigDecimal
  finalPrice BigDecimal
  status ReservationStatus
  paymentMode PaymentMode
}
entity ReservationRoute {
  codeCompany String
  dateDeparture ZonedDateTime
  dateArrivee ZonedDateTime
  jsonCompany TextBlob
  ticketsJsonCompany TextBlob
  priceInitial BigDecimal
  tax BigDecimal
  priceFinal BigDecimal
  priceReturned BigDecimal
  status ReservationRouteStatus
}
entity ReservationTicket {
  qty Integer
  description String
  price BigDecimal
  tariffCode String
}
entity Route
entity RouteCompany {
  active Boolean
  json String
}
entity SearchResult {
  json String
  created ZonedDateTime
  dateDeparture ZonedDateTime
  dateArrive ZonedDateTime
  price BigDecimal
}
entity GlobalSettings {
  name String unique required
  valore String
}
entity CertusOrder {
  code String unique required
  dateIssue ZonedDateTime required
  status CertusOrderStatus
  dateCancelled ZonedDateTime
}
entity Vendor {
  name String
  taxPreview BigDecimal required
}
entity Affiliation {
  name String
  code String
}
entity Agency {
  ragSoc String unique
  email String unique
  piva String
}
enum Channel {
  TOTEM,
  ONLINE
}
enum ReservationStatus {
  CREATED,
  RESERVED,
  SUBMITTED,
  SUBMITTED_FAILED
}
enum PaymentMode {
  CREDIT_CARD,
  PAYPAL,
  SCALAPAY,
  EXTERNAL_PAYMENT
}
enum ReservationRouteStatus {
  SUBMITTED,
  SUBMITTED_FAILED,
  CANCELLED
}
enum CertusOrderStatus {
  TICKETED,
  SUBMITTED,
  CANCELLED,
  CANCELLED_FAILED
}

relationship OneToOne {
  System{user(login) required} to User
  Reservation{departureRoute required} to ReservationRoute
  Reservation{returnRoute} to ReservationRoute
  Vendor{user(login) required} to User
  Vendor{agency(ragSoc) required} to Agency
  Affiliation{user(login) required} to User
  Affiliation{agency(ragSoc) required} to Agency
}
relationship OneToMany {
  ReservationRoute{tickets} to ReservationTicket{reservationRoute required}
}
  Affiliation{user(login) required} to User
  Affiliation{agency(ragSoc) required} to Agency
}
relationship OneToMany {
  ReservationRoute{tickets} to ReservationTicket{reservationRoute required}
}
relationship ManyToOne {
  Reservation{vendor(name)} to Vendor
  Reservation{affiliation(name)} to Affiliation
relationship ManyToOne {
  Reservation{vendor(name)} to Vendor
  Reservation{affiliation(name)} to Affiliation
  ReservationRoute{portDeparture(name) required} to Port
  ReservationRoute{portArrivee(name) required} to Port
  ReservationRoute{company(name) required} to Company
  ReservationRoute{portDeparture(name) required} to Port
  ReservationRoute{portArrivee(name) required} to Port
  ReservationRoute{company(name) required} to Company
  Route{from(name) required} to Port
  Route{to(name) required} to Port
  RouteCompany{route required} to Route
  Route{from(name) required} to Port
  Route{to(name) required} to Port
  RouteCompany{route required} to Route
  RouteCompany{company(name) required} to Company
  SearchResult{from(name) required} to Port
  SearchResult{to(name) required} to Port
  RouteCompany{company(name) required} to Company
  SearchResult{from(name) required} to Port
  SearchResult{to(name) required} to Port
  SearchResult{company(name) required} to Company
  CertusOrder{company(name) required} to Company
}

  SearchResult{company(name) required} to Company
  CertusOrder{company(name) required} to Company
}

dto Port, Company, System, Reservation, ReservationRoute, ReservationTicket, Route, RouteCompany, SearchResult, GlobalSettings, CertusOrder, Vendor, Affiliation, Agency with mapstruct
paginate Port, Company, System, Reservation, ReservationRoute, ReservationTicket, Route, RouteCompany, SearchResult, GlobalSettings, CertusOrder, Vendor, Affiliation, Agency with pagination
dto Port, Company, System, Reservation, ReservationRoute, ReservationTicket, Route, RouteCompany, SearchResult, GlobalSettings, CertusOrder, Vendor, Affiliation, Agency with mapstruct
paginate Port, Company, System, Reservation, ReservationRoute, ReservationTicket, Route, RouteCompany, SearchResult, GlobalSettings, CertusOrder, Vendor, Affiliation, Agency with pagination
service Port, Company, System, Reservation, ReservationRoute, ReservationTicket, Route, RouteCompany, SearchResult, GlobalSettings, CertusOrder, Vendor, Affiliation, Agency with serviceClass        
filter Port, Company, System, Reservation, ReservationRoute, ReservationTicket, Route, RouteCompany, SearchResult, GlobalSettings, CertusOrder, Vendor, Affiliation, Agency
service Port, Company, System, Reservation, ReservationRoute, ReservationTicket, Route, RouteCompany, SearchResult, GlobalSettings, CertusOrder, Vendor, Affiliation, Agency with serviceClass        
filter Port, Company, System, Reservation, ReservationRoute, ReservationTicket, Route, RouteCompany, SearchResult, GlobalSettings, CertusOrder, Vendor, Affiliation, Agency

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
     JDL content here
  

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
  • Checking this box is mandatory (this is just to show you read everything)
@mraible
Copy link
Contributor

mraible commented Sep 19, 2024

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?

@antsch01
Copy link
Author

antsch01 commented Sep 19, 2024

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 --

@mraible
Copy link
Contributor

mraible commented Sep 19, 2024

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?

@antsch01
Copy link
Author

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

@truonglehcm
Copy link

truonglehcm commented Sep 22, 2024

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.

@OAllanFernando
Copy link

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

@OAllanFernando
Copy link

OAllanFernando commented Sep 23, 2024

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> -->

@OAllanFernando
Copy link

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?

@AdmilsonCossa
Copy link

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!

@AdmilsonCossa
Copy link

After multiple attempts, I finally solved the checksum issue by following these steps:

  1. .\mvnw clean
  2. npm install
  3. Ran the build in parallel using .\mvn clean install -T 1C
  4. Finally, .\mvnw

I hope this helps!

@antsch01
Copy link
Author

I will try, come back after test.

@mshima
Copy link
Member

mshima commented Sep 28, 2024

It’s a v7 issue which is not maintained anymore.
Closing.

@mshima mshima closed this as completed Sep 28, 2024
@mraible mraible added this to the 8.7.2 milestone Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants