cancel
Showing results for 
Search instead for 
Did you mean: 

not able to get the third party libs in customsnap Snappack

maheswara
New Contributor II

Hi Team, 

 

i am creating custom snap by using some third party libs so those libs i have imported as shown below.

step 1: added jar files in lib folder which is located in project root directory.

step2: added dependency as sown in below.

<library.path>${project.basedir}/lib</library.path>

in properties section
<dependency>
<groupId>com.polarion</groupId>
<artifactId>commons-logging-1.0.4</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${library.path}/commons-logging-1.0.4.jar</systemPath>
</dependency>


in depedencies section

but these jar files are not able access while executing   the snap after deploying into snaplogic.those jar files and lib folder not able to see in my snappack pacakge zip  can anyone have any idea ?

 

1 REPLY 1

ddellsperger
Moderator
Moderator

if your directory structure looks like this:

 

snappack
├── lib
│   └── commons-logging-1.0.4.jar
├── src
│   └── main
│       ├── java
│       │   └── ...source files
│       └── resources
└── pom.xml

 

Then, you would need to specify:

 

<library.path>${project.basedir}/../lib</library.path>

 

as the project.basedir points to your src directory.