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 best solutions below
Related Questions in MAVEN
- Auto reload with play2
- maven pom.xml dependencies order vs classpath/build path order
- How to ignore or fix the duplicate classes warning?
- Scala Eclipse IDE compiler giving errors until "clean" is run
- How to run multiple "mvn test"-commands from batch file?
- Not able to send email in java using SMTP,its blocked by firewall in my office.Is there any other method by which we can send mail?
- javaCV Maven project
- Logging error when executing Maven SonarQube plugin
- Gradle: Override transitive dependency by version classifier
- Why we need maven if there's javac that compiles the code?
- jar file input == null while java app is working
- JPA and web app
- Test Selector Plugin Jenkins returns No tests were executed
- Eclipse OSGI unsatisfied constraint
- GlassFish 4.0 CDI deployment failure + Apache Spark
Related Questions in WEBLOGIC
- weblogic 12.1.3 config.sh DISPLAY error
- PIG merge two lines in the log
- Lock and Edit Button is Weblogic 12C admin console is not responding ,
- Diagnostics data was not saved to the credential store
- Deployment in Weblogic 10.3, how to change properties
- Change context-root inside WAR file
- weblogic 12c basic authentication not prompting for userid
- Weblogic 10 :- Waffle authentication JNA error
- Oracle Weblogic server - get logs of requests served
- Clients behind proxy can not connect to websocket server end point running on weblogic server .How to fix this?
- Java Heap Space in Weblogic 12.1.3 Deployment
- weblogic - mutual authentication - read certificate from HTTP header
- ADF Refresh page jsf with page fragments jsff after set session variable
- Targeting test NetBeans deployment to a WebLogic cluster
- WebLogic uses strange time zone and always recompiles JSPs
Related Questions in WLST
- Lock and Edit Button is Weblogic 12C admin console is not responding ,
- WebLogic 11 WLST redeploy behavior
- How to run with t3 service in WebLogic in order to work with WLST
- WLST get current sessions and connections weblogic
- WLST edit mode issue for managed instance
- Is WLST is stateful
- How to expose JVM property thorough JMX for Weblogic SSL
- How to enable JMX in Weblogic to set any attribute through WLST
- WLS JVM Settings
- Weblogic not creating JNDI destination correctly
- WLS CAT Utility deployment exception
- How to run wlst script by .py file
- JTA Timeout Seconds in WebLogic Scripting Tool
- How to iterate javax.management.openmbean.CompositeDataSupport in wlst
- WLST : update JTA Transaction timeout
Related Questions in ORACLE-SERVICE-BUS
- In OSB can you change the proxy service or business service WSDL using a Customisation File?
- Getting distinct Values from XML in java, OSB, XQuery
- Deploying a spring web service or another framework web service on the Oracle Service Bus
- How WSDL is Used in Oracle Service Bus?
- how do you use TDD for developing webservices using Oracle Service Bus
- How to define a variable in Oracle Service Bus?
- How can I route my proxy service to another 3 local proxy services in OSB
- Is it possible to Restrict access to specific projects in Oracle Service BUS (OSB 11g)
- Can we deploy a Oracle Service Bus project in Tomcat?
- Completed Xquery for multiple for loops
- OSB 12c Send Cookie in header
- Is it possible to "clean" deploy Oracle service bus project to OSB using maven?
- No Proxy Service created when using MQ Transport in oracle service bus
- OSB WLS Initialisation issue
- OSB Security, is it worthwhile securing Both the Proxy Service and The Business Service
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)
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?
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 $*