Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local dependency projects are not included in the onejar #26

Open
GoogleCodeExporter opened this issue Apr 7, 2015 · 2 comments
Open

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 10 Sep 2010 at 1:54

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 15 Sep 2010 at 2:32

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 6 Oct 2010 at 8:44

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant