Expose SiteMenu via Restapi

42 views
Skip to first unread message

Chaps_RD

unread,
May 19, 2017, 12:28:04 AM5/19/17
to Hippo Community
Hello,

I was need to access sitemenu from a different server via restapi, I have followed instruction in this link https://www.onehippo.org/labs/exposing-hippo-sitemenus-over-rest.html

after making all the changes when i rebuild, i am facing below error:

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project myhippoproject-site: Compilation failure: Compilation failure


Attaching screenshot of the error.


Thanks,

Kira

Error.png

Minos Chatzidakis

unread,
May 19, 2017, 9:58:44 AM5/19/17
to Hippo Community
Hi Kira,

Apparently something goes very wrong cause your screenshot mentions it cannot find classes that are in the same package with HstConfigurationRESTService, like HstMenusRepresentation.

Have you perhaps changed the main or site pom files?
Have you perhaps changed the parent maven project?
Have you changed anything in the project?
Can you verify your maven settings?
What IDE are you using? Is it reporting anything strange about the project? Are you building command line or via your IDE?

Strange errors!

thanks,
Minos
--

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.



--



Minos Chatzidakis

Product consultant

email-sig-logo.png

p.

e.

+31 20 522 44 66 

minos.ch...@bloomreach.com

_________________________________________________________________________________

Chaps_RD

unread,
May 19, 2017, 11:21:32 AM5/19/17
to Hippo Community
Hi Minos,

Thanks for reply.

I haven't changed any pom or maven project setting. I am building from command line 

It was working fine..but after adding java files as mentioned in the above link..not working anymore.

I ran maven clean install -X and got some more new errors:

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project myhippoproject-site: Compilation failure

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)


Thanks,
Kira


On Friday, May 19, 2017 at 8:58:44 AM UTC-5, minos.chatzidakis wrote:
Hi Kira,

Apparently something goes very wrong cause your screenshot mentions it cannot find classes that are in the same package with HstConfigurationRESTService, like HstMenusRepresentation.

Have you perhaps changed the main or site pom files?
Have you perhaps changed the parent maven project?
Have you changed anything in the project?
Can you verify your maven settings?
What IDE are you using? Is it reporting anything strange about the project? Are you building command line or via your IDE?

Strange errors!

thanks,
Minos
--
On Fri, May 19, 2017 at 6:28 AM, Chaps_RD <nenu...@gmail.com> wrote:
Hello,

I was need to access sitemenu from a different server via restapi, I have followed instruction in this link https://www.onehippo.org/labs/exposing-hippo-sitemenus-over-rest.html

after making all the changes when i rebuild, i am facing below error:

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project myhippoproject-site: Compilation failure: Compilation failure


Attaching screenshot of the error.


Thanks,

Kira

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-c...@googlegroups.com

RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.

Minos Chatzidakis

unread,
May 19, 2017, 11:41:52 AM5/19/17
to Hippo Community
On Fri, May 19, 2017 at 5:21 PM, Chaps_RD <nenu...@gmail.com> wrote:
Hi Minos,

Thanks for reply.

I haven't changed any pom or maven project setting. I am building from command line 

It was working fine..but after adding java files as mentioned in the above link..not working anymore.

Adding java files? Hmmm, I understand now, you're following the lab and started from an archetype, so perhaps something is wrong in the instructions.

Please clone project https://github.com/onehippo/labs (use master) and then navigate to the folder hst-config-via-rest and do a maven build there. This should build without problems. If so, do a diff between that and your other project that doesn't compile and let us know what was different!

hth!
Minos
--

 
To post to this group, send email to hippo-community@googlegroups.com

RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Message has been deleted

Minos Chatzidakis

unread,
May 23, 2017, 4:08:12 AM5/23/17
to Hippo Community
Hi Kira,

Great it's working now! 

Integrating this lab with an existing project was quite a large topic; the lab post had to rather focus on the solution itself. For our information, what was the starting point for you? A clean project just created from the archetype? Or some existing project? 

Do you think the differences you identified should be mentioned in the lab post? Could you give us some insight perhaps?

thanks,
Minos
--



On Mon, May 22, 2017 at 5:06 PM, Chaps_RD <nenu...@gmail.com> wrote:
Sorry for my delayed reply..

I cloned the project and did a maven build it worked.. thanks a lot.

and I did a maven compare..my maven and pom setting are different.

Thanks,
Kira



--

p.

e.

_________________________________________________________________________________

Divya Chaparala

unread,
Jun 2, 2017, 2:25:48 PM6/2/17
to hippo-c...@googlegroups.com
Hi Minos,

I used an existing project, started a development project and worked in menus.. maybe that might be the reason..guess that was reason for issues the documentation is pretty good.. 

Thanks,
Kira
You received this message because you are subscribed to a topic in the Google Groups "Hippo Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hippo-community/tbn80HqzY5A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hippo-community+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages