07-23-2024 02:37 AM
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 ?
07-23-2024 11:14 AM - edited 07-23-2024 11:15 AM
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.