Repository navigation
update pom.xml #4
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
Merged
bhagyasakalanka
merged 1 commit into
wso2-extensions:main
from
VIHANGAGIT:publish/daon-connector
Sep 9, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: wso2-extensions/identity-verification-daon
Length of output: 267
🏁 Script executed:
Repository: wso2-extensions/identity-verification-daon
Length of output: 12844
🏁 Script executed:
Repository: wso2-extensions/identity-verification-daon
Length of output: 6076
🌐 Web query:
Apache Maven buildnumber-maven-plugin create goal default phase execution plugin declaration💡 Result:
The buildnumber-maven-plugin's create goal is designed to generate a unique build number, typically retrieved from a Source Control Management (SCM) system like Git or Subversion, or generated via timestamp or sequence [1][2]. By default, the create goal is bound to the initialize lifecycle phase [3][4]. To declare the plugin in your Maven project (pom.xml), you typically include it within the build/plugins section. While the goal executes automatically during the initialize phase by default, you can explicitly configure the execution phase if desired (e.g., binding it to validate) as shown below [5]: org.codehaus.mojo buildnumber-maven-plugin 3.3.0 validate create true true The generated build number is made available as the ${buildNumber} property for use within your project [1][6]. For details on managing plugin versions, it is recommended to use pluginManagement in your parent POM [6].
Citations:
🌐 Web query:
site:maven.apache.org Maven plugin declaration does not execute goal defaultPhase execution binding💡 Result:
If a Maven plugin goal is not executing as expected, even when it has a defaultPhase defined (via the
@Mojoannotation's defaultPhase attribute), it is typically because the goal has not been explicitly bound to the build lifecycle in your project's POM [1][2][3]. While a Mojo can specify a defaultPhase (e.g.,@Mojo(name = "...", defaultPhase = LifecyclePhase.PACKAGE)), this only defines a suggestion for when the goal should run if it is invoked as part of a build [4][5]. It does not automatically register that goal for execution during the lifecycle of your specific project [1][2][3]. To ensure the goal executes during your build, you must explicitly bind it to a phase within your POM file [2][6]. You can do this by adding an execution block within the plugin configuration [6]. Example configuration: your.group.id your-plugin-artifact-id 1.0.0 your-goal-name package Key reasons why a goal may not execute: 1. No explicit binding: If the goal is not part of the standard default lifecycle bindings for your project's packaging (e.g., jar, war, pom), it will not run unless you add it to your POM's executions [7][1][8]. 2. Overriding: If you have provided an execution block but omitted the tag, Maven may rely on the defaultPhase [2][3]. If no defaultPhase is defined in the Mojo, the goal will not bind to any phase and therefore will not execute automatically [2][3]. 3. Lifecycle Phase not reached: Ensure you are invoking a lifecycle phase that occurs at or after the phase to which your goal is bound. For example, if your goal is bound to the 'install' phase but you only run 'mvn compile', the goal will not execute [1]. If you only want to run the goal manually from the command line, you do not need to bind it to a lifecycle phase; you can simply invoke it directly (e.g., mvn your-plugin:your-goal) [1][5].Citations:
🏁 Script executed:
Repository: wso2-extensions/identity-verification-daon
Length of output: 14233
Bind
buildnumber:createbefore consuming${buildNumber}.The root POM declares
buildnumber-maven-pluginwithout an execution. Maven does not add a goal to the lifecycle from itsdefaultPhasealone. The child bundle inherits${buildNumber}inSCM-Revision, but no execution populates that property.Add an explicit
createexecution:Suggested configuration
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>buildnumber-maven-plugin</artifactId> + <executions> + <execution> + <id>create-build-number</id> + <phase>initialize</phase> + <goals> + <goal>create</goal> + </goals> + </execution> + </executions> </plugin>📝 Committable suggestion
🤖 Prompt for AI Agents
Source: MCP tools