Above is the directory structure of web application generated using maven. Use
maven-dependency-plugin for copying artifacts to desired folder under WEB-INF directoryRead more ...
Search This Blog
Showing posts with label maven. Show all posts
Showing posts with label maven. Show all posts
Jan 12, 2013Maven - Copying artifacts to specific folderAbove is the directory structure of web application generated using maven. Use maven-dependency-plugin for copying artifacts to desired folder under WEB-INF directoryRead more ... Jan 3, 2013Deploying web applications using maven command line
<build>
<finalName>webapp</finalName>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<configuration>
<url>http://localhost:8080/manager/text</url>
<username>admin</username>
<password>admin</password>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
Read more ... Dec 13, 2012Configuring build path in Eclipse for Maven projects
The <?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry including="**/*.java" kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry including="**/*.java" kind="src" path="src/main/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
When the same project is imported into eclipse, the build path is configured accordingly. The parameter including=**/*.java specifies that only java files are included in the class path.In the example above, no other files are included in the class path and will throw FileNotFoundException if referencedRead more ... Setting up Spring Development Environment using Maven
The step by step guide for creating a java project using mvn archetype:generate -DgroupId=com.examples.spring -DartifactId=HelloSpring -DarchetypeArtifactId=maven-archetype-quickstart Read more ... Importing a maven project in eclipse
You can import a maven project to eclipse without installing the maven plugin by following these simple steps Generate Eclipse specific files Importing the Project in Eclipse 1. Start Eclipse. Goto File and select Import...2. Select Existing Projects into Workspace. Click Next3. When asked to select root directory, browse and point it to the project folder you want to import 4. Click Finish and your project is successfully imported into eclipse Note: Make sure that M2_REPO variable is set to Maven Local Repository in eclipseRead more ... May 19, 2012A simple java web application in minutes
You can set up your simple java web application in no time using Create Web Application ProjectYour sample application is created and ready to be packaged and deployed Read more ... May 18, 2012Maven cheat sheet for the beginners
Maven is a build automation tool used by the java developers. Some of the commands which I use on daily basis are: Create a Java ProjectAbove is a single line command to create hello world java project. The command creates the project in a well defined directory structure along with the provision to write and execute junit test cases for the project createdRead more ...
Subscribe to:
Posts
(
Atom
)
|
My Blog List |
Labels
AIX
(
2
)
Algorithms
(
15
)
Apache Axis2
(
2
)
Blogging
(
1
)
C#
(
4
)
CMIS
(
2
)
CPP
(
46
)
css 3
(
1
)
Curl
(
1
)
Cygwin
(
3
)
Data Structures
(
10
)
Debugging
(
1
)
Design Patterns
(
5
)
Development
(
1
)
Eclipse
(
4
)
Encoding
(
2
)
General
(
16
)
Generics
(
3
)
HPUX
(
2
)
html
(
1
)
Http
(
1
)
Inspiration
(
3
)
J2EE
(
2
)
Java
(
43
)
Java Web Start
(
2
)
Javascript
(
1
)
JDBC
(
2
)
JNLP
(
2
)
Linux
(
8
)
maven
(
7
)
Multithreading
(
10
)
Objective C
(
1
)
Recursion
(
1
)
Regular Expressions
(
1
)
Servlet
(
2
)
SharePoint
(
3
)
Shell Scripting
(
3
)
spring
(
7
)
SQL Server
(
1
)
SSH
(
2
)
STL
(
1
)
Telnet
(
1
)
Tomcat
(
2
)
Tools N' Utilities
(
3
)
Tree
(
1
)
Ubuntu
(
1
)
VI Editor
(
1
)
Visual Studio
(
4
)
Web Server
(
1
)
Web Services
(
2
)
Windows
(
14
)
|