Projet

Général

Profil

Make Agents Yourself » Historique » Révision 13

Révision 12 (Anonyme, 13/11/2011 11:23) → Révision 13/104 (Anonyme, 13/11/2011 11:39)

h1. SpeADL MAY 

 This page is about the upcoming version of MAY based on the SpeADL language. 

 h2. Installation 

 To install it, use the following update site with Eclipse Helios: 

  http://www.irit.fr/~Victor.Noel/may/update-may-2/ 

 Development version is at (careful, could be buggy and breaking everything): 

  http://www.irit.fr/~Victor.Noel/may/update-may-2-snpashots/ 

 h2. Setting up a project 

 After creating a Java project, don't forget to add the SpeADL Nature to the project (right-click, configure). 
 Then create a new file with the speadl extension. 

 h2. Maven integration 

 Common components are available as Maven artefact. 

 For maven support in Eclipse, use the following plugin: http://eclipse.org/m2e/ 

 In particular, the following update site can be used: 

   http://download.eclipse.org/technology/m2e/releases 

 Maven artefacts with common components are available in the following repository: 

  http://www.irit.fr/~Victor.Noel/maven-repos/ 

 A good starting pom.xml for a new project is the following: 

 <pre> 
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 
	 <modelVersion>4.0.0</modelVersion> 
	 <groupId>XXX</groupId> 
	 <artifactId>XXX</artifactId> 
	 <version>0.0.1-SNAPSHOT</version> 
	 <dependencies> 
		 <dependency> 
			 <groupId>fr.irit.smac.may.lib</groupId> 
			 <artifactId>common-components</artifactId> 
			 <version>0.0.3</version> 
			 <type>jar</type> 
			 <scope>compile</scope> 
		 </dependency> 
	 </dependencies> 
	 <repositories> 
		 <repository> 
			 <id>fr.irit.smac</id> 
			 <url>http://www.irit.fr/~Victor.Noel/maven-repos/</url> 
		 </repository> 
	 </repositories> 
	 <build> 
		 <plugins> 
			 <plugin> 
				 <groupId>org.codehaus.mojo</groupId> 
				 <artifactId>build-helper-maven-plugin</artifactId> 
				 <version>1.7</version> 
				 <executions> 
					 <execution> 
						 <id>add-source</id> 
						 <phase>generate-sources</phase> 
						 <goals> 
							 <goal>add-source</goal> 
						 </goals> 
						 <configuration> 
							 <sources> 
								 <source>src-gen</source> 
							 </sources> 
						 </configuration> 
					 </execution> 
				 </executions> 
			 </plugin> 
		 </plugins> 
	 </build> 
 </project> 
 </pre> 

 h2. Sources 

 The source code can be downloaded using the Mercurial DVCS: 

 MAY: 

  hg clone https://anon@wwwsecu.irit.fr/hg/SMAC/victor-noel-phd/may/may/ 

 Libraries and examples: 

  hg clone https://anon@wwwsecu.irit.fr/hg/SMAC/victor-noel-phd/may/lib/ 

 For Mercurial integration in Eclipse, use the following plugin: http://javaforge.com/project/HGE 

 In particular, the following update site can be used: 

  http://cbes.javaforge.com/update 

 h2. Work In Progress 

 To install it: [[SpeADL MAY Install]] 

 Install Maven Plugin : [[Maven Plugin Install]] 

 To set-up a new project using Maven: [[SpeADL MAY Project SetUp]]