- This topic has 9 replies, 5 voices, and was last updated 16 years, 6 months ago by support-eugene.
-
AuthorPosts
-
alvinsMemberHi,
Does the maven plugin support deployment of web projects – it does not seem to copy the dependency jars to WEB-INF/lib?
Alvin
support-eugeneMember@alvins wrote:
Hi,
Does the maven plugin support deployment of web projects – it does not seem to copy the dependency jars to WEB-INF/lib?
Alvin
MyEclipse will not copy jars to project folder. But the jars will be deployed to a server if the dependency scope is appropriate.
kyancyMemberHi. I am def one of those glad 2 see this, but can u clarify how to use it with a web project?
I eagerly updated to 6.5. Created a new test maven4myeclipse project. It didn’t let me set the archetype so it defaulted to JAR. I then used the “Add Web Project Capabilities” on the project. I was happy to see that it readily let me deploy the stock project to the embedded version of Tomcat (in prior versions I had to hack a few things 4 this 2 work). It appeared to copy the web libs to the right place, however I couldn’t immediately hit it with the browser like you normally can with a stock web project (http://localhost:8080/mytestproj).
Upon further examination I realized that it was still producing a JAR as the artifact and also had failed to create /src/main/webapp directory like I expected. I was hoping a maven enabled web project would run right out of the box.
Am I missing something or are there some additional manual steps that we need to know about? thx in advance
kyancyMemberOops. Think I just answered my own question. Looks like you create a ‘web’ project and then select the maven support option during creation of the web project. Sorry. My mistake.
I was going to delete prior idiotic post but wasn’t sure how. thx!
Riyad KallaMemberkyancy,
Not idiotic at all, it’s a totally valid question and one that many other users will have, so this will be helpful for them. Thanks for getting that in here.
alvinsMemberI just tried a simple web-project “Project1” with maven capabilities and deploy to tomcat works fine.
Now I create java maven “Project2” and make it a dependency of “Project1”. Web project keeps failing deployment. I remove dependency, it deploys fine.
Ideas?
support-eugeneMember@alvins wrote:
I just tried a simple web-project “Project1” with maven capabilities and deploy to tomcat works fine.
Now I create java maven “Project2” and make it a dependency of “Project1”. Web project keeps failing deployment. I remove dependency, it deploys fine.
Ideas?
What do you mean by “failing deployment”? Is there some error dialog shown?
Michael LaccettiParticipantProbably the usual bug with having a child and parent project open + Maven enabled + trying to deploy using the MyEclipse deployer.
alvinsMember“Deployment failure on MyEclipse Tomcat . Could not copy all resources to C:\Java\workspace-myeclipse-6.5\.metadata\.plugins\com.genuitec.eclipse.easie.tomcat.myeclipse\tomcat\webapps\frontend. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at C:\Java\workspace-myeclipse-6.5\.metadata\.plugins\com.genuitec.eclipse.easie.tomcat.myeclipse\tomcat\webapps\frontend”
Similar to what the guy was having in this post https://www.genuitec.com/forums/topic/maven-integration-for-enterprise-application-project/
support-eugeneMemberThank you for reporting this issue. It will be addressed in the coming releases.
-
AuthorPosts