如何将项目 jar 添加到 eclipseworkspace\.metadata\.plugins\serverfolder\projectfolder\web-inf\lib

发布于 2024-10-20 00:31:14 字数 2389 浏览 2 评论 0原文

我正在使用 Eclipse IDE。我有一个 lmexadapter-core-api、lmexadapter-core-impl、lmex-moodle-api、lmexserver-mobile-api、lmexadapter-moodle-api、lmexadapter-moodle-impl 等 Maven 项目。我对 pom 的依赖如下:

<parent>
        <artifactId>lmexadapter-moodle</artifactId>
        <groupId>com.platysgroup.lmex.adapter</groupId>
        <version>1.0</version>
    </parent>
    <groupId>com.platysgroup.lmex.adapter</groupId>
    <artifactId>lmexadapter-moodle-web</artifactId>
    <version>1.0</version>
    <packaging>war</packaging>
    <name>Maven Webapp Archetype</name>
    <url>http://maven.apache.org</url>

    <dependencies>
        <dependency>
            <groupId>com.platysgroup.lmex.adapter.core</groupId>
            <artifactId>lmexadapter-core-api</artifactId>
            <version>1.0</version>
        </dependency>

        <dependency>
            <groupId>com.platysgroup.lmex.adapter.core</groupId>
            <artifactId>lmexadapter-core-impl</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>com.platysgroup.lmex.server.mobile</groupId>
            <artifactId>lmexserver-mobile-api</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.platysgroup.lmex.adapter.moodle</groupId>
            <artifactId>lmexadapter-moodle-api</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.platysgroup.lmex.adapter.moodle</groupId>
            <artifactId>lmexadapter-moodle-impl</artifactId>
            <version>${project.version}</version>
        </dependency>

我使用 tomcat 作为我的应用程序服务器。我在我的 D:\EclipseWorskpace\ew-pg\lmexadapter.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\lmexadapter- 中得到了除 lmexadapter-moodle-api、lmexadapter-moodle-impl 之外的所有 jar Moodle-web\WEB-INF\lib。因为此应用程序无法找到 lmexadapter-moodle-impl 的类。我应该定义什么,以便它将两个 jar 都放在上面的指定路径中。

请帮我。

谢谢

i am using Eclipse IDE. i have a maven projects as lmexadapter-core-api, lmexadapter-core-impl, lmex-moodle-api, lmexserver-mobile-api, lmexadapter-moodle-api, lmexadapter-moodle-impl. i have dependency in pom as below :

<parent>
        <artifactId>lmexadapter-moodle</artifactId>
        <groupId>com.platysgroup.lmex.adapter</groupId>
        <version>1.0</version>
    </parent>
    <groupId>com.platysgroup.lmex.adapter</groupId>
    <artifactId>lmexadapter-moodle-web</artifactId>
    <version>1.0</version>
    <packaging>war</packaging>
    <name>Maven Webapp Archetype</name>
    <url>http://maven.apache.org</url>

    <dependencies>
        <dependency>
            <groupId>com.platysgroup.lmex.adapter.core</groupId>
            <artifactId>lmexadapter-core-api</artifactId>
            <version>1.0</version>
        </dependency>

        <dependency>
            <groupId>com.platysgroup.lmex.adapter.core</groupId>
            <artifactId>lmexadapter-core-impl</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>com.platysgroup.lmex.server.mobile</groupId>
            <artifactId>lmexserver-mobile-api</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.platysgroup.lmex.adapter.moodle</groupId>
            <artifactId>lmexadapter-moodle-api</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.platysgroup.lmex.adapter.moodle</groupId>
            <artifactId>lmexadapter-moodle-impl</artifactId>
            <version>${project.version}</version>
        </dependency>

i am using tomcat as my application server. i get all the jar except lmexadapter-moodle-api, lmexadapter-moodle-impl in my D:\EclipseWorskpace\ew-pg\lmexadapter.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\lmexadapter-moodle-web\WEB-INF\lib. because of this application is unable to locate class of lmexadapter-moodle-impl. what should i have to define so it will take both jar in a specified path as above.

please help me.

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒废 2024-10-27 00:31:14

假设当前版本的Eclipse和Maven插件,是否可以通过将Maven依赖项添加到“项目部署程序集”来解决?
如果您在 Eclipse 中将项目配置为动态 Web 项目并将 Tomcat 配置为服务器,则这位于项目 -> 部署程序集 -> 添加 -> java 构建路径条目 -> 下。 Maven 依赖项。

Assuming current version of Eclipse and Maven plugin, is this something that can be solved by adding Maven dependencies to "project deployment assembly"?
If you have your project configured as Dynamic Web Project and Tomcat as server in Eclipse, this is under Project->Deployment Assembly->Add->java build path entries -> Maven dependencies.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文