Hello, it turned out I got the wrong archetype with m2eclipse from the repo (I am using Nexus as a Repository proxy and unifier) , it was from http://mgp.sourceforge.net/ and they seem to provide Nexus indexes for their repository. Your archetype actually is really well equipped as I saw when I installed it manually. Yay!
May you could consider providing a Nexus index with your repository? Information on that can be found here: http://docs.codehaus.org/display/M2ECLIPSE/Nexus+Indexer That could improve the availability a lot. Thanks a lot and regards Joti On 2 Okt., 20:28, joti <[EMAIL PROTECTED]> wrote: > Hello, > > it is highly appreciated to see that we now have an out of the box > archetype for GWT projects. :D > Currently i use cypal-Studio (http://code.google.com/p/cypal-studio/, > now in its 1.0 and quite stable) with Eclipse to facilitate my GWT- > Development. But until their 2.0 is out they need WTP and Faceted > Project in Eclipse. I wonder if it would bea good idea to add the > needed config stanzas for the Eclipse-Plugin to the archetype since > maybe some more people use Eclipse with GWT and that would make the > archetype easier to use with Eclipse. > > Looking forward to feedback. > > Cheers, > Joti > > On 27 Sep., 20:06, Charlie Collins <[EMAIL PROTECTED]> wrote: > > > I have updated the docs to address this, and tested with a clean repo > > - the current instructions work fine for > > me:http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plug.... > > > Please let me know if that fixes it, or not. > > > thanks > > > On Sep 27, 7:55 am, Charlie Collins <[EMAIL PROTECTED]> wrote: > > > > Ah dammit! This is indeed my bad in the documentation. And on this > > > one I thought I checked and checked and checked again, sorry, I missed > > > it. > > > > The packaging for an archetype should be JAR - and not MAVEN- > > > ARCHETYPE. > > > > I don't recall now where I got that packaging type, but it WAS in the > > > archetype instructions or was generated for me by the archetype:create > > > command or something. Since that packaging is what the archetype > > > actually IS (http://gwt-maven.googlecode.com/svn/trunk/maven- > > > googlewebtoolkit2-archetype/pom.xml) that's what I put in the > > > instructions. But it turns out that screws things up. > > > > Watching this as it goes: > > > > charliecollins$ mvn install:install-file -DgroupId=com.totsp.gwt - > > > DartifactId=maven-googlewebtoolkit2-archetype -Dversion=1.0 - > > > Dpackaging=maven-archetype -Dfile=./maven-googlewebtoolkit2- > > > archetype-1.0.jar > > > [INFO] [install:install-file] > > > [INFO] Installing /opt/projects/./maven-googlewebtoolkit2- > > > archetype-1.0.jar to /Users/charliecollins/.m2/repository/com/totsp/ > > > gwt/maven-googlewebtoolkit2-archetype/1.0/maven-googlewebtoolkit2- > > > archetype-1.0.maven-archetype > > > > Note there that it installed a file NAMED "maven-googlewebtoolkit2- > > > archetype-1.0.maven-archetype" - that is wrong, you don't want that. > > > > After switching it to JAR it installs properly, and you end up with a > > > jar in your repo, and then the archetype command itself works fine. > > > > I will test some more and update the instructions in the docs. > > > > On Sep 27, 7:41 am, Charlie Collins <[EMAIL PROTECTED]> wrote: > > > > > Sorry it's giving you so much trouble. I have used it on several > > > > platforms and it seems to work. I am using Maven 2.0.9, just out of > > > > curiosity what version of Maven are you using? "mvn -version" > > > > > Also, reading through your transcript I did notice one small > > > > discrepancy, not sure if it matters, but it's worth looking into: > > > > > the mvn install:install-file command seems to work just fine for you - > > > > and you followed the instructions perfectly - > > > > "[EMAIL PROTECTED]:~/tmp$ mvn install:install-file - > > > > DgroupId=com.totsp.gwt -DartifactId=maven-googlewebtoolkit2-archetype - > > > > Dversion=1.0 -Dpackaging=maven-archetype -Dfile=maven- > > > > googlewebtoolkit2-archetype-1.0.jar" > > > > > but, Maven itself is giving a slightly different instruction after it > > > > can't find the artifact in the later commands: > > > > "mvn install:install-file -DgroupId=com.totsp.gwt -DartifactId=maven- > > > > googlewebtoolkit2-archetype -Dversion=1.0 -Dpackaging=jar -Dfile=/path/ > > > > to/file" > > > > > Note there that Maven is saying to use packaging JAR and I said (in > > > > the directions) to use packaging MAVEN-ARCHETYPE. Try the install > > > > command again with packaging JAR and see if that works? > > > > > I will look into this more though, and add an issue to the tracker to > > > > delete my repos and so on and try BOTH ways (profile with repo, and or > > > > local install). > > > > > ------ > > > > > Also, as to where the GWT non Java files go, yes, you can put them in > > > > src/main/resources and that is arguably a better place to put them > > > > (that is where I put them in my projects). The archetype though is > > > > trying to keep things as simple as possible, and because GWT is sort > > > > of special in regards to those "resources" sometimes people run into > > > > other issues if they aren't in the src tree. Good catch on your part > > > > to notice that, but the files can go in either place. > > > > > On Sep 26, 6:17 pm, Jeff Bowman <[EMAIL PROTECTED]> wrote: > > > > > > 1) I have tried to use the archetype but am failing. Regardless of > > > > > having an active profile, it seems to always look > > > > > inhttp://repo1.maven.org. > > > > > I have provided a transcript athttp://www.bowmansarrow.uswhichshows > > > > > me trying to install it from the jar (mvn install:install-file as > > > > > specified in the README). If you could point out where I'm just not > > > > > getting it I'd appreciate it. > > > > > > 2) I have been putting the public folder and the gwt.xml file in src/ > > > > > main/resources (ie src/main/resources/<package>/public/Application. > > > > > (html|css) and src/main/resources/<package>/Application.gwt.xml) which > > > > > is where I thought non-java code was going, but I notice (via jar - > > > > > tf ...) the archetype puts those things in src/main/java. Am I doing > > > > > it wrong? > > > > > > Finally, as noobish as I seem to be, I'm interested in helping out > > > > > with the archetype if you want it or would find it useful. > > > > > > Thanks for an awesome tool! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "gwt-maven" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/gwt-maven?hl=en -~----------~----~----~----~------~----~------~--~---
