<!-- DIV {margin:0px} -->If anyone can help me get this feature working, I
would appreciate it.
My setup is fairly simple
- I have a pom file which describes several (jar) dependencies. These
dependencies I made myself - I took 3rd party jars and installed them as listed
on the maven 2 site.
- Compilation succeds, and the jar file is correct except for the missing
Class-Path entry
- The eclipse:eclipse target correctly generates a project file with library
references to the dependencies (so I think things are configured correctly)
- I can successfully generate the Main-Class entry in my jar - so I am fairly
certain I am setting the correct configuration
- I have setup my build tag as listed below - so that it presumable will
generate a Class-Path entry, yet it fails to work.
Here's what I have tried so far (with no success):
- Using 2.0.2, I tried the setting as listed on the maven site and referenced
below
- Tried several different values for the scope in the dependencies, though I
understand that the default "compile" should make the libs visible in all views
- I downloaded a local copy of the maven-jar-plugin and instrumented it - see
below
- I have downloaded the latest trunk source code and rebuilt it and tried that
If there are developers on this list, I instrumented a local copy of the
maven-jar-plugin and found that the artifact list (project.getArtifacts()) in
the project is empty which is why the classpath comes back empty. The call
project.getDependencies() returns the list of dependencies as expected so I am
wondering why the dependencies are filled (the model) but the project artifacts
are empty - am I misunderstanding these data structures?
Thanks,
Taylor
Steve wrote:
I'm sure this has been brought up a lot of times but I couldn't find it
via google or the mailing list .....
I'm using the maven plugin for creating jars like so:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.mycorp.ProtomanMain</mainClass>
<addClasspath>True</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
I would like to add items that Maven doesn't keep track of (jars that
are added internally as plugins that may be dropped in at times). How do
I explicitly tell maven to add these items in to the classpath? Even if
I have to use a directive for each item added it would be fine.
Thanks,
Steve