Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

October/2017
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
293031    

[ Archives News
for 'Java Technology' ]

home > news > java technology > webapps with eclipse and maven (maven-war-plugin)

Webapps with Eclipse and Maven (maven-war-plugin)

Web applications created by the Eclipse IDE contains an annoying folder WebContent to host the web resources and deployment descriptors. Quite natural for Eclipse users, this feature ignores the Maven convention and force the developers to hack the pom files in order to get the project up and running in Eclipse. In this aspect, Eclipse if far behind the other IDEs regarding Maven support, even if you consider the very good M2Eclipse plugin. So, for you lazy Christmas hackers, here it is a solution for the Maven integration problems in Eclipse based on the maven-war-plugin. Create a Web Project in Eclipse: right-click on the Project Explorer > New > Project > Web \ Dynamic Web Project Create a pom.xml file in the project root folder, with the following content: ">http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 org.cejug webapp-test war 1.0-SNAPSHOT webapp-test Maven Webapp http://maven.apache.org maven2-repository.dev.java.net Java.net Repository for Maven http://download.java.net/maven/2 ${project.name} org.apache.maven.plugins maven-war-plugin 2.0.2 ${basedir}/WebContent WebContent WebContent/WEB-INF/lib/*.jar false true ${pom.url} ${buildNumber} ${project.name} CEJUG ${project.version} ${user.name} $...


Date: December, 28 2009
Url: http://www.java.net/blog/felipegaucho/archive/2009/12/28/webapps-eclipse-and-maven-maven-war-plugin


Others News

©2002-2017Java-Virtual-Machine.net https://mobirise.com/ | icon font | bootstrap modal popup | css menu | css menu maker