question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Suggestion] remove sortpom

See original GitHub issue
Overview of the issue

For those trying to stick to the maven release scheme, the sortpom breaks the build order when reordering plugins. Since it is executed in the verify step, it will be performed and persisted in SCM during the release:prepare phase.

Motivation for or Use Case

I am trying to stick to the Maven build cycle so i can use its versioning system.

Reproduce the error

compare the plugin call order between ./mvnw -Pprod clean package and [ ./mvnw -Pprod release:prepare &&] ./mvnw -Pprod release:perform

Related issues

None i could find

Suggest a Fix

Remove or reconfigure sortpom plugin?

JHipster Version(s)

4.2.0 until yarn stops removing parts of tslint.

JHipster configuration

Welcome to the JHipster Information Sub-Generator

JHipster Version(s)
test-release@0.0.0 /Users/matthieubertin/Workspaces/experimental/test_release
├── UNMET PEER DEPENDENCY @angular/common@4.0.0
├── UNMET PEER DEPENDENCY @angular/core@4.0.0
├── generator-jhipster@4.2.0
└── UNMET PEER DEPENDENCY zone.js@0.8.2

JHipster configuration, a .yo-rc.json file generated in the root folder
{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "com.mycompany.myapp"
    },
    "jhipsterVersion": "4.2.0",
    "baseName": "test_release",
    "packageName": "com.mycompany.myapp",
    "packageFolder": "com/mycompany/myapp",
    "serverPort": "8080",
    "authenticationType": "jwt",
    "hibernateCache": "ehcache",
    "clusteredHttpSession": false,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "mysql",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "maven",
    "enableSocialSignIn": false,
    "jwtSecretKey": "",
    "clientFramework": "angular2",
    "useSass": false,
    "clientPackageManager": "yarn",
    "applicationType": "monolith",
    "testFrameworks": [
      "gatling",
      "cucumber",
      "protractor"
    ],
    "jhiPrefix": "jhi",
    "enableTranslation": false
  }
}
Entity configuration(s) entityName.json files generated in the .jhipster directory

ls: no such file or directory: .jhipster/*.json

Browsers and Operating System

java version “1.8.0_31” Java™ SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot™ 64-Bit Server VM (build 25.31-b07, mixed mode)

git version 2.12.2

node: v7.9.0

npm: 4.2.0

bower: 1.8.0

gulp: [17:19:41] CLI version 3.9.1

yeoman: 1.8.5

yarn: 0.21.3

Docker version 17.04.0-ce, build 4845c56

docker-compose version 1.12.0, build b31ff33

Entity configuration(s) entityName.json files generated in the .jhipster directory

N/A

Browsers and Operating System

Mac OS Sierra (v 10.12.4 (16E195))

  • Checking this box is mandatory (this is just to show you read everything)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
pascalgrimaudcommented, Apr 23, 2017

@mbergumi : so let’s remove it. Can you do a PR plz ?

0reactions
mbergumicommented, Apr 24, 2017

wil do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to sort dependencies in a section of a Maven POM file
The easiest way to sort your dependencies is to use the sortpom maven plugin. It is very easy to use. Just go to...
Read more >
Pom sorter - IntelliJ IDEA & Android Studio Plugin | Marketplace
#16 PomSorter error when running IntelliJ with Java6. 1.0.10. #15 Unordered TagSortingSetting elements make "false changes" in IDEA misc.xml.
Read more >
Automatic Quality Assurance checks
... it is worth checking the pmd website which offers quite clear suggestions: ... Property pom.fmt.skip used to skip sortpom plugin when running...
Read more >
Automatic Quality Assurance checks - GeoTools Documentation
POM files are automatically formatted during a Maven build using the sortpom Maven plugin, ensuring proper indentation and consistent ordering of the pom ......
Read more >
sorting dependencies? - Maven Integration (M2E) - Eclipse
If this list could be sorted, the usage would be way more clear: - bar.jar - doom.jar - foo.jar. Any sentiments on this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found