Disable the maven nature for the project (via the right-click menu), run mvn eclipse:clean (while your project is open in STS/eclipse), and then re-enable the maven nature.http://stackoverflow.com/questions/10564684/how-to-fix-error-updating-maven-project-unsupported-iclasspathentry-kind-4
Friday, September 7, 2012
How to fix error “Updating Maven Project”. Unsupported IClasspathEntry kind=4?
Reposting an answer to this problem.
Monday, June 25, 2012
Fedora: Add Application to Activities
> cd ~/.local/share/applications
create file: [application name].desktop
[Desktop Entry]
Type=Application
Name=[...]
Comment=[...]
Icon=[absolute path to icon]
Exec=[absolute path to application executable]
Terminal=false
Categories=[categories ';' separated]
> sudo update-desktop-database
create file: [application name].desktop
[Desktop Entry]
Type=Application
Name=[...]
Comment=[...]
Icon=[absolute path to icon]
Exec=[absolute path to application executable]
Terminal=false
Categories=[categories ';' separated]
> sudo update-desktop-database
Wednesday, June 6, 2012
Git Cheat Sheet
A handy little git cheat sheet that I found:
http://cheat.errtheblog.com/s/git/
Monday, June 4, 2012
Referencing third-party library source code in a GWT Project
Found a great blog post on how to use 3rd party source code in a GWT project.
The only thing that I will add is that you will also need need to configure just your projects module to be loaded, otherwise you will get an error about gwt.xml files not having an entry point.
The only thing that I will add is that you will also need need to configure just your projects module to be loaded, otherwise you will get an error about gwt.xml files not having an entry point.
...
<artifactId>maven-source-plugin</artifactId>
...
<configuration>
...
<modules>
<module>com.my.Module</module>
</modules>
...
</configuration>
...
<artifactId>maven-source-plugin</artifactId>
...
<configuration>
...
<modules>
<module>com.my.Module</module>
</modules>
...
</configuration>
...
Friday, May 11, 2012
Adding Spring to the mix (GWT, Maven, Eclipse)
Great tutorial for adding Spring into the mix of my last post.
http://www.springbyexample.org/examples/simple-gwt-spring-webapp-reference.html
The tutorial doesn't cover everything though, make sure to take a look at the sample application
svn co http://svn.springbyexample.org/web/simple-gwt-webapp/tags/1.0/ simple-gwt-webapp
http://www.springbyexample.org/examples/simple-gwt-spring-webapp-reference.html
The tutorial doesn't cover everything though, make sure to take a look at the sample application
svn co http://svn.springbyexample.org/web/simple-gwt-webapp/tags/1.0/ simple-gwt-webapp
GWT + Maven + Eclipse = Pain
GWT was definitely not designed with Maven in mind, and getting it all to work within Eclipse is a nightmare. I have managed to get this mostly working, here is what I have so far.
Please install Eclipse with the m2eclipse and GWT plugins.
Start by using the GWT archetype, sadly, this will not produce a project that works, but at least gets you pointed in the right direction.
This will request some details, including a module name. Go ahead and enter in all the fields, but the first thing you will need to do is a search on the entire project in eclipse for literally ${module} and replace that with the actual name of your new module. You should at least find this problem in the org.eclipse.wst.common.component xml file.
You will also notice that the pom.xml file has some compilation issues. I have not figured out how to resolve other than commenting out the offending lines. This doesn't seem to hurt anything, but you will need to manually generate the Async interfaces.
Next up, you will need to create a Run Configuration, most easily done by right clicking your project -> run as -> (G) Web Application. This will throw some error about needing to include the module name in the arguments. So go find the Run Configuration that it created and tack on the end the full path to your endpoint (eg. com.myapp.MyEndPoint)
Now you should be able to get the server standing by following the run as step above again.
You will notice that there are still some funky warnings being spat out, which I have not totally figured out yet, but hopefully this will help someone out.
Please install Eclipse with the m2eclipse and GWT plugins.
Start by using the GWT archetype, sadly, this will not produce a project that works, but at least gets you pointed in the right direction.
mvn archetype:generate \
-DarchetypeRepository=repo1.maven.org \
-DarchetypeGroupId=org.codehaus.mojo \
-DarchetypeArtifactId=gwt-maven-plugin \
-DarchetypeVersion=2.4.0
-DarchetypeRepository=repo1.maven.org \
-DarchetypeGroupId=org.codehaus.mojo \
-DarchetypeArtifactId=gwt-maven-plugin \
-DarchetypeVersion=2.4.0
This will request some details, including a module name. Go ahead and enter in all the fields, but the first thing you will need to do is a search on the entire project in eclipse for literally ${module} and replace that with the actual name of your new module. You should at least find this problem in the org.eclipse.wst.common.component xml file.
You will also notice that the pom.xml file has some compilation issues. I have not figured out how to resolve other than commenting out the offending lines. This doesn't seem to hurt anything, but you will need to manually generate the Async interfaces.
Next up, you will need to create a Run Configuration, most easily done by right clicking your project -> run as -> (G) Web Application. This will throw some error about needing to include the module name in the arguments. So go find the Run Configuration that it created and tack on the end the full path to your endpoint (eg. com.myapp.MyEndPoint)
Now you should be able to get the server standing by following the run as step above again.
You will notice that there are still some funky warnings being spat out, which I have not totally figured out yet, but hopefully this will help someone out.
Thursday, May 10, 2012
m2eclipse: Add archetypes to create maven project
Ran into an issue where I could not use an archetype from within Eclipse. In order to do so, a new catalog will need to be created, then Eclipse simply needs to be told where it is.
In Eclipse create a new Maven project, when you get to the screen with the catalog drop down box, click configure and add a Local Catalog pointing to the xml file created above. Ok out.
This catalog will now be added to the drop down box and can be selected.
Enjoy.
- Navigate to your .m2/repository in your console
- Enter the command 'mvn archetype:crawl'
In Eclipse create a new Maven project, when you get to the screen with the catalog drop down box, click configure and add a Local Catalog pointing to the xml file created above. Ok out.
This catalog will now be added to the drop down box and can be selected.
Enjoy.
Subscribe to:
Posts (Atom)