Is anyone having idea on status of tomcat8 Maven Plugin. Is it ready for use or not ? I can locate the repository for it here but could not find this plugin on apache site. I tried using it with same configuration as that of tomcat7-maven-plugin but it does not start my application.
Go to following link
https://mvnrepository.com/artifact/org.apache.tomcat.maven/tomcat8-maven-plugin/3.0-r1756463
copy paste the dependency tag
<dependency>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat8-maven-plugin</artifactId>
<version>3.0-r1756463</version>
But still if your pom file shows can't locate repository
click on the download link in above url and download jar file and past it in <your-home-directory>/.m2/repository/org/apache/tomcat/maven/tomcat8-maven-plugin/3.0-r1756463
In your IDE update maven project
tomcat maven plugin is only available for tomcat7, you can try spring boot which has an embedded tomcat8, it also provides other containers, like jetty
Related
I have my library which I host in my custom maven repo. I want to use in the notebook. However when I try to load it it tries to load them from central repo instead of my custom repo
My zeppelin code:
%dep
z.reset();
z.addRepo("myTeam").url("http://maven.myHost.com/repository/myTeam").username("username").password("password");
z.load("myTeam:normalization-cache:jar-with-dependencies:1.1.14");
And this is the output
org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact myTeam:normalization-cache:jar-with-dependencies:1.1.14 in central (http://repo1.maven.org/maven2/)
So it always looks for the dependency in the central repo. How to change it so it could get it from my repo ?
I have cloned the docdoku-plm from this repository https://github.com/docdoku/docdoku-plm/tree/dev
I build this project but i don't know what i have to deploy in my server , i checked in pom.xml and they have given packaging as pom
After i build the project no target file is created.
I want help how can i deploy this project in my wildfly 10 server.This is the structure of the project and after bulid there is no target file created
First of all when you build your project,one EAR file is generated in eplm module, you need to deploy that EAR file in wildfly.
After this follow this link https://github.com/docdoku/docdoku-plm/wiki/Installation-Guide for configuration according to your server.
In docdoku-plm if you are using eplm project and deploying in glassfish,by default it will take EclipseLink as JPA framework and in WIldfly it is Hibernate So you have to add dependency in pom.xml or change hibernate module to eclipselink.
We are building single page application, using AngularJS and Spring Rest services along with spring boot. For front end build we are using grunt and for server site build maven. But we are not sure hove to build single WAR file which contains build out put from gunt and our java output.
Deployment server Tomcat.
Regards
Mahesh
You can give a try using maven-grunt plugin.
https://github.com/allegro/grunt-maven-plugin
I have the exact same setup. I am invoking grunt from maven.
From maven I invoke frontend-maven-plugin it actually downloads node binary and all node packages. And invokes grunt and bower. This essentially helps me build my project in any environment without installing node(even in Jekins server). Configure warSourceDirectory to read grunts output.
When I use eclipse to generate jaxb classes and Webservice implementation by top down approach. eclipse automatically generates csf-beans.xml. However wsdl1java maven plugin doesnot generate config file. Is there are options available to plugin to enable generation of bean configuration file?
No! There isn't any option for generating cxf configuration file with wsdl2java maven plugin. You can get and customize the general cxf.xml file from Apache CXF Configuration and add it to the /WEB-INF/classes folder of your web application.
Hope this helps.
I want to convert a maven project to a web application project, which should contain web.xml. I am using eclipse juno 4.2 with m2e (maven integration for eclipse) plugin software.
Any reply would be appreciated.
Install m2e-wtp
In your pom.xml, change or add the war packaging
right-click on project > Maven > Update project
m2e-wtp will create the src/main/webapp folder and add the Dynamic Web project Facet¤
manually add a WEB-INF folder under src/main/webapp
right-click on project > Java EE Tools > Generate Deployment Descriptor stub
It will create a web.xml under src/main/webapp/WEB-INF/
¤ By default, the web facet is set to 2.5. You should update it, if needed, under project properties > Project Facets BEFORE generating the web.xml
I assume your current project is a maven project which produces jar. Please confirm.
I have not come across any utility which can convert a jar project to a war project.
You have following two options -
Simple open the pom.xml and change jar to war. Create folder webapp under src/main and create a web.xml
Create a new web app project via maven command line choosing webapp archetype or via eclipse choosing maven webapp achetype. Define dependency to your jar project.
If you can provide more information based on my suggestion then probably I can help.