I need to be sure in clean maven deployment of a project. I mean not 'mvn clean deploy', but to remove existing project from OSB before deploying (overwriting). If you overwrite project on OSB, you can't be sure that all of its resources will be updated. I've seen a lot of cases when some resources in project are overwritten and some are not. It's quite unpredictable behavior. So the question is: is it some maven (maven service bus plugin or maybe some other one like maven weblogic) task or parameter to force update project before deploying?
Is it possible to "clean" deploy Oracle service bus project to OSB using maven?
2.1k views Asked by PaulV At
1
There are 1 answers
Related Questions in MAVEN
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- JavaFX build generating a blank gui with primary view and secondary view buttons
- Maven (Java) does not build dependencies into a compiled file
- java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagLibraryValidator in Spring-boot jsp application
- I am trying to use h2 in-memory db from my spring boot application, my spring boot version is 3.1.10, but its not connecting to h2 properly
- BeanCreationException when deploying Spring Boot app
- How to run Parallel tests by groups using Maven and TestNG?
- Get control flow information with JaCoCo
- Failed to instantiate [com.docusign.esign.client.ApiClient]
- Gradle - Groovy vs Gradle - Kotlin vs Maven for Java Spring Boot web application project on IntelliJ
- Intelij ultimate and spring boot giving me errors
- Using Eclipse Maven project, import new version of a class from a jar file created from another Maven project
- Messing up with conflict between spring jcl and commons-logging.jar
- Run java program
- How to add a Maven project to an Ubuntu image in Docker
Related Questions in WEBLOGIC
- weblogic.application.ModuleException: javax.faces.FacesException: Unable to find CDI BeanManager
- Oracle forms error pointing to jacob.jar & frmwebutil.jar
- weblogic abruptly stopped during deployment with fatal error
- Having issue while running a spring boot project using WebLogic
- Getting Whitelabel Error Page when I run my spring boot project
- Issue in af:showDetailItem under panelAccordion component not getting the label after migrating source code from 12.2.1.3 to 12.2.1.4 J developer
- How do I download a blob from a table to a file on the user's local computer using a stored procedure?
- LockType.READ at class vs method level
- Struts 2 to Struts 6 Migration
- Weblogic: The Message Driven Beans in the war file are not reflecting in Weblogic 14.1.1
- HTTP2_PROTOCOL_ERROR and ERR_CONNECTION_CLOSED when updating weblogic version 12 to 14
- Connfigure some urls to use 2-way SSL while others use 1-way SSL on Weblgic Application server
- How to set arguments in Weblogic Admin Server?
- How to set arguments in weblogic via console?
- Angular routes redirecting to base URL on refresh in WebLogic server
Related Questions in WLST
- Disable/Enable OSB proxy service via WLST
- WLST writeDomain fails because directory is not empty
- How to enable and disable Start Recording button in console preference link(WLST Script Recording tab) in Weblogic using wlst and python
- How do I expose a attribute(setStagingMode) through JMX which is read only in WebLogic 14c
- Can we do a command line export of Oracle 11g forms reports domain from a WL (10.3.6) server to other server(10.3.6) running on a different machine
- What is causing WLSTException: oracle.wtst.exception.WeblogicRequestTimeoutException during Weblogic server shutdown using WLST?
- Python & WLST / Undeploy Application If Exist (WebLogic)
- deploy a WAR with plan.xml using WLST
- how to set JVM arguments with quota for a Managed Server started by Node Manager
- Weblogic: Import messages to a Uniform Distributed Queue from exported xml file using WLST
- Start and Stop a Weblogic Server Remotely with WLST
- How to get IP address of weblogic managed server using WLST
- List and use Application Roles using WLST - listAppRoles()
- bash to python calling wlst and passing parameters
- Require Weblogic Stop All Managed Servers WLST Script which are in Running state except AdminServer
Related Questions in ORACLE-SERVICE-BUS
- service bus overview display blank
- Merging CSV files in Oracle Service Bus (OSB 12c) with same headers
- Is there a way to close the cursor after reading it?
- BEA-382501 Business service returns unrecognized response to Proxy service
- Missing IN or OUT parameter in Oracle SQL
- Can we deploy a Oracle Service Bus project in Tomcat?
- OSB 12c Send Cookie in header
- Service callout to business service returns fault in OSB
- Is there any tool to automate Oracle Service Bus configuration for CICD and where to get it?
- How to deploy Oracle Service Bus projects via scripts?
- Create a JNDI Provider Resource in servicebus console using WLST
- Eclipse Xquery For Complex payload
- Completed Xquery for multiple for loops
- Export OSB resources without using export wizard on JDeveloper
- No Proxy Service created when using MQ Transport in oracle service bus
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Well, I found the solution. It is not straightforward. Actually I dont like it, but it works.
The only solution I have found is to delete service (project in OSB terms) from OSB console using WLST. The working script I found in the Martien van den Akker's blog here: http://blog.darwin-it.nl/2014/03/osb-remove-artefacts-with-wlst.html
It is ready to use script. But this works only for OSB 11 and doesnt work for OSB 12. So you can use this workaround: http://soamagic.blogspot.com/2016/05/osb-12c-java.html
In my CI server (Hudson-based) I added Maven build step to launch sh-script, which executes wlst.sh with py-script as a parameter (actually there are 4+ parameters - weblogic admin username, password, url and others - project names to delete). This build step executes before every service deploy. This guarantees that the newest version of the service will be deployed to the OSB-server.
Edit: Not sure if it worth posting, but I hope someone can find something useful in my code. So here it is:
Maven build:
<profile> <id>undeployService</id> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.5.0</version> <executions> <execution> <id>wlst-undeploy-service</id> <phase>process-resources</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable> ${project.basedir}/../conf/WLST/undeployProject.sh </executable> <arguments> <argument> ${weblogic.username} </argument> <argument> ${weblogic.password} </argument> <argument> ${weblogic.url} </argument> <argument> ${project.artifactId} </argument> </arguments> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile>undeployProject.sh script:
. ${MW_HOME}/osb/tools/configjar/setenv.sh ${MW_HOME}/osb/tools/configjar/wlst.sh ../conf/WLST/undeployProject.py $*