I have completed the Java Tutorial for Google App Engine.
Now I wanted to do the Backend API Tutorial, but I get errors..
I installed Maven and I was able to generate the project from the command line with maven as described in "Creating an Endpoints Backend Project". I have problems with the next step: Configuring the Maven Project for Endpoints.
Under the point "Setting required plugin configuration" it says "2. Locate and replace the default appengine-maven-plugin configuration entirely with the following: ", before they were talking about the pom file from "helloendpoints/helloendpoints-war".
--> But in that pom.xml-file from "helloendpoints/helloendpoints-war", I cannot locate that configuration... I found that in the pom file of "helloendpoints/helloendpoints-ear".
Question 1: Is this (in ear-folder) the pom-file that i shall edit or should there be that configuration in the pom from the war folder?
However, replacing that code there or not both gives me an error when I invoke maven with "mvn install".
The error-message is the following: "Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.3:war on project helloendpoints-war: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.3:war failed: basedir C:\Users...\helloendpoints\helloendpoints-war\target\generated-sources\appengine-endpoints does not exist".
And I can see that in "...\helloendpoints-war\target", there is no "generated-sources"-folder!
And this is where I am stuck now.
Question 2: Can all this be done without Maven and is there any tutorial for that? Because that is another source of errors and I had to deal with enough errors now... I just want to get an understanding of how the appengine works, how I can use it for my android app and then start from a WORKING basic-project, but I already had to deal with lots of errors. This is pretty frustrating, because I just wanted to do what is told in the tutorial and I still did not write any own code yet...
Question 3: In the next part of the tutorial, are they using the m2e-plugin or anything? Because that was mentioned nowhere, but somehow you have to import that maven project into eclipse...
Yes you can do it without Maven.This and this are simple tutorials from Google that shows you how to add a backend to an Android project.
I would suggest to delete this topic, because I switched to the tutorial without Maven, which has not much to do with my original post. That tutorial works now, but I cannot explain what solved it. I think this whole topic is more confusion and also wasted time for anyone else, who is trying to find an answer here.
Related
I initially created a plain Java project that followed the steps mentioned here and here but unfortunately, my project didn't work, I am getting this above error. I have not reached the step where it talks about integrating selenium.
Just to mention I used all the latest versions of the jar files as shown below.
I also got other various problems also, and to resolve them when I searched on the internet everyone was talking about the configuration inside the pom.xml file. But this file comes in the Maven project! so I converted my project to a Maven project. But that too didn't resolve my issues so I "disabled the Maven nature". No luck even after that.
currently, it is a Maven project but when I am following this step it is giving me the subject error.
This is how my package explorer look like:-
The trick is to start small with something working. And then after each change check if it still works. This will help you build an understanding of what each component and change does without overwhelming you.
Unfortunately you are following tutorials that do a whole lot at once. Try to break this down a bit. First learn about Maven, with plain Java and maybe a unit test. Then learn about how Eclipse works with Maven projects. Then use Cucumber with Maven, then add Selenium.
This may seem like a lot more work but it is faster because you'll only have to solve one problem at a time.
I don't have any tutorials for Maven or Eclipse but for Cucumber you use:
https://docs.cucumber.io/docs/guides/10-minute-tutorial/
I am new to the whole Gradle thing and I find amazing already. I am experimenting with the tutorials they offer on their website on how to setup a project, build etc etc. My question is the following.
I have successfully set up my first project, build it and run it. After this Eclipse shows an error about not being able to find library imports (the ones resolved automatically by Gradle). How am I supposed to fix this?
Also are there any good addons for Eclipse that offer Gradle commands (I am currently building the project by running the command on Cygwin) as well as syntax highlighting for build file?
I am trying to compile a plugin for Bukkit and I cant seem to get it to work. I have copied some code from github "GitHub Code" and have imported it into eclipse as a maven project. When I try and do run-as 'Maven Build' it displays lot of text but finally gives me these errors.
Failed to execute goal on project BlockHunt: Could not resolve dependencies for project nl.Steffion:BlockHunt:jar:0.2.1-
b${env.BUILD_NUMBER}: Failed to collect dependencies at org.bukkit:bukkit:jar:1.7.9-R0.2-SNAPSHOT:
Failed to read artifact descriptor for org.bukkit:bukkit:jar:1.7.9-R0.2-SNAPSHOT: Could not transfer artifact org.bukkit:bukkit:pom:1.7.9-
R0.2-SNAPSHOT from/to bukkit-maven (http://repo.bukkit.org/content/repositories/releases/): Access denied
to http://repo.bukkit.org/content/repositories/releases/org/bukkit/bukkit/1.7.9-R0.2-SNAPSHOT/bukkit-1.7.9-R0.2-SNAPSHOT.pom.
I read in another post that I can put "dependency:copy-dependencies" in my run configurations for maven and its supposed try and download the stuff i need but it says access denied. I have never used maven or github so this is all new to me but it seems it should be really simple. All I really want to do is download the the code and create a jar file with it so I can use it. If anyone can point me in the right direction to making a jar from the code that would be great.
The plugin developer was getting the JavaDocs from the bukkit website, instead of downloading the jar and accessing it locally.
You may want to take a look at this, it may not specifically solve this problem, but it could help you get the code off of Github and into Eclipse correctly. – Jojodmo yesterday
His example showed you how to link to it locally.
Sometimes bukkit make some of their builds 'private', they do this to stop people downloading builds that did not pass the testing phase.
Remember that the link they are using is 1.7.9. At this time 1.8.1 is out so you might want to use the latest version.
I am completely new to GAE and maybe this question could be quite trivial, anyway I present my case.
I followed the "Try Google App Engine Now" tutorial without any problems (I choose the java project and I use Chrome).
When I try to deploy the project on GAE something goes wrong, I can create the project on GAE but I don't know what to do next:
What command should I use to deploy?
Thanks
Assuming that you have been able to create your application and have been successful in running it locally, please follow the instructions over here for uploading your application.
https://developers.google.com/appengine/docs/java/tools/uploadinganapp#Uploading_the_App
Basically, you should do some configuration such as filling the project-ID at app.yaml.
Then you can use the terminal to change to your project directory, afterwards you can invoke Maven as 'mvn appengine:update'
You can follow the instructions at the following link:
https://cloud.google.com/appengine/docs/java/gettingstarted/uploading
I am having an issue with Spring STS. I'm receiving the following messages:
This one when trying to download the template projects:
"Error while downloading or parsing descriptors file
'https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/descriptor.xml':
org.eclipse.core.runtime.CoreException: Error while retrieving
https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/descriptor.xml"
...and this one when I check for updates:
"Some sites could not be found. See the error log for more detail. No
repository found at
http://download.eclipse.org/tools/gef/updates/releases/site.xml. No
repository found at http://geronimo.apache.org/devtools/. Unable to
read repository at
https://dl-ssl.google.com/android/eclipse/content.xml.
java.util.NoSuchElementException"
also, see the attachment for a screen shoot of how the tool suite will not import java.whatever and/or org.springframework.whatever
I believe that all three of these issues are related however, I can't prove or fix it.
There are some possible things to be checked in here,
1. Are you under some kind of proxy?
2. Did you download Spring STS directly or updated eclipse?
3. If your Spring STS is not working properly, you can download latest eclipse and use this link as update site.
4. You can check your project classpath also to just cross confirm that you are not missing anything up there.
HTH