This is an automated email from the ASF dual-hosted git repository. lahirujayathilake pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/airavata-custos.git
commit 37aec40a918fdd6c51e44eb5d8b7defd08297703 Author: lahiruj <[email protected]> AuthorDate: Thu Oct 16 16:10:07 2025 -0400 ensure protobuf classes are generated before test compilation --- amie-decoder/pom.xml | 20 ++++++++++++++++++++ amie-decoder/src/main/proto/internal_events.proto | 2 +- pom.xml | 1 + 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/amie-decoder/pom.xml b/amie-decoder/pom.xml index 8867aca45..82816c87a 100644 --- a/amie-decoder/pom.xml +++ b/amie-decoder/pom.xml @@ -153,6 +153,7 @@ </configuration> <executions> <execution> + <phase>generate-sources</phase> <goals> <goal>compile</goal> <goal>compile-custom</goal> @@ -160,6 +161,25 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>${maven.build.helper.plugin}</version> + <executions> + <execution> + <id>add-generated-sources</id> + <phase>generate-sources</phase> + <goals> + <goal>add-source</goal> + </goals> + <configuration> + <sources> + <source>${project.build.directory}/generated-sources/protobuf/java</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> diff --git a/amie-decoder/src/main/proto/internal_events.proto b/amie-decoder/src/main/proto/internal_events.proto index 5959ffceb..9efbca89d 100644 --- a/amie-decoder/src/main/proto/internal_events.proto +++ b/amie-decoder/src/main/proto/internal_events.proto @@ -69,7 +69,7 @@ message DecodeSucceededPayload { string packet_db_id = 1; int64 amie_packet_rec_id = 2; - amie.v1.Packet packet = 3; // Fully typed decoded packet (from amie_packet.proto). + org.apache.custos.amie.v1.Packet packet = 3; } message DecodeFailedPayload { diff --git a/pom.xml b/pom.xml index ee7d6521e..ddb61c7d2 100644 --- a/pom.xml +++ b/pom.xml @@ -178,6 +178,7 @@ <maven.compiler.plugin>3.8.1</maven.compiler.plugin> <maven.assembly.plugin>3.3.0</maven.assembly.plugin> <maven.assembly.plugin.version>3.2.0</maven.assembly.plugin.version> + <maven.build.helper.plugin>3.4.0</maven.build.helper.plugin> <os.maven.plugin>1.5.0.Final</os.maven.plugin> <javax.version>2.0.1.Final</javax.version>
