Commits

Anonymous committed d2673b2

Configured xdoclet plugin to run the same ejbdoclet task that was used in the Ant build.

git-svn-id: http://svn.opensymphony.com/svn/propertyset/branches/maven_build@221bf3cbcdd-1c1a-0410-9a68-d6f521e3fa7b

  • Participants
  • Parent commits 64b18d3
  • Branches maven_build

Comments (0)

Files changed (1)

File providers/ejb2/pom.xml

 	</parent>
 	<groupId>com.opensymphony.propertyset.providers</groupId>
 	<artifactId>ejb2</artifactId>
-	<packaging>jar</packaging>
+	<packaging>ejb</packaging>
 
 	<name>PropertySet -> Providers -> EJB 2</name>
 	<description></description>
 			<groupId>javax.ejb</groupId>
 			<artifactId>ejb</artifactId>
 			<version>2.0</version>
+			<scope>provided</scope>
 		</dependency>
 	</dependencies>
 
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>xdoclet-maven-plugin</artifactId>
+				<executions>
+					<execution>
+						<phase>generate-sources</phase>
+						<goals>
+							<goal>xdoclet</goal>
+						</goals>
+						<configuration>
+							<tasks>
+								<ejbdoclet verbose="true" force="true" ejbSpec="2.0" destDir="${project.build.directory}/generated-sources/xdoclet">
+									<fileset dir="${project.build.sourceDirectory}">
+										<include name="**/*EJB.java"></include>
+									</fileset>
+									<remoteinterface/>
+									<localinterface/>
+									<homeinterface/>
+									<localhomeinterface/>
+									<entitycmp/>
+									<utilobject pattern="{0}HomeFactory" cacheHomes="yes"/>
+									<deploymentdescriptor destDir="${project.build.outputDirectory}/META-INF" validatexml="true" description="OpenSymphony PropertySet" displayname="PropertySet Module"/>
+									<jboss version="3.0" destdir="${project.build.outputDirectory}/META-INF"/>
+									<weblogic version="7.0" destdir="${project.build.outputDirectory}/META-INF" datasource="defaultDS" createtables="True"/>
+									<jrun version="4.0" destdir="${project.build.outputDirectory}/META-INF"/>
+									<orion version="2.0" destdir="${project.build.outputDirectory}/META-INF"/>
+								</ejbdoclet>
+							</tasks>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
 </project>