[jbosstools-dev] [jdf-dev] JDF Quickstarts in JBoss Central?

Rob Cernich rcernich at redhat.com
Thu Oct 11 11:18:50 EDT 2012



----- Original Message -----
> >>> 
> >>> But the quickstarts could for now add:
> >>> 
> >>> <m2eclipse.wtp.contextRoot>jboss-as-whatever</m2eclipse.wtp.contextRoot>
> >>> 
> >>> and m2e would be able to adjust it afaik.
> >> Is this added to the jboss-web.xml file? Very few of the
> >> quickstarts
> >> have a jboss-web.xml file.
> >> 
> >>> I'm surprised they ever were renamed with jboss-web.xml since
> >>> that would break its usage instantly from tools...or the "test
> >>> from jboss tools" was missed when doing that fix ;(
> >> Pete, correct me if I'm wrong, but I believe this tag
> >> <finalName>jboss-as-QUICKSTART_NAME></finalName> in the pom.xml
> >> file is
> >> how the context is set.
> > 
> > Right.
> > 
> > There is generally no convention that the maven artifact id must be
> > the same as the directory name of the project must be the same as
> > the context root. This is something that Eclipse/JBoss Tools/m2e
> > adds as a requirement.
> 
> problem is there isn't a good place to get the "right" info from.

I'm not sure how the quickstarts are laid out in the repo, but for SwitchYard, we have a quickstart parent, with modules for each of the various quickstarts.  When I was looking at doing this before, I was copying the tree down and placing parent in the workspace.  That effectively works around the project name issues for all but the parent project (which doesn't really specify a folder name anyway).  This makes for easy translation to the installed quickstarts and the source repo (i.e. the folder names for the quickstarts are all the same).

> 
> > To date, we've followed the rule that the artifact id (which
> > translates to project name in eclipse) must be the same as the
> > context root, but that the directory name can be different.
> > 
> > This seems to work for me in Eclipse/m2e/JBoss Tools, and I don't
> > really want to change all quickstart directory names, it's going
> > to make them harder to explore.
> > 
> > Can we check what the actual problem is here?
> 
> Yes, thinking about it i'm not grokking if the problem Fred sees is
> related to just the groovy/project examples or also a problem for
> when importing the quickstarts ?
> 
> if also a problem for quickstarts my suggestion is to put in
> <m2eclipse.wtp.contextRoot>jboss-as-whatever</m2eclipse.wtp.contextRoot>
> 
> if only for the groovy/projectexamples then yeah...why ? :)
> 
> /max
> 
> 
> 
> _______________________________________________
> jbosstools-dev mailing list
> jbosstools-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
> 


More information about the jbosstools-dev mailing list