voyent
Maven archetype for ICEfaces-2.0.0 with compat and ACE components  XML
Forum Index -> General Help
Author Message
judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1396
Offline


A maven archetype is now available on the snapshots repository:-
Code:
       <repository>
         <id>snapshots</id>
         <url>http://anonsvn.icefaces.org/repo/maven2/snapshots</url>
         </repository>
 


with the following information:-
Code:
 <groupId>org.icefaces</groupId>
 <artifactId>icefaces-all-webapp-archetype</artifactId>
 <version>2.0.0</version>
 


The navigation is done using ICEfaces custom "Windows" scope, the new fileEntry component (ACE) is used on the same page as compat Code:
<ice:dataTable>
. Also see compat components within the ACE tabSet component.
A good starting point for ICEfaces2.0.0 development.

For more information on using maven arcthetypes:-
http://maven.apache.org/guides/introduction/introduction-to-archetypes.html

judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1396
Offline


There are now three archetypes available on the snapshots repository:-
1) icefaces-compat-webapp-archetype which is an ICEfaces-2.0 basic application using compat components
2) icefaces-ace-webapp-archetype which is an ICEfaces-2.0 sample application using the ace components
3) the above mentioned icefaces-all-webapp-archetype.

Please try them out to quickly generate some base applications to get you on your way to develop with ICEfaces-2.0
hrishi2323

Joined: 30/Dec/2010 06:28:54
Messages: 11
Offline


Hi,

Thanks Judy, for the archetypes. Just adding the maven commands as a helper for some of the guys, not used to maven.

Use the below mvn command to create the project from the command prompt. This might be useful for some folks, trying to create the project from the command prompt.

Code:
 mvn archetype:generate -DarchetypeArtifactId=icefaces-all-webapp-archetype -DarchetypeGroupId=org.icefaces -DarchetypeVersion=2.0.0
 


Note: You also need to pass the repository either in the command as
Code:
 -DarchetypeRepository=http://anonsvn.icefaces.org/repo/maven2/snapshots
 


or you can also add the repository in the %M2_HOME%/conf/settings.xml file as
Code:
 <profile>
   <repositories>
      <repository>
         <id>snapshots</id>
         <url>http://anonsvn.icefaces.org/repo/maven2/snapshots</url>
      </repository>
   </repositories>
 </profile>
 


Thanks
Hrishi
kumar.sambhav.jain

Joined: 07/Jan/2011 22:45:00
Messages: 5
Offline


Hi

Thanks Hrishi. It worked smoothly.
Just to add for the eclipse community, use

>mvn -Dwtpversion=2.0 eclipse:eclipse

to import project in eclipse. -Dwtpversion=2.0 will allow you to run the project from eclipse.
kumar.sambhav.jain

Joined: 07/Jan/2011 22:45:00
Messages: 5
Offline


Hi

I am facing issue while opening faces-config.xml in eclipse. It is showing only 'Source' tab in the editor.

I tried opening it with faces-config editor using right click but didn't work.
hrishi2323

Joined: 30/Dec/2010 06:28:54
Messages: 11
Offline


Sambhav,

You need to configure maven-eclipse plugin by adding the facet for jsf for this. You can do it using the below block of code

Code:
 <plugin>
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-eclipse-plugin</artifactId>
 				<inherited>true</inherited>
 				<configuration>
 [b]					<additionalProjectFacets>
 						<jst.jsf>2.0</jst.jsf>
 					</additionalProjectFacets>[/b]
 					<wtpapplicationxml>true</wtpapplicationxml>
 					<wtpversion>2.0</wtpversion>
 					<classpathContainers>
 						<classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
 					</classpathContainers>
 				</configuration>
 			</plugin>
 
kumar.sambhav.jain

Joined: 07/Jan/2011 22:45:00
Messages: 5
Offline


Hi

I am unable to see all icefaces components in my eclipse palette. How can I add them?

Thanks
fabdib

Joined: 26/May/2008 00:00:00
Messages: 9
Offline


Hi to everyone,
someone have a maven archetype with icefaces 2.0, spring and hibernate (like icefusion), can someone help me?

Thanks, Fabio.
kumar.sambhav.jain

Joined: 07/Jan/2011 22:45:00
Messages: 5
Offline


Hi

You can use maven archetype to get started.
> mvn archetype:generate <enter>
>choose 292

Use attached POM file and then simple mvn clean install




 Filename pom.xml [Disk] Download
 Description POM file for icefaces-jsf-spring getting started app
 Filesize 7 Kbytes
 Downloaded:  742 time(s)

 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team