This is what's putting your sources on the classpath:
<resources>
<resource>
<directory>src</directory>
</resource>
</resources>
Resources are elements that are to be placed on the classpath.
HTH!
----- Original Message -----
From: "Leo L" <[EMAIL PROTECTED]>
To: "Maven Users List" <users@maven.apache.org>
Sent: Thursday, May 25, 2006 3:11 PM
Subject: [M2] Packaging without sources *.java
Hi!
When i packaging my ejb or my components which is a .jar, Maven put all
together, .class and sources. What can i do to packaging only compiled
classes and not the sources *.java????
Here is my pom.xml configuration snippet:
...
<build>
<sourceDirectory>src</sourceDirectory>
<outputDirectory>target/classes</outputDirectory>
<resources>
<resource>
<directory>src</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
....
</plugins>
</build>
...
Any clue????
Regards,
Leo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]