The pom.xml Configuration File
pom.xml is a Maven configuration file in your Maven project’s directory that contains information about the project and configuration details used by Maven to build the project. For example, it specifies the group ID and artifact ID of the Maven project, the project’s properties, dependencies and plugins used, their execution information, etc.
You can find the Catalyst Java SDK automatically added as a dependency in pom.xml after a Java function is created.
copy<dependencies> <dependency> <groupId>com.zoho.catalyst</groupId> <artifactId>java-sdk</artifactId> <version>1.15.0</version> </dependency> </dependencies>
You can find the Java dependencies fetched from the Zoho repository published in the Maven Central Repository.
copy<repositories> <repository> <id>java-sdk</id> <url>https://maven.zohodl.com</url> </repository> </repositories>
The build definitions in pom.xml include information about the Catalyst Maven plugin artifact and the individual commands available in the plugin.
copy<build> <plugins> <plugin> <groupId>com.zoho.catalyst</groupId> <artifactId>catalyst-maven-plugin</artifactId> <version>0.0.2</version> <executions> <execution> <id>catalyst-package</id> <phase>package</phase> <goals> <goal>package</goal> </goals> </execution> <execution> <id>catalyst-deploy</id> <phase>deploy</phase> <goals> <goal>deploy</goal> </goals> </execution> </executions> <configuration> <org>901738101</org> <project>3376000001796044</project> </configuration> </plugin> </plugins> </build>
As mentioned earlier, you can configure the project ID of your Catalyst project and the org ID of the organization the project belongs to in the <configuration></configuration> section under the build definitions, if you had not configured it during function creation.
Last Updated 2024-04-15 17:30:30 +0530 +0530
Yes
No
Send your feedback to us