Nov 07, 2018.
This command build the project, runs all the test cases and run any checks on the results of the integration tests to ensure quality criteria are met. Maven Options. Maven provides a lot of command-line options to alter the maven build process. Let’s look at some of the important maven options. To install maven on macOS follow the next steps. This should work for any version of macOS and maven. To check first if there is any version installed, run the command: $ mvn -version. If the output is. Bash: mvn: command not found. You need to install maven. Step1 - Download. From Download page, get the latest version (currently 3.3.9) of the.
Apache Maven is a software tool for building and managing Java-based projects. Now you can use a Maven plug-in for WebLogic Server (
weblogic-maven-plugin ) to perform deployment operations similar to those supported by the command-line utility, weblogic.Deployer . The plug-in lets you deploy, redeploy, update, and such, applications built using Maven to WebLogic Server from within the Maven environment.
To download and configure Maven on supported platforms, see
http://maven.apache.org/download.html . Be sure to read the set up instructions closely to ensure that Maven is working correctly in your environment.
For detailed information on using Maven to build applications and projects, see the Maven Users Centre at
http://maven.apache.org/users/index.html .
The following sections describe using the
weblogic-maven-plugin for deployment:
Configuring and Using the WebLogic Maven Plug-In
Follow these steps for generating, installing, and using the
weblogic-maven-plugin :
Note:
To successfully accomplish these steps, your computer must be connected to the Internet and have the necessary proxy settings configured correctly in the settings.xml file (typically $HOME /.m2/settings.xml ). For further details, see http://maven.apache.org/guides/mini/guide-proxies.html .
Deployment Goals
Table C-1 lists the
weblogic-maven-plugin deployment goals.
Table C-1 Maven Plug-In Deployment Goals
weblogic.deploy
Full Name
com.oracle.weblogic:weblogic-maven-plugin:deploy
Short Name
weblogic:deploy
Description
Deploys an application or module.
Attributes
Parameters
Table C-2 weblogic:deploy Parameters
Example
Example C-3 illustrates using the
weblogic:deploy goal.
Example C-3 weblogic:deploy
For additional usage information, see weblogic.Deployer Command-Line Reference.
weblogic:undeploy
Full Name
com.oracle.weblogic:weblogic-maven-plugin:undeploy
Short Name
weblogic:undeploy
Description
Undeploys an application or module.
![]()
Attributes
Parameters
Table C-3 weblogic:undeploy Parameters
Example
Example C-4 illustrates using the
weblogic:undeploy goal.
Example C-4 weblogic:undeploy
For additional usage information, see weblogic.Deployer Command-Line Reference.
weblogic:redeploy
Full Name
com.oracle.weblogic:weblogic-maven-plugin:redeploy
Short Name
weblogic:redeploy
Description
Redeploys an application or module.
Attributes
Parameters
Table C-4 weblogic:redeploy Parameters
Example
Example C-5 illustrates using the
weblogic:redeploy goal.
Example C-5 weblogic:redeploy
For additional usage information, see weblogic.Deployer Command-Line Reference.
weblogic:start-app
Full Name
com.oracle.weblogic:weblogic-maven-plugin:start-app
Short Name
weblogic:start-app
Description
Starts an application.
Attributes
Parameters
Table C-5 weblogic:start-app Parameters
Example
Example C-6 illustrates using the
weblogic:start-app goal.
Example C-6 weblogic:start-app
For additional usage information, see weblogic.Deployer Command-Line Reference.
weblogic:stop-app
Full Name
com.oracle.weblogic:weblogic-maven-plugin:stop-app
Short Name
weblogic:stop-app
Description
Stops an application.
Attributes
Parameters
Table C-6 weblogic:stop-app Parameters
Example
Example C-7 illustrates using the
weblogic:stop-app goal.
Example C-7 weblogic:stop-app
For additional usage information, see weblogic.Deployer Command-Line Reference.
weblogic:list-apps
Full Name
com.oracle.weblogic:weblogic-maven-plugin:list-apps
Short Name
weblogic:list-apps
Description
Lists the deployment names for applications and standalone modules deployed, distributed, or installed in the domain.
Attributes
Requires a Maven 2.0 project.
Parameters
There are no parameters required or optionally taken by this goal.
Example
Example C-8 illustrates using the
weblogic:list-apps goal.
Example C-8 weblogic:list-apps
For additional usage information, see weblogic.Deployer Command-Line Reference.
weblogic:update-app
Full Name
com.oracle.weblogic:weblogic-maven-plugin:update-app
Short Name
weblogic:update-app
Description
Updates an application's deployment plan by redistributing the plan files and reconfiguring the application based on the new plan contents.
Attributes
Parameters
Table C-7 weblogic:update-app Parameters
Example
Example C-9 illustrates using the
weblogic:update-app goal.
Example C-9 weblogic:update-app
Maven Command Line Windows
For additional usage information, see weblogic.Deployer Command-Line Reference.
weblogic:help
Full Name
com.oracle.weblogic:weblogic-maven-plugin:help
Run Maven Command Line
Short Name
weblogic:help
Description
Lists all the supported deployment goals.
Attributes
Example
Example C-10 illustrates using the
weblogic:help goal.
Maven Command Line ParametersTroubleshooting
Table C-8 describes some common Maven plug-in errors and helps you resolve them.
Table C-8 Maven Plug-In Errors
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |