Hello

You can play with the classpath in the Manifest file:

Example:

               <plugin>
                 <artifactId>maven-jar-plugin</artifactId>
                 <configuration>
                  <archive>
                    <manifest>
                      <addClasspath>true</addClasspath>
                      <mainClass>com.yourMainClass</mainClass>
                    </manifest>
                  </archive>
                 </configuration>
               </plugin>

http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html
http://maven.apache.org/shared/maven-archiver/

Sonia


alfonz19 wrote:
> 
> Hi,
> 
> I've got maven project here, with specified compile-scoped dependencies
> and ejb packaging. I can build&deploy it successfully but then it crashes
> because when I examine procucted .jar it does not contain needed .jar
> libraries even if those exists in my local repository. I've tried to find
> an anwer to this behavior, but did not succeed. Can anybody give me a hint
> what's wrong? 
> 
> thanks in advance,
> martin.
> 

-- 
View this message in context: 
http://www.nabble.com/super-beginner-question---fail-to-properly-package-maven-project.-tp22667119p22667293.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to