z7z8th / onejar-maven-plugin-trunk

Automatically exported from code.google.com/p/onejar-maven-plugin
0 stars 0 forks source link

Local dependency projects are not included in the onejar #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Local dependency projects are not included in the onejar

What steps will reproduce the problem?
1. Using an eclipse workspace with several projects
2. Add default onejar tags to main project pom.xml
3. Run As Maven Package

What is the expected output? What do you see instead?
Local project jars should be in the onejar lib directory along with 3rd party 
dependency projects. They are no where to be found. If I delete a local 
project, resorting to a .m2 version. That jar will then show up in the onejar.

What version of onejar-maven-plugin are you using?
This is the pom entry
<plugins>
  <plugin>
    <groupId>org.dstovall</groupId>
    <artifactId>onejar-maven-plugin</artifactId>
    <version>1.4.3</version>
    <executions>
      <execution>
        <configuration>
          <mainClass>com.protedyne.PatientInventoryLauncher</mainClass>
          <!-- Optional -->
      <onejarVersion>0.97</onejarVersion>
          <!-- Optional, default is false -->
      <attachToBuild>true</attachToBuild>
          <!-- Optional, default is "onejar" -->
          <classifier>onejar</classifier>
        </configuration>
        <goals>
          <goal>one-jar</goal>
        </goals>
      </execution>
    </executions>
  </plugin>
</plugins>

What is the output of "mvn -version" on your machine?
Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400)
Java version: 1.6.0_20
Java home: C:\Program Files\Java\jdk1.6.0_20\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"

Please provide any additional information below.
It works as expected using "mvn package" from the command window, so I'm 
suspecting it has to do with the plugi-in

Thanks
Dave

Original issue reported on code.google.com by brooks...@gmail.com on 10 Sep 2010 at 1:54

GoogleCodeExporter commented 8 years ago
I'll put this in my todo list: not sure when I can take a look at it due to 
busy schedule at present.  Thanks for reporting it.

Original comment by simontu...@gmail.com on 15 Sep 2010 at 2:32

GoogleCodeExporter commented 8 years ago

Original comment by hugo.josefson.old@gmail.com on 6 Oct 2010 at 8:44