Regarding Automating Deployment to JBoss from Nexus
Hi All, Currently I am able to build my artifacts using Maven and successfully published to Nexus repository. I want to deploy deploy the war files and other configuration zip files from Nexus to the remote Jboss server. I have few doubts regarding this. 1)Can I use separate pom.xml file for my deployment activity, where I will be mentioning the path of the files from Nexus and path of deployment. 2)If I have to use the same pom.xml (which is my projects pom), then how can I pick the artifact directly from Nexus repository without looking in local repo or target folder. I had a glance of JBoss plugins and Cargo plugin. But unable to understand how to pick the war/conf files from my Nexus repo where I published previously. Regards, Tirumal Reddy M
Maven Assembly Plug-in - Creating custom root folder inside TAR file
Hi, I want to create a tar file using assembly plugin. I am able to do create a tar file but unable to customize the root folder. It always is project/module name. For example: My module name is Example and I want to create Example.tar file and it should directly contain MyFolder. But when I create tar file the MyFolder is under the Example folder by default. I need something like this. Example.tar -MyFolder But I am getting like this. Example.tar ---Example MyFolder Below are my bin.xml and pom.xml. pom.xml - plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId version2.2/version executions execution phaseprocess-resources/phase goals goalsingle/goal /goals /execution /executions configuration descriptors descriptor${project.basedir}/src/main/assembly/bin.xml/descriptor /descriptors /configuration /plugin bin.xml --- assembly xmlns=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd; idbin/id formats formattar/format /formats fileSets fileSet directory${project.basedir}/src/main/MyFolder/directory outputDirectoryMyFolder/outputDirectory /fileSet /fileSets /assembly Regards, Tirumal Reddy M
RE: Maven Assembly Plug-in - Creating custom root folder inside TAR file
I got solution to this. You just need to put includeBaseDirectoryfalse/includeBaseDirectory in your assembly descriptor file. Regards, Tirumal Reddy M -Original Message- From: Tirumal Reddy Moolamalla [mailto:t.moolama...@zensar.com] Sent: Thursday, January 20, 2011 5:04 PM To: users@maven.apache.org Subject: Maven Assembly Plug-in - Creating custom root folder inside TAR file Hi, I want to create a tar file using assembly plugin. I am able to do create a tar file but unable to customize the root folder. It always is project/module name. For example: My module name is Example and I want to create Example.tar file and it should directly contain MyFolder. But when I create tar file the MyFolder is under the Example folder by default. I need something like this. Example.tar -MyFolder But I am getting like this. Example.tar ---Example MyFolder Below are my bin.xml and pom.xml. pom.xml - plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId version2.2/version executions execution phaseprocess-resources/phase goals goalsingle/goal /goals /execution /executions configuration descriptors descriptor${project.basedir}/src/main/assembly/bin.xml/descriptor /descriptors /configuration /plugin bin.xml --- assembly xmlns=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd; idbin/id formats formattar/format /formats fileSets fileSet directory${project.basedir}/src/main/MyFolder/directory outputDirectoryMyFolder/outputDirectory /fileSet /fileSets /assembly Regards, Tirumal Reddy M - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven JBoss Plugin - Best Plugin to use
Hi, I want to deploy the artifacts to JBoss AS using maven plug-in. I came across two plug-in for this use case (Cargo Plug-in and Jboss-Maven-Plug-in from Codehaus). Please suggest which one is best? Regards, Tirumal Reddy M
RE: Maven Repository - Handling configuration Files
Thanks Wayne, If I do this and create a new .zip or some other artifact for my configuration files, is it possible to deploy this by extracting the config files to specific location using Cargo plugin? Regards, Tirumal Reddy M -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Wednesday, January 12, 2011 2:39 PM To: Maven Users List Subject: Re: Maven Repository - Handling configuration Files I don't want to go for creation of maven assembly and packing things together. Please suggest me if there are any other approaches There is nothing stopping you from making another Maven project that only contains your config files (in src/main/resources, perhaps) and then publishing that to the remote repo, then picking them up and unpacking (unjar/unzip) them to use in your app servers directly. This would not involve the assembly plugin or any non-standard approach. Why do you have a doubt about this? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven Repository - Handling configuration Files
Hi, I have a doubt regarding distributing configuration files which needs to be deployed in application server. But these files needs to be separated from the web achieve. I am publishing the web archive and other artifacts to remote repository, from where I am picking up and deploying them to application server. I don't want to go for creation of maven assembly and packing things together. Please suggest me if there are any other approaches Regards, Tirumal Reddy M