You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sean McNamara <ta...@yahoo.com> on 2006/04/28 17:57:37 UTC

ejb-client jar troubles...

Sorry for the repeat question, but still looking for an answer.

When specifying a dependency on an ejb using the ejb-client type, the jarfile is being packaged as foo-ejb-1.0.client-ejb rather than foo-ejb-1.0-client.jar.

Is there a way to change this behavior?

Thanks.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: ejb-client jar troubles...

Posted by Sean McNamara <ta...@yahoo.com>.
EJB POM
----------------------------------------------
<?xml version="1.0" encoding="UTF-8"?><project>
  <parent>
    <artifactId>pom.xml</artifactId>
    <groupId>com.arca.surveillance</groupId>
    <version>3.6.0-BONDS-SNAPSHOT</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.arca.surveillance.ejb</groupId>
  <artifactId>surveillance-ejb</artifactId>
  <packaging>ejb</packaging>
  <name>Surveillance EJB</name>
  <version>3.6.0-BONDS-SNAPSHOT</version>
  <build>
    <defaultGoal>install</defaultGoal>
    <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" ejbSpec="2.0" destDir="${project.build.directory}/generated-sources/xdoclet" force="true">
                  <fileset dir="${project.build.sourceDirectory}">
                    <include name="**/*Bean.java"></include>
                    <include name="**/*MDB.java"></include>
                  </fileset>
                  <packageSubstitution packages="ejb" substituteWith="interfaces"></packageSubstitution>
                  <homeinterface></homeinterface>
                  <remoteinterface></remoteinterface>
                  <localhomeinterface></localhomeinterface>
                  <localinterface></localinterface>
                  <session></session>
                  <utilobject cacheHomes="true" kind="physical"></utilobject>
                  <deploymentdescriptor destDir="${project.build.outputDirectory}/META-INF"></deploymentdescriptor>
                </ejbdoclet>
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-ejb-plugin</artifactId>
        <configuration>
          <generateClient>true</generateClient>
          <clientExcludes>
            <clientExclude>**/ejb/*.class</clientExclude>
          </clientExcludes>
          <archive>
            <manifest>
              <addClasspath>true</addClasspath>
            </manifest>
          </archive>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>com.arca.surveillance.core</groupId>
      <artifactId>surveillance-core</artifactId>
      <version>3.6.0-BONDS-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>geronimo-spec</groupId>
      <artifactId>geronimo-spec-ejb</artifactId>
      <version>2.1-rc4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <distributionManagement>
    <status>deployed</status>
  </distributionManagement>
</project>



WAR POM
------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?><project>
  <parent>
    <artifactId>pom.xml</artifactId>
    <groupId>com.arca.surveillance</groupId>
    <version>3.6.0-BONDS-SNAPSHOT</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.arca.surveillance.web</groupId>
  <artifactId>surveillance-web</artifactId>
  <packaging>war</packaging>
  <name>Surveillance WEB</name>
  <version>3.6.0-BONDS-SNAPSHOT</version>
  <build>
    <defaultGoal>war:install</defaultGoal>
  </build>
  <dependencies>
    <dependency>
      <groupId>com.arca.surveillance.ejb</groupId>
      <artifactId>surveillance-ejb</artifactId>
      <version>3.6.0-BONDS-SNAPSHOT</version>
      <type>ejb-client</type>
    </dependency>
    <dependency>
      <groupId>com.arca</groupId>
      <artifactId>core-ejb</artifactId>
      <version>1.0</version>
      <type>ejb-client</type>
    </dependency>
    <dependency>
      <groupId>com.arca.surveillance.core</groupId>
      <artifactId>surveillance-core</artifactId>
      <version>3.6.0-BONDS-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>struts</groupId>
      <artifactId>struts</artifactId>
      <version>1.1</version>
    </dependency>
    <dependency>
      <groupId>com.arca</groupId>
      <artifactId>common-web</artifactId>
      <version>3.5.1.b</version>
    </dependency>
    <dependency>
      <groupId>stxx</groupId>
      <artifactId>stxx</artifactId>
      <version>1.3</version>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>geronimo-spec</groupId>
      <artifactId>geronimo-spec-ejb</artifactId>
      <version>2.1-rc4</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <distributionManagement>
    <status>deployed</status>
  </distributionManagement>
</project>

----- Original Message ----
From: Wayne Fay <wa...@gmail.com>
To: Maven Users List <us...@maven.apache.org>
Sent: Friday, April 28, 2006 2:33:33 PM
Subject: Re: ejb-client jar troubles...

Attaching things does not work on this list.

You'll need to resend with the contents of your files in-line with
your email message.

Wayne

On 4/28/06, Sean McNamara <ta...@yahoo.com> wrote:
> Artifact is name with foo-1.0-client.jar in the repository.  It's only on packaging that it seems to change it's name.
>
> Attaching the POMs for both the EJB and the WAR.
>
> Thanks!
>
> ----- Original Message ----
> From: Tom Huybrechts <to...@gmail.com>
> To: Maven Users List <us...@maven.apache.org>; Sean McNamara <ta...@yahoo.com>
> Sent: Friday, April 28, 2006 12:03:24 PM
> Subject: Re: ejb-client jar troubles...
>
> How is the artifact named in the repository ?
> Can you post the POMs of the ejb-client artifact and of the artifact
> that depends on it ?
>
> Tom
>
> On 4/28/06, Sean McNamara <ta...@yahoo.com> wrote:
> > Sorry for the repeat question, but still looking for an answer.
> >
> > When specifying a dependency on an ejb using the ejb-client type, the jarfile is being packaged as foo-ejb-1.0.client-ejb rather than foo-ejb-1.0-client.jar.
> >
> > Is there a way to change this behavior?
> >
> > Thanks.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: ejb-client jar troubles...

Posted by Wayne Fay <wa...@gmail.com>.
Attaching things does not work on this list.

You'll need to resend with the contents of your files in-line with
your email message.

Wayne

On 4/28/06, Sean McNamara <ta...@yahoo.com> wrote:
> Artifact is name with foo-1.0-client.jar in the repository.  It's only on packaging that it seems to change it's name.
>
> Attaching the POMs for both the EJB and the WAR.
>
> Thanks!
>
> ----- Original Message ----
> From: Tom Huybrechts <to...@gmail.com>
> To: Maven Users List <us...@maven.apache.org>; Sean McNamara <ta...@yahoo.com>
> Sent: Friday, April 28, 2006 12:03:24 PM
> Subject: Re: ejb-client jar troubles...
>
> How is the artifact named in the repository ?
> Can you post the POMs of the ejb-client artifact and of the artifact
> that depends on it ?
>
> Tom
>
> On 4/28/06, Sean McNamara <ta...@yahoo.com> wrote:
> > Sorry for the repeat question, but still looking for an answer.
> >
> > When specifying a dependency on an ejb using the ejb-client type, the jarfile is being packaged as foo-ejb-1.0.client-ejb rather than foo-ejb-1.0-client.jar.
> >
> > Is there a way to change this behavior?
> >
> > Thanks.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: ejb-client jar troubles...

Posted by Sean McNamara <ta...@yahoo.com>.
Artifact is name with foo-1.0-client.jar in the repository.  It's only on packaging that it seems to change it's name.

Attaching the POMs for both the EJB and the WAR.

Thanks!

----- Original Message ----
From: Tom Huybrechts <to...@gmail.com>
To: Maven Users List <us...@maven.apache.org>; Sean McNamara <ta...@yahoo.com>
Sent: Friday, April 28, 2006 12:03:24 PM
Subject: Re: ejb-client jar troubles...

How is the artifact named in the repository ?
Can you post the POMs of the ejb-client artifact and of the artifact
that depends on it ?

Tom

On 4/28/06, Sean McNamara <ta...@yahoo.com> wrote:
> Sorry for the repeat question, but still looking for an answer.
>
> When specifying a dependency on an ejb using the ejb-client type, the jarfile is being packaged as foo-ejb-1.0.client-ejb rather than foo-ejb-1.0-client.jar.
>
> Is there a way to change this behavior?
>
> Thanks.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org





Re: ejb-client jar troubles...

Posted by Tom Huybrechts <to...@gmail.com>.
How is the artifact named in the repository ?
Can you post the POMs of the ejb-client artifact and of the artifact
that depends on it ?

Tom

On 4/28/06, Sean McNamara <ta...@yahoo.com> wrote:
> Sorry for the repeat question, but still looking for an answer.
>
> When specifying a dependency on an ejb using the ejb-client type, the jarfile is being packaged as foo-ejb-1.0.client-ejb rather than foo-ejb-1.0-client.jar.
>
> Is there a way to change this behavior?
>
> Thanks.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org