-
Notifications
You must be signed in to change notification settings - Fork 47
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
[ERROR] No plugin found for prefix 'java2typescript' #45
Comments
@ramaghanta, Where did You get the groupId You used there? Are some instructions incorrect? |
Unfortunately I couldn't find any documentation on the plugin configuration. So, I referred to https://github.com/raphaeljolivet/java2typescript/blob/master/sample-web-app/pom.xml. Now, changing the groupId did not help fix the issue for me. Here is the log.
|
Another difference is <groupId>com.github.raphaeljolivet.java2typescript</groupId>
<artifactId>java2typescript-maven-plugin</artifactId>
<version>v0.3.0.rc1</version><!-- see notes bellow to get either snapshot or specific commit or tag or other version --> |
@atsu85
|
Looks like maven plugins check group artifact and version of downloaded plugin metadata - if this doesn't match (as it was the case right now), then plugin won't be used. I fixed this problem and updated the sample - take a look at it |
Thank you for those updates @atsu85 For some strange reason, I can't get this to work and keep having the same issue [ERROR] No plugin found for prefix 'java2typescript' in the current project and in the plugin groups...... Just to rule out any dependencies or other issues, I just created a simple Java Hello World Program, copied the contents of sample-web-app/pom.xml into mine and tried to execute mvn -X java2typescript:generate and ended up with the same issue. Here is the complete log from executing mvn -X java2typescript:generate
And my pom.xml file.
|
fix #45 - added maven project groupId prefix "com.github.raphaeljoliv…
@ramaghanta, sorry for the late answer. Now You should be able to use the plugin as well if You use version I had to change groupId and version for whole project, as the groupId, artifact and version used to download the maven plugin must match the plugin metadata (that doesn't seem to be the case for jar files that I use myself). |
@atsu85, That worked for me. Thanks a lot for your help. |
I have a java REST API for which I am trying to generate Typescript definitions. Following is my maven configuration, based on the available documentation.
When I execute 'mvn java2typescript:generate' I am getting the following error.
I am not sure if something's wrong in my configuration. I really appreciate any help to fix this.
The text was updated successfully, but these errors were encountered: