-
1. Re: Not able to add the custom java plugin to windup
manarh Sep 2, 2016 7:05 AM (in response to jayshah1112)Hi Jay,
Have you read and followed this wiki article Dev Create Your First Java based Rule Add on · windup/windup Wiki · GitHub ?
Is it true that your error is from install command?
bin/windup --install com.tcs.example:example-java-rule:jar:forge-addon:0.0.1-SNAPSHOT
-
2. Re: Not able to add the custom java plugin to windup
jayshah1112 Sep 2, 2016 9:11 AM (in response to manarh)Thank you for your response Marek.
Yes my error is from the install command.
Yes went through the article. I created a new project this time using the windup version 2.5. When I create project using the dependency as 2.5 it works fine. But when I am using 2.7 it is not.
-
3. Re: Not able to add the custom java plugin to windup
manarh Sep 2, 2016 9:55 AM (in response to jayshah1112)ok, so have you installed your GAV into local maven repository as:
mvn clean install
?
Jay Shah wrote:
Thank you for your response Marek.
Yes my error is from the install command.
Yes went through the article. I created a new project this time using the windup version 2.5. When I create project using the dependency as 2.5 it works fine. But when I am using 2.7 it is not.
-
4. Re: Not able to add the custom java plugin to windup
manarh Sep 2, 2016 10:01 AM (in response to jayshah1112)I tried our quickstart from windup-quickstarts/ejb-beanutils-async/rules-java at 2.7.x · windup/windup-quickstarts · GitHub and it works just fine.
bin/windup --install org.jboss.windup.quickstarts:windup-ejb-beanutils-async-rules-java:2.7.0-SNAPSHOT Using Windup at /home/mnovotny/apps/windup-distribution-2.7.0.Final Warning: JAVA_HOME environment variable is not set. > JBoss Windup, version 2.7.0.Final. JBoss Forge, version 2.22.10.Final In: org.jboss.windup.quickstarts:windup-ejb-beanutils-async-rules-java:2.7.0-SNAPSHOT, Out: org.jboss.windup.quickstarts:windup-ejb-beanutils-async-rules-java,2.7.0-SNAPSHOT SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Installation request for [org.jboss.windup.quickstarts:windup-ejb-beanutils-async-rules-java,2.7.0-SNAPSHOT] will: Deploy: [org.jboss.windup.quickstarts:windup-ejb-beanutils-async-rules-java,2.7.0-SNAPSHOT] Confirm installation [Y/n]? Installation completed successfully.
Could you check your GAV as it should be groupId:artifactId:version, everything else is optional like
I can see that you probably need to use this:
bin/windup --install com.tcs.example:example-java-rule:0.0.1-SNAPSHOT
-
5. Re: Not able to add the custom java plugin to windup
jayshah1112 Sep 3, 2016 5:31 AM (in response to manarh)Thank you for thedetails. It worked for me Marek.
It did work for me when I referenced the Windup 2.5 library. But when I am pointing my dependency to 2.7 version. It is not.
Do you happen to have an idea for the same.
Warm Regards,
Jay
-
6. Re: Not able to add the custom java plugin to windup
manarh Sep 5, 2016 2:46 AM (in response to jayshah1112)Jay,
if something worked before it doesn't mean you have/had correct setup for instance pom.xml or Maven settings.xml
First the URL from your build log https://mvnrepository.com/artifact/org.ocpsoft.rewrite/rewrite-servlet/ is suspicious, the rewrite servlet without any special configuration should be downloaded from Maven Central.
Second try to purge .windup/.addon directory in your home user location.
If you still have issues, post somewhere your source code (on github or zipped somewhere)
-
7. Re: Not able to add the custom java plugin to windup
jayshah1112 Sep 6, 2016 12:38 AM (in response to manarh)Thank you Marek.
You are correct my configuration was wrong. Thank you for your help.
Warm Regards,
Jay
-
8. Re: Not able to add the custom java plugin to windup
manarh Sep 6, 2016 3:53 AM (in response to jayshah1112)Jay, great to know you resolved the issue.
Good luck in developing of Java rules!