Hi,

That's for ejb, but not for ejb3.
I want that maven add the classes of the par package to the classpath of the ejb3 module (At compilation time).

When i run run the command "mvn package":
I get the error message:

[INFO] ----------------------------------------------------------------------------
[INFO] Building Unnamed - bla-group:bla-par:par:1.0.0
[INFO]    task-segment: [package]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [par:par]
[INFO] Building Par bla-par-1.0.0
[INFO] Building jar: E:\bla\par\target\bla-par-1.0.0.par
[INFO] ----------------------------------------------------------------------------
[INFO] Building Unnamed - bla-group:bla-ejb3:ejb3:1.0.0
[INFO]    task-segment: [package]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 10 source files to C:\bla\ejb3\target\classes
[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ----------------------------------------------------------------------------
[INFO] Compilation failure

C:\bla\ejb3\src\main\java\bla\model\bean\UserServiceBean.java:[90,50] package bla.model.domain.ejb3 does not exist



The package "bla.model.domain.ejb3" is in the par module.

Thanks,
Thomas

Janecek Jan schrieb:

Hi,

You can generate Class-Path entry to your manifest by adding this to
your pom:

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ejb-plugin</artifactId>
        <configuration>
                <archive>
                        <manifest>
                                <addClasspath>true</addClasspath>
                        </manifest>
                </archive>
        </configuration>
</plugin>

Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to