-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Urgent Assistance Request for Protogen Tool #17
Comments
Hi there! Protogen is a tool designed primarily for the internal needs of SuduIDE with its specifics. At the moment, the status of its public support is unknown. Also, It was not designed for use with maven. As far as I can see, you are using the To understand your problem, I need to know more. What is going wrong? |
Hi there,
Thank you for your prompt response. I appreciate your willingness to assist
me with the issues I've encountered while using Protogen for my thesis
project.
Even after correcting my pom.xml file as per your suggestion, I'm still
facing the same problem. Specifically, the `toGrpc` and `fromGrpc` methods
are not being generated as expected. Additionally, when I run `mvn clean
install`, it seems that no records are being added to my implementation.
To provide more clarity on the matter, I've pushed my project to GitHub.
You can access it through the following link: (
https://github.com/Bahri-Adem/ProtoGen-Implementation).
I would greatly appreciate it if you could take a look at my project and
provide any insights or guidance on resolving these issues. Your expertise
and assistance are invaluable to me, especially considering the
significance of Protogen for my thesis work.
Looking forward to your feedback and support.
Best regards,
Adem Bahri
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fr.bl.greenit.protogen</groupId>
<artifactId>ProtogenImpl</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<java.version>17</java.version>
<protobuf.version>3.21.9</protobuf.version>
<grpc.version>1.51.0</grpc.version>
</properties>
<dependencies>
<dependency>
<groupId>io.github.suduide</groupId>
<artifactId>protogen-options</artifactId>
<version>1.0.3</version>
</dependency>
<!-- <dependency>
<groupId>io.github.suduide</groupId>
<artifactId>protoc-gen-protogen</artifactId>
<version>1.0.18</version>
<type>pom</type>
</dependency>-->
<dependency>
<groupId>io.github.suduide</groupId>
<artifactId>protoc-gen-protogen</artifactId>
<version>1.0.18</version>
<classifier>options</classifier>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protobuf.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:3.18.0:exe:windows-x86_64
</protocArtifact>
<pluginId>protogen</pluginId>
<pluginArtifact>
***@***.***
</pluginArtifact>
<outputDirectory>${project.basedir}/src/main/generated/java</outputDirectory
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
|
Hello, again. I've tried researching about building with maven. Here is the correct configuration for linking protobuf plugins. <configuration>
<outputDirectory>${basedir}/target/generated-sources/protobuf/java</outputDirectory>
<protocArtifact>com.google.protobuf:protoc:3.18.0:exe:osx-aarch_64</protocArtifact>
<protocPlugins>
<protocPlugin>
<id>protogen</id>
<groupId>io.github.suduide</groupId>
<artifactId>protoc-gen-protogen</artifactId>
<version>1.0.18</version>
<mainClass>org.sudu.protogen.Main</mainClass>
</protocPlugin>
</protocPlugins>
</configuration> But it won't work because the the artifact is not published as maven plugin expects, i.e. Currently I am not a maintainer of the repository, so fixing it is not easy. Here is what I could suggest you:
The latter is the most preferable because Protogen is designed for SuduIDE team conventions of working with gRPC. I have considered a community version with a flexible interface like the Spring OpenAPI Generator has, but it is still a plan. |
Dear SuduIDE,
I hope you're doing well. I'm a master's student working on my thesis, and I've encountered difficulties in getting your Protogen tool to work with both Maven and Gradle. This tool is crucial for my research, and having it operational would greatly aid me.
Could you please provide guidance or assistance on how to properly configure and use Protogen? Your support would be immensely valuable to me, as I'm pressed for time and in need of this plugin for my thesis work.
Thank you for your help.
Looking forward to your guidance and support.
Best regards,
Adem Bahri
And here is my plugin:
The readme seems to be not so clear !
The text was updated successfully, but these errors were encountered: