While indexing Lucene ignores some common English words, because they rarely add any value to a search. These words are considered as noise; and ignoring them actually improves the search quality. If you have ever wondered what these words are, here is the complete list.
a, an, and, are, as, at, be, but, by, for, if, in, into, is, it, no, not, of, on, or, such, that, the, their, then, there, these, they, this, to, was, will, with
Friday, February 29, 2008
Thursday, February 28, 2008
Multiple Module Projects with Eclipse
Maven is a great tool to manage your projects and Eclipse is a great IDE to develop applications. However, there are some points Maven and Eclipse repel with each other. One of them is the project layout. Eclipse insists on flat project layout. On the other hand, Maven manages multiple module projects with hierarchical layout by default. For example, consider a demo project that consists of two sub-modules demo-core and demo-ui. According to Maven defaults, project layout will be as follows:
This layout leads to some problems when you want to import these projects (demo, demo-core, and demo-ui) into Eclipse. One way to solve this issue is to configure Maven for using flat project layout. Directory structure for this kind of layout will be as follows:
This is what Eclipse really likes. Off course, this does not happen by itself. First, we should modify the modules element of the parent POM as follows:
After this small change, you can develop your multiple module projects in an Eclipse environment with no problem.
demo
|-- pom.xml
|-- demo-core
| `-- pom.xml
`-- demo-ui
`-- pom.xml
|-- pom.xml
|-- demo-core
| `-- pom.xml
`-- demo-ui
`-- pom.xml
This layout leads to some problems when you want to import these projects (demo, demo-core, and demo-ui) into Eclipse. One way to solve this issue is to configure Maven for using flat project layout. Directory structure for this kind of layout will be as follows:
demo
`-- pom.xml
demo-core
`-- pom.xml
demo-ui
`-- pom.xml
`-- pom.xml
demo-core
`-- pom.xml
demo-ui
`-- pom.xml
This is what Eclipse really likes. Off course, this does not happen by itself. First, we should modify the modules element of the parent POM as follows:
<modules>
<module>../demo-core</module>
<module>../demo-ui</module>
</modules>
<module>../demo-core</module>
<module>../demo-ui</module>
</modules>
After this small change, you can develop your multiple module projects in an Eclipse environment with no problem.
Subscribe to:
Posts (Atom)