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

Git-flow + publishing Maven sites to multiple GitHub pages?
Multiple maven project with different package
Makefile and POM
JHipster configure maven wrapper proxy
IntelliJ not downloading Maven sources for groovy project
EOF Exception : Input contained no data in cmd
Is there any usable dependency for virtuoso.jena.driver?
why have a compile error in dependent jar but still could run project successfully?
Fails jenkins job if console otuput doesn't match to regexp
Including a Maven product from different directory into project directoy
Cannot run static enhancement of OpenJPA entities with Spring Boot
JBoss Fuse/ Red Hat JBoss developer Studio, Fuse Integration Project error
Deploying multiple maven profiles
Single Sign on login
Can't run test from Maven in TeamCity with testNG and Allure
Artifactory - Unlock Cocoapods, Nuget,

Categories

HOME
include
vmware
sqlite-net-extensions
setup-deployment
graphql
win32gui
ezpublish
pivotal-cloud-foundry
opengl-es-2.0
in-app-purchase
ios-charts
upload
cross-validation
medical
timeout
windows-phone-7
dtrace
oxyplot
alpine
google-pagespeed
cx-freeze
graphicsmagick
sqlcipher
microsoft-sync-framework
kannel
react-css-modules
minitab
instant-messaging
directx-10
bcd
iframe-resizer
key-value-observing
twilio-api
grails-3.1
kendo-ui-grid
caret
android-kernel
ghost4j
ios5
appfabric
vxworks
sharefile
trim
ws-security
gzipstream
pdf-reactor
executenonquery
scorm
qwt
menuitem
errordocument
celery-task
mu
nsarray
r-forge
qtwebview
setuptools
firmata
heidisql
httplistener
radtreelist
file-writing
intrusion-detection
lttng
ford-fulkerson
ora-00900
cannon.js
rgeo
responsive-images
ami
sortedlist
e10s
kineticjs
facebook-graph-api-v2.4
typekit
xcode-6.2
p4java
system.net.webexception
datagridviewcolumn
mbr
monomac
pyhdf
multiprocessor
ril
hungarian-algorithm
jelly
distutils
path-separator
funscript
dsn
osql
dotnethighcharts
removeclass
custom-backend
eclipse-templates
qt-jambi
web-application-design
getresponsestream
forums
vc90
memory-size
avatar
commodore

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App