-
1. Re: Using JBoss Tools in Maven projects
snjeza Jul 7, 2009 2:37 PM (in response to sanches)You can create a project as described in https://jira.jboss.org/jira/browse/JBIDE-3874 - screencast http://screencast.com/t/bOv02ocE
The project can be used in Eclipse and from the command line.
You can also create a wtp project using maven-eclipse-plugin. See http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html and http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html -
2. Re: Using JBoss Tools in Maven projects
sanches Jul 7, 2009 4:08 PM (in response to sanches)Hi snjeza,
Thank you very much!
You can create a project as described in https://jira.jboss.org/jira/browse/JBIDE-3874 - screencast http://screencast.com/t/bOv02ocE
The project can be used in Eclipse and from the command line.
Excellent! I'll follow this screencast and have a try.
Isn't any documentation already available?
You can also create a wtp project using maven-eclipse-plugin. See http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html and http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html
I haven't heard much about WTP, so first case will be first :)
But, thank you for another option!
Alex. -
3. Re: Using JBoss Tools in Maven projects
sanches Jul 8, 2009 3:29 PM (in response to sanches)snjeza,
I've installed fresh Eclipse Galileo 3.5, downloaded and installed:
JBossASTools 2.1.0.M3 from nightly build site ()
* Dev build of Maven plugin from http://m2eclipse.sonatype.org/update-* dev version of plugin is displayed as 0.9.9.2009.07071528
(newer than shown in the screencast at http://screencast.com/t/bOv02ocE)
* Seam 2.1.2 (had to, without installed Seam wizard blocks)
I followed the steps like in the screencast, and discovered the following troubles:
* After pressing 'Finish' button in the wizard for 'Seam Web Project' something is happening, but dialog is not closed.
* Single project is created (not bundle (ear+ejb+parent+test), as in screencast)
* JBoss Maven Integration Facet is not chosen in the facets of that single project, and when I try to check it and click Ok, the error is displayed:
"Failed while installing JBoss Maven Integration 1.0.
Reason:
Build path contains duplicate entry:
'org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER' for project 'mvntst'" -
4. Re: Using JBoss Tools in Maven projects
snjeza Jul 8, 2009 6:13 PM (in response to sanches)m2eclipse has changed API. I have created https://jira.jboss.org/jira/browse/JBIDE-4588 and will fix it ASAP.
-
5. Re: Using JBoss Tools in Maven projects
snjeza Jul 9, 2009 9:40 AM (in response to sanches)sanches,
you can use the 0.9.8.200905041414 version of m2eclipse that is compatible with the current JBoss Maven Integration. This version is placed on the http://m2eclipse.sonatype.org/update update site. -
6. Re: Using JBoss Tools in Maven projects
sanches Jul 10, 2009 9:33 AM (in response to sanches)snjeza,
Thanks, that version of m2eclipse works as shown in screencast.
Do I actually use Maven Integration feature only with Dynamic Web Projects?
On the same configuration neither EAR nor EJB projects allow adding JBoss Maven Integration facet together with EAR or EJB module:
On Project Facets' page errors are shown:
"Requires all of the following facets:
Dynamic Web Module 2.3 or newer"
I am asking because I've seen following statement in JBIDE-3874:The following features have been added:
- JBoss Maven Integration facet
This facet adds Maven capabilities to the project (Maven nature, builder and classpath container). If the project contains the EJB, WAR or EAR facet, the JBoss Maven Integration facet adds the corresponding plugin. -
7. Re: Using JBoss Tools in Maven projects
snjeza Jul 10, 2009 3:17 PM (in response to sanches)That is a bug. See https://jira.jboss.org/jira/browse/JBIDE-4604
Thanks -
8. Re: Using JBoss Tools in Maven projects
sanches Jul 15, 2009 6:59 AM (in response to sanches)snjeza,
Is developer supposed to be able to turn on Maven Integration for new projects like "EJB Project" or "Enterprise Application Project"?
I upgraded to Version: 1.0.0.M3-N200907101443-H38,
but do not see "Maven Integration" Facet in:
File->New->EJB Project->Configuration->Modify
Thanks,
Alex. -
9. Re: Using JBoss Tools in Maven projects
snjeza Jul 15, 2009 9:29 AM (in response to sanches)I have fixed https://jira.jboss.org/jira/browse/JBIDE-4604 , but there isn't any successful build yet that includes this fix.
The new build will require m2eclipse >= 0.9.9.200907071528 that can be updated from the http://m2eclipse.sonatype.org/update-dev update site. -
10. Re: Using JBoss Tools in Maven projects
dgolovin Jul 15, 2009 3:07 PM (in response to sanches)this fix is available from last nightly build update site.
Nightly update: http://download.jboss.org/jbosstools/updates/nightly/trunk/
Build results: http://download.jboss.org/jbosstools/builds/nightly/3.1.0.M3/200907150917 -
11. Re: Using JBoss Tools in Maven projects
sanches Jul 17, 2009 11:34 AM (in response to sanches)snjeza,
I've tried latest nightly build of Maven Integration with developer ver. of m2eclipse and Subversion from tigris.org
The following looks like a bug:
The EJB project creates pretty well with proper JRE and Maven Dependencies build entries.
But when I right-click on the project and choose Maven->Update Project configuration, proper JRE is removed and incorrect one is added:
"J2SE-1.4 (jdk1.6.0_10)"
Due to this an error appears on the project:
EJB 3.0 requires Java 5 or newer
The same behavior is when I check out project from SVN (SVN Repositories->right click on project->Check out as Maven Project), the project which is checked out, has following build path entry:
"J2SE-1.4 (jdk1.6.0_10)"
The list of Execution environment contains many entries like
"J2SE-1.* (jdk1.6.0_10)", but all marked with (jdk1.6.0_10) -
12. Re: Using JBoss Tools in Maven projects
sanches Jul 17, 2009 11:55 AM (in response to sanches)Sorry, this is actually looks like a feature.
Adding version to compiler plugin solves the trouble.Proper runtime is used then.<plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin>
-
13. Re: Using JBoss Tools in Maven projects
snjeza Jul 17, 2009 4:40 PM (in response to sanches)I have created a jira enhancement request: https://jira.jboss.org/jira/browse/JBIDE-4632
-
14. Re: Using JBoss Tools in Maven projects
sanches Jul 23, 2009 8:22 AM (in response to sanches)snjeza,
Seems like I can not check Maven Integration Facet on Maven project with packaging type of jar.
pom.xml:<packaging>jar</packaging>
jar packaging is valid for complex Maven J2EE projects,
where parent project contains some EJBs, container EAR and shared jars.
Shared jar is not J2EE module, but is included into resulting EAR
Alex.