maven


Maven: Take internal dependency outside of plugin


In the build section of one of my POMs, I have usage of a plugin in a following way.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<dependencies>
<dependency>
<groupId>some-group-id</groupId>
<artifactId>some-plugin</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<executions>
...
</executions>
</plugin>
Note that dependency is declared inside the plugin. For certain reasons, I do not want any dependencies declared in the plugin. I have tried to move the dependency to the dependencies section (outside of plugin), but then the dependency is not available to the plugin, and I get an error.
How do I make the dependency available to the plugin without calling it from inside the plugin? Is it even possible?
I tried to add <scope>runtime</scope> to the dependency, but still it is not being available.

Related Links

Netbeans Maven Error
SonarQube analysis of guava v18 - InternalPrefixUnaryExpression cannot be cast to MethodInvocationTree
Spring boot application - Tomcat deployment
Have err when mvn -Prelease-all -DskipTests clean install -U
How to ignore a java file when maven install
How tomcat creates the packages for deployment [closed]
Maven build doesn't execute a csv file reader
jboss-as-maven-plugin remote deployment to JBoss EAP- 6.4
How to package multi module in a zip file?
Run shell script before running maven test
Can I use Oracle jdbc driver for a Composite Datasource?
JUnit - run tests in a category only if specific profile is active
Failed to read artifact descriptor for xalan:serializer:jar:2.7.1 - Grails
How to have properties in a Cumcumber-jvm step definition?
Config maven setting in Jenkins
maven-compiler-plugin:3.5.1 or one of its dependencies could not be resolved

Categories

HOME
xamarin
ionic-framework
testng
wso2
c#-4.0
push-notification
path-finding
smarty
json.net
include
fme
react-router
spagobi
framework7
amortized-analysis
installshield
facebook-php-sdk
windows-azure-storage
spring-tool-suite
fortumo
quickfix
msp430
hapi
worldwind
highlight.js
transformation
ef-migrations
serilog
karma-jasmine
paging
ml
wijmo
hammerspoon
dxf
crystal-reports-2010
numerical-methods
kannel
spring-mybatis
srcset
librato
nouislider
nameservers
bosh
phonegap
google-cloud-endpoints-v2
pdb
siesta-swift
pim
textmate
picasso
revolution-slider
xcode-extension
webix-treetable
document.write
elasticsearch-plugin
graphenedb
netcdf4
acoustics
scrollable
smartcontracts
atomicity
logparser
nativeapplication
directory-structure
ifs
vtigercrm
mediaelement
messenger
trash
measures
asp.net-4.5
thrust
paypal-express
cloudbees
energy
ios8-today-widget
spim
ruby-2.2
embedded-code
browser-bugs
emailrelay
ionic
cakephp-3.1
service-accounts
dundas
p2
notify
rake-task
jscript.net
cdt
codeigniter-routing
rdtsc
contenttype
hippomocks
rtmfp
quantlib-swig
cdc
odata4j
opcache
ril
lcs
typoscript2
hamiltonian-cycle
getmessage
visitor-statistic
subviews
gin
forums
perfect-hash
simpletest
geneva-server
.net-1.0

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App