Hi, I do not use maven to generate ejb clint. I have a project that contains ejb client code. Here is the pom of my ejb client:
<?xml version="1.0" encoding="UTF-8"?> <project> <modelVersion>4.0.0</modelVersion> <groupId>net.seapin.framework</groupId> <artifactId>timedOpsClient</artifactId> <version>1.0.0</version> <name>Timed Ops. Client</name> <description> </description> <build> <sourceDirectory>src</sourceDirectory> </build> <dependencies> <dependency> <groupId>javax</groupId> <artifactId>j2ee</artifactId> <version>6.0.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>net.seapin.framework</groupId> <artifactId>commons</artifactId> <version>1.0.0</version> </dependency> </dependencies> </project> In my ear, I try to define this module as ejbClientModule, but I receive the error: Artifact[ejb-client:net.seapin.framework:timedOpsClient] is not a dependency of the project. My ear pom is as following: <?xml version="1.0" encoding="UTF-8"?> <project> <modelVersion>4.0.0</modelVersion> <groupId>net.seapin.framework.test</groupId> <artifactId>timetaskEAR</artifactId> <packaging>ear</packaging> <name /> <version>0.0.1</version> <description>test</description> <build> <plugins> <plugin> <executions> <execution> <phase>package</phase> <goals> <goal>generate-application-xml</goal> <goal>ear</goal> </goals> </execution> </executions> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> </manifest> </archive> <modules> <ejbModule> <groupId>net.seapin.framework</groupId> <artifactId>timedOps</artifactId> </ejbModule> <ejbClientModule> <groupId>net.seapin.framework</groupId> <artifactId>timedOpsClient</artifactId> </ejbClientModule> <webModule> <groupId>net.seapin.framework</groupId> <artifactId>timetask-web</artifactId> </webModule> </modules> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>net.seapin.framework</groupId> <artifactId>timedOps</artifactId> <version>1.0.1</version> <type>ejb</type> </dependency> <dependency> <groupId>net.seapin.framework</groupId> <artifactId>timetask-web</artifactId> <version>1.0.0</version> <type>war</type> </dependency> <dependency> <groupId>net.seapin.framework</groupId> <artifactId>timedOpsClient</artifactId> <version>1.0.0</version> </dependency> </dependencies> </project> How to tell use ejb client that I genereated? What am I doing wrong? Thanks! Dan