This section provides instructions on adding system installed artifacts as references to the project.
When adding artifact reference that is not installed in the system, NPanday will prompt a warning message then adds the reference in the pom.xml as a system scope dependency.
However, the above warning message is not displayed for web site projects even if the artifact reference to be added is not installed in the system. This is because the artifact references for web projects are directly added in the project's bin\ directory (one is created when this is missing), thus, no need to add it in the pom.xml.
The following POM snippet shows a system dependency:
<dependency> <groupId>artifact_group_id</groupId> <artifactId>my.lib</artifactId> <version>2.2</version> <type>library</type> <scope>system</scope> <systemPath>C:\path\to\your\library.dll</systemPath> </dependency>
To add references to the project:
Or, Browse to look for the specific artifact to be reference and Recent for artifacts recently accessed.
When adding a COM reference, the actual reference (DLL) is copied to C:\WINDOWS\assembly\GAC_MSIL. Wherein, the path to the reference found in this directory is used as the reference's <systemPath> in the pom.xml.