Skip to content

Commit

Permalink
Fix API design view not getting updated issue
Browse files Browse the repository at this point in the history
Fix API design view not getting updated from swagger changes issue.
Remove the additional car goal from maven-car-plugin.
Fixes wso2-extensions/archetypes/issues/34
Fixes /issues/1320
  • Loading branch information
GDLMadushanka committed Sep 3, 2024
1 parent 7564ca0 commit 2b9f7b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ private void handleDesignViewActivatedEvent(boolean withSynapse) throws Exceptio

if (sourceEditor != null) {
String xmlSource = sourceEditor.getDocument().get();
if (xmlSource != null && sourceDirty) {
if (xmlSource != null) {
if (!xmlSource.trim().isEmpty()) {
rebuildModelObject(xmlSource, withSynapse);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,6 @@ public boolean performFinish() {
mavenProject.getModel().setPackaging("carbon/application");
Plugin plugin = MavenUtils.createPluginEntry(mavenProject,
"org.wso2.maven", "maven-car-plugin", MavenConstants.MAVEN_CAR_VERSION, true);
PluginExecution pluginExecution;


pluginExecution = new PluginExecution();
pluginExecution.addGoal("car");
pluginExecution.setPhase("package");
pluginExecution.setId("car");
plugin.addExecution(pluginExecution);

Plugin carDeployPlugin = MavenUtils.createPluginEntry(mavenProject, "org.wso2.maven", "maven-car-deploy-plugin", MavenConstants.MAVEN_CAR_DEPLOY_VERSION, true);
Xpp3Dom carDeployConfElement = MavenUtils.createMainConfigurationNode(carDeployPlugin);
Expand Down

0 comments on commit 2b9f7b5

Please sign in to comment.