Questions tagged [tomcat7-maven-plugin]

The Tomcat7 Maven Plugin provides goals to manipulate WAR projects within the Tomcat servlet container version 7.x

The Tomcat7 Maven Plugin provides goals to manipulate WAR projects within the Tomcat servlet container version 7.x

https://tomcat.apache.org/maven-plugin-2.0/tomcat7-maven-plugin/

28 questions
14
votes
3 answers

How to run tomcat7-maven-plugin in debug mode with IntelliJ IDEA

My issue is that i can't run remote debug with tomcat7-maven-plugin. What i use: Maven Tomcat7 plugin to maven IntelliJ IDEA Ultimate 2016.2.2 Ofc Maven is provided by default with IntelliJ. I already tried with mvnDebug tomcat7:run command but…
Piotr Bartoch
  • 407
  • 1
  • 5
  • 18
10
votes
2 answers

Set ENV variables in tomcat7 maven plugin

Is there a way to set ENV variables through tomcat7-maven-plugin such that they appear in System.getenv()? The system properties can be set using the that appear in System.getProperties() map. I am looking for a similar way to…
Vikdor
  • 23,934
  • 10
  • 61
  • 84
7
votes
2 answers

maven pom.xml error with configuration in IntelliJ

There is a problem in the pom.xml like this. console org.apache.tomcat.maven
Moon Taejin
  • 351
  • 3
  • 9
  • 21
4
votes
2 answers

Specifying which directory to package using tomcat7-maven-plugin

I am using tomcat7-maven-plugin, and my web application is stored in src/main/webapp. It is a React app, so I run npm run build to generate a "compiled" version in src/main/webapp/build. My problem is that whenever I package the webapp, the whole…
nicovank
  • 3,157
  • 1
  • 21
  • 42
3
votes
0 answers

How to fix "Unable to process Jar entry [...] for annotations" error in Maven

I'm using tomcat7-maven-plugin version 2.2 along with spring version 5.1.6.RELEASE, hibernate-core 5.4.1.Final dependencies. When I'm running tomcat7:run goal I'm getting following errors: I thought maybe some dependencies are causing the issue so I…
3
votes
2 answers

mvn tomcat7:deploy not work if no restart tomcat

I'm trying to deploy a war on tomcat via maven (mvn clean install tomcat7:deploy). The deployment seems to work fine, but the application only works if I restart tomcat. It is normal? I think not.
un0tec
  • 170
  • 1
  • 11
2
votes
0 answers

Maven embedded Tomcat plugin fails to print application logs

Everything works fine when deployed to Tomcat server & application logs get printed.But when I use mvn tomcat7:run no application logs are getting printed. My configurations are as follows: web.xml
2
votes
1 answer

Declaring Extra Resource for the Apache Tomcat Maven plugin exec-war-only goal?

I am trying to configure the exec-war-only goal for my build to include some Extra resources (some config files). The configuration that i am using is given below org.apache.tomcat.maven
1
vote
1 answer

How to properly hot deploy/redeploy war on Tomcat with maven-tomcat7-plugin?

I know there are many threads talking about it, but I expose a situation that I have not been able to solve with their help. I hope that my problem and if in the future it is solved I can help more people in my situation. I'm trying to do a hot…
un0tec
  • 170
  • 1
  • 11
1
vote
0 answers

Maven tomcat7-maven-plugin not work with @WebServlet

I create a Servlet in servlet3.0 with @WebSevlet like this: @WebServlet(urlPatterns = {"/demo2"}, loadOnStartup = 1) public class Demo2Servlet extends HttpServlet { @Override public void doGet(HttpServletRequest request, HttpServletResponse…
user5134456
0
votes
0 answers

How to change tomcat default port when creating executable jar using tomcat7-maven-plugin?

I am using below snippet in pom.xml to create a executable jar file for my web application, it is creating the jar file properly and i am able to access it on port 8080. Now i want to change this default port. i tried many things but none of them…
0
votes
0 answers

Migrate tomcat7-maven-plugin to cargo-maven3-plugin

We are updating a project to use the new cargo-maven3-plugin instead of tomcat7-maven-plugin, and we need some help understanding how to configure certain features. The existing plugin configuration is:
radumanolescu
  • 4,059
  • 2
  • 31
  • 44
0
votes
2 answers

Jersey webapp using Tomcat plugin is not getting deployed

I am making a simple Jersey-Spring webapp. While deploying the app, I am getting errors like this ~/W/repo/webapp$ mvn tomcat7:run …
Kuldeep Yadav
  • 1,664
  • 5
  • 23
  • 41
0
votes
1 answer

SpringMVC - URL resource couldnt be found

I am a student working on the spring MVC framework. apologies in advance if this is a bad question I am using maven for deployment to tomcat7 I understood the flow of which how springMVC works and I will try to explain it. Do correct any…
Shawn
  • 13
  • 4
0
votes
2 answers

Launch an application in using Tomcat Embedded with Maven

I'd like to launch a web application in using an embedded tomcat instead of the standalone version. In order to do that, I've declared the tomcat maven plugin in my pom.xml. When I tried to launch that, I got this error : Exception in thread…
user3460409
1
2