commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Commons Wiki] Update of "MavenStandardLayout" by sebbapache
Date Tue, 20 Sep 2011 15:35:02 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Commons Wiki" for change notification.

The "MavenStandardLayout" page has been changed by sebbapache:
http://wiki.apache.org/commons/MavenStandardLayout

Comment:
Initial stab at documenting how to do a maven layout change

New page:
= Conversion to Maven standard layout =

The [[http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html|Maven
standard layout]] simplifies POMs and makes it easier for new-comers to find their way around
the different components.
The basic elements are:
{{{
src/main/assembly
src/main/java
src/test/java
}}}

This pages describes how to convert to the standard layout from the following layout, which
is common in older components:

{{{
src/assembly
src/java
src/test
}}}

First, create the new parent directories

{{{
src/main
src/test/java
}}}

Then move the directories as follows:

{{{
src/java => src/main/java (in Eclipse you can drag src/java and drop it in src/main)
src/test/org => src/test/java (drag src/test/org and drop in src/test/java)
assembly TBA
}}}

Various files now need to be editted:
 * pom.xml - remove <sourceDirectory> and <testSourceDirectory> elements
 * build.xml if present
  * src/java => src/main/java
  * src/test => src/test/java
  * TBA

'''to be completed'''

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message