Maven Project in Jenkins - No files in repository - java

I am having a maven Java project in my local workspace, I am integrating it with jenkins. In the jenkins I created a Maven Project and in configuration I am giving pom.xml from my local workspace.
Build seems to be success but when I open the workspace in jenkins it says no files, also I am triggering an email which has an attachment from the workspace.
Email gets sent without the attachment.
Screenshots on configuration
Following are the components I am using
Jenkins 1.600
apache-maven 3.3.3
Maven Integration plugin 2.7.1 inside jenkins

Related

Jenkins meven Java Import working giving differnt path

I have a a java class looking for another project using an import.
import this.is.the.java.file.im.looking.for
I run off a pom.xml file using a maven build in eclipse and it's working fine using the m2e plugin. When i try to run it on jenkins using the maven integration plugin it says it can't find the file because it's looking into the same project folder instead of the dependency project.
Maven configured on jenkins also requires appropriate settings.xml to fetch dependencies it required. There might be possibility that due to inappropriate settings.xml file , maven won't be able to fetch dependencies.
Please make sure settings.xml at in jenkins installation directory e.g. /var/lib/jenkins for ubuntu.
also check whether settings.xml under .m2 folder in your jenkins installation directory.
and finally validate whether there is jar file fetched in local maven repository under .m2 directory.

How to run this spring rest maven project in eclipse

i have found this web application on git hub based on spring mvc,ajax and restful web services and i have imported that project as existing maven project and ran as maven build by giving goal eclipse:eclipse and build was success too ,but i am not getting option to run on tomcat server ,my question is how do i run this project on tomcat?
here are the link to download this project
github link
blog link
mvn clean install should create a war file in the target folder which you can deploy to your favorite app server.
Or do you want to run Tomcat from within eclipse and deploy the app automatically?
This goal eclipse:eclipse -Dwtpversion=2.0 converts it to eclipse project
and its running now on tomcat.

How to deploy a Maven WAR to JBoss EAP 6.3 within Eclipse Luna

I have read every page that shows up on the first Google result page with that search. But nothing seems to help.
Of course I can run "mvn clean install" in or out of Eclipse and get the .war generated in the target folder. I can copy the .war in the deployments folder of JBoss installation myself. And then I can start the server through the server adapter in Eclipse.
But I want that "manual copy of war" to be automatic as well.
How can I do this? What do I need to do to add a new item to "Run As" menu, say, "Maven JBoss Deploy" where underneath, it does a clean, install, deploy (copy to deployments)?
I have Maven 3.1.1 installed separately (outside of Eclipse) and I have told Eclipse where my Maven is. I have JBoss Tools (latest version) installed with JBoss Maven Integration part of it.
I just don't see any way to integrate JBoss and Maven within Eclipse :(
You can do with fileName tag
<fileName>${basedir}/target/webapp.war</fileName> in pom.xml
or
You can go with Profiles in pom.xml
More 1
More 2
By trial and error, I was able to get Eclipse to deploy a maven project WAR on JBoss.
I just needed to have "Dynamic Web Module" facet attached to the project. I did that using the Project properties in eclipse.
Now I am able to right click the project and Run As Server and that deploys to JBoss. And the project is still a Maven project. Yay!

maven install command to deploy an artifact to maven repository

When i Use option of sts "install or deploy an artifcator in eclipse".it works properly but when i do it manually by using mvn install command and change the version in pom.xml.it deploys artifactory to local repository. but when i refered it in some other project its symbol is different from others.
in above image, OES-ClientCore:24.0.9 is deployed using maven command and i ma refering it in some other project.
and also not working properly.so just tell me the difference of option of sts for "install or deploy an artifcator in eclipse" and manually using command mvn install
mvn install will install the artifact in your local maven repository.
Use mvn deploy to deploy it to a remote repository to share it with other developers and projects
See also:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

Mirror API in Eclipse

I downloaded the glass-java-starter from github and followed all of the instructions on the glass developers site. I got it imported into Eclipse as a Maven existing project as instructed and I changed the oAuth file ID and Secret as specified. When I try to start the project or debug the project I am getting the following exception: Source not found for http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException. The instructions give a command line command for running the project, $ mvn jetty, but nothing for Eclipse. How do I debug this project with Eclipse?
You will need to use one of the maven plugins available for Eclipse to initiate the run:jetty goal.
There are a few available. One of them is Eclipse m2e.
Install the plugin
Create a new run configuration of type Maven Build
Specify a goal of jetty:run
Other solution would be:
set jetty debug port:
export MAVEN_OPTS='-Xdebug -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y'
then run jetty through maven command line
mvn jetty:jetty
After that use Eclipse remote debugger on port 4000.
The war file, product that mvn produce in this sample app is compatible with tomcat or any other standalone server, so just build a war to "webapp" directory of standalone tomcat or jetty or "deploy" directory of standalone JBoss.
Eclipse has plenty of plugins to run those in debug mode.

Categories