Jboss Eap 7.x and maven - maven

Is maven really necessary for buidling application in jboss 7? I currently have an application which is running in jboss 5 and it is build by antbuild.

Its easy to manage application dependencies through maven. You just need to provide artifact details of jar and maven will take care of artifact and and its internal dependencies.

You will be happiest if you just adapt Maven. You could try to manage dependencies yourself, but it will lead to many frustrations.
Use Maven, at least for JBoss. Resistance is futile.

Related

How to Deploy an artifact programmatically using Maven

I have a mission to develop an integration tool which allows from a source code folder to generate a WAR or OSGI Bundle and then deploys it in Tomcat or Karaf. I used Maven Embedder to create the artifacts, now my problem is how to configure my pom.xml to automatically deploy these artifacts.
on the internet I can't find any examples and also I'm new to the world of JEE and Maven.
please help me.
Find out how you can deploy artifacts to Tomcat or Karaf (without Maven).
Find out how you can deploy artifacts to Tomcat or Karaf programmatically.
Find a Maven plugin to use that deployment method.
The simplest solution would be to use something like the maven-resources-plugin to copy your built artifacts to the servers deployment directory but I am pretty sure that there are more sophisticated methods like http://tomcat.apache.org/maven-plugin-2.2/tomcat7-maven-plugin/deploy-only-mojo.html for deploying out of maven without plain file system mechanisms.
On a wider scale when working on problems like yours it always helps to take a step back and think about the abstract use case ("How to deploy something somewhere" followed by "How to deploy something somewhere programmatically") before going into detail and think about Tomcat or other application servers - and in most cases you will find out that there were hundreds of other who already had the same problem and solved it some way or the other.

Maven Support to web Application

I have a web Application ( its a .war file to be specific) to be deployed in run time.
The requirement is provide a Maven support.
My questions
1. What maven support means here?
2. Also how to achieve this in current web Application project
Thanks,
Faraz
P.S. I am totally new to Maven
Maven is project management tool, Maven provides developers ways to manage following:
Builds
Documentation
Reporting
Dependencies
Releases
It can do wonders in your project. You have to do a lot of reading in order to understand the features provided my maven. Maven's official site is the key for u.

what repo now hosts the equinox OSGi framework?

I created a demo osgi-extensible to do embedded OSGi to load dynamic rules. I can only find an old eclipse equinox 3.8.0 jar on maven central which gives a NullPointerException but the code runs fine with apache felix. Is there a repo which works with sbt/ivy/maven which has the newer equninox versions so that I can try those out?
Edit: Note the demo at the link above is looking to embed the eclipse equinox osgi runtime so just the osgi headers or bundle tooling would not answer the question
Equinox does not publish its artifacts to Maven Central, but some recent versions are published by the Tycho project. Check out org.eclipse.tycho:org.eclipse.osgi.

Start standalone server in JBoss 7.1.1 with Maven 2

What kind of configuration has to be done to start JBoss 7.1.1 standalone server or domain server using Maven 2?
Start
Stop
Deploy
See JBoss Maven Plugin.
I had a couple of issues lately when I tried to deploy a new maven2 java project from eclipse to a fresh copy of jboss as 7.1.1.
After I spent 4 hours reading various online documentation I have finally realised that there are 2 jboss maven plugins; named , jboss maven plugin and jboss as maven plugin.
The first one is located here and the second one here.
So, pay attention if you need to use the "jboss-as" goal specifier or the "jboss" goal specifier.
Funny. I am just starting to read in order to see what is the real difference between these two libraries; apart from the obvious goal specifier and the task names.

Configure tomcat runtime using maven

Is it possible to configure a complete tomcat runtime within Eclipse using Maven/m2eclispe.
A maven goal to downloaded tomcat, create the server withing the eclipse environment and add the specified war files to the server ?
Or can some of these goals be implemented ?
You might want to take a look at this solution or check out the maven cargo plugin.
The first solution uses the sysdeo tomcat plugin, which I've personally used in the past, which worked quite well. It does not download tomcat though for you. You will have to do that manually.
Right now I'm working with the maven cargo plugin (not an eclipse plugin though), which will download a tomcat instance for your for development purposes.

Resources