Comments (4)
This is a classic problem with artifacts which are not declared correctly,
bringing in too many or too few transitive dependencies. It should be handled
by the authors/maintainers of those dependencies, but can be overridden by you
in the <dependency> declaration using <excludes>.
Original comment by [email protected]
on 6 Oct 2010 at 8:48
- Changed state: WontFix
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from onejar-maven-plugin.
I know how to declare dependencies and their transitive behavior and I'm quite
sure I've not made a mistake. Compile scoped transitive dependencies should
not be copied into the one-jar archive but they are.
Related to this bug: one-jar also copies <optional>true</optional> transitive
dependencies into the archive.
Original comment by [email protected]
on 6 Oct 2010 at 9:08
from onejar-maven-plugin.
My mistake; I was too quick to dismiss. Thanks for clarifying!
Original comment by [email protected]
on 7 Oct 2010 at 3:55
- Changed state: Accepted
- Added labels: Type-Defect
- Removed labels: Type-Enhancement
from onejar-maven-plugin.
This declaration in my parent pom:
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>${javax.inject.version}</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
Results in the javax.inject jar inside my one-jar archive. Why?
Original comment by [email protected]
on 18 Nov 2011 at 6:13
from onejar-maven-plugin.
Related Issues (20)
- Make OneJarMojo.mainJarFilename writeable HOT 2
- using different native libs for different os not working HOT 8
- Local dependency projects are not included in the onejar HOT 2
- upload to central repository HOT 2
- java.io.FileNotFoundException: log4j.xml HOT 6
- Provide override for generated jar file name HOT 1
- Support newer versions of OneJar HOT 3
- Axis2 jar doesnot load
- Use newer version of One-JAR 0.97 HOT 1
- Cant specify JarClassLoader for One-jar, need to because of spring url loading HOT 5
- Add arbitrary manifest entries to top-level
- generic classpath arguments cannot be passed to execution
- Patch for /trunk/src/site/apt/usage.apt
- Can this be used under Java 1.5?
- Enhanchment - support adding one-jar.properties to the target one-jar
- How to Get List of ClassPath Resources in OneJar? HOT 2
- Support system properties included as /one-jar.properties
- NullPointerException thrown trying to access MANIFEST.MF of embedded jars
- How to add class path folder in Manifest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onejar-maven-plugin.