Start standalone server in JBoss 7.1.1 with Maven 2 - maven

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.

Related

Building and deploying kettle with maven

i am using spring boot 2.0.3 as a restful api to call kettle. I have kettle in my maven build with core and engine, but It fails running my transform with plugin not found For Add XML Column, and I’m sure others. I can’t find a maven repo with the plugins Built for maven dependency.
i am using 8.1 but can revert to 7 easily.
i need to deploy it all as a maven build for security and process reasons.
cheers
a
Checkout from github proper version of kettle, build it and install to local repository.
I don't remember exactly, i built kettle long time ago, but i think kettle consists of several modules.
engine-core
db-dialog
ui
plugin
You are missing on of them.

Jboss Eap 7.x and 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.

Getting an error while executing goals from maven plugin flexmojos-maven-plugin

I get the below error while executing the default lifecycle 'clean install' from my maven project.
java.lang.String cannot be cast to org.apache.maven.lifecycle.mapping.LifecyclePhase
My code uses the flexmojos-maven-plugin. As per the jira thread https://issues.apache.org/jira/browse/MNG-5958 this issue has been resolved, but nowhere could I find how.
As per the solution I would have to update Lifecycle.java. Updating Lifecycle.java would mean updating maven-core.jar.
Will I have to go the extent of updating a standard jar which could impact many other files which are using this jar.
I am using maven 3.3.9 and java 8.
The problem is that the Maven guys changed quite a lot internally again with Maven 3.3.9 so currently you will have to use an older Maven version. I also doubt that I will be able to spare the time to address this in the future as Flexmojos has become more and more a beast to maintain. Therefore I am currently working on a completely new maven plugin which I am developing as part of the Apache flex project. For now I would suggest to use Maven 3.3.3 ... should work nicely with that.

Classes not getting published to embedded tomcat server of maven (tomcat:run)

I'm using eclipse indigo IDE, apache tomcat 6.0 server, m2e plugin,jdk 1.6 softwares in my project.
After i make some changes in java code i do clean & maven build and the start the tomcat embedded server using maven i.e. 'tomcat:run' plugin command. But after following all steps i don't see my changes reflecting at all.
Now after i build all classes i see that all the class files are generated inside 'target' folder which i confirmed with the time at which it was generated.So i believe these class files are not getting published to embedded tomcat server of maven for some reasons.
P.S - I don't start/stop or use tomcat server configured in eclipse as i believe embedded tomcat server of maven doesn't use tomcat server in eclipse and it works by itself.Please correct me if i'm wrong here.
Please help me out.
[Update]:
Might be useful for someone who is facing similar issue.
The above problem was because of eclipse project settings file getting corrupted as i was encountering the same problem when i imported the same projects in different workspaces.But when i included modified codes alone in new workspace,it worked fine. All my changes were getting reflected.
use tomcat7:run
Then configure backgroundProcessorDelay see http://tomcat.apache.org/maven-plugin-2.1/tomcat7-maven-plugin/run-mojo.html#backgroundProcessorDelay with > 0

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