Re: properties in maven-remote-resources-plugin

2021-02-23 Thread Delany
Thanks I know how to use properties, but this plugin doesn't, it seems. It
has some special way of importing them:
https://maven.apache.org/plugins/maven-remote-resources-plugin/process-mojo.html

[image: image.png]

It can do this

org.test:shared-resources:${project.version}

But this is the version of *this* project, not the resource bundle
org.test:shared-resources. Why would I ever do that? The plugin is assuming
that all project modules in the reactor have the same version.

I need it to do this

org.test:shared-resources:${shared-resources.version}

It looks like if I make commondb a dependency, I can use the *projects*
property to access the version number. How do I do that?

Thanks,
Delany


On Tue, 23 Feb 2021 at 22:46, Anthony Whitford  wrote:

> The  tag is documented here:
> https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#properties
> <
> https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#properties
> >
>
>
> > On Feb 23, 2021, at 3:34 AM, Delany  wrote:
> >
> > I don't want to hardcode the version number of the remote project into
> this
> > plugin config, so I've used a property made available in a parent pom.
> > But it's not being resolved. What am I doing wrong?
> >
> >  
> >maven-remote-resources-plugin
> >
> >  
> >process-remote-resources
> >
> >  process
> >
> >
> >  
> >
> > dbs:commondb:${dep.dbs.commondb}
> >  
> >
> >  
> >
> >  
> >
> > There's a mention of including a  tag that is a map, but Im
> not
> > sure what that should look like.
> >
> >
> https://maven.apache.org/plugins/maven-remote-resources-plugin/usage.html
> >
> > Thanks,
>
>


Re: properties in maven-remote-resources-plugin

2021-02-23 Thread Anthony Whitford
The  tag is documented here: 
https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#properties
 



> On Feb 23, 2021, at 3:34 AM, Delany  wrote:
> 
> I don't want to hardcode the version number of the remote project into this
> plugin config, so I've used a property made available in a parent pom.
> But it's not being resolved. What am I doing wrong?
> 
>  
>maven-remote-resources-plugin
>
>  
>process-remote-resources
>
>  process
>
>
>  
> 
> dbs:commondb:${dep.dbs.commondb}
>  
>
>  
>
>  
> 
> There's a mention of including a  tag that is a map, but Im not
> sure what that should look like.
> 
> https://maven.apache.org/plugins/maven-remote-resources-plugin/usage.html
> 
> Thanks,



Re: properties in maven-remote-resources-plugin

2021-02-23 Thread Delany
Well I gave it my best shot

  
maven-remote-resources-plugin

  
process-remote-resources

  process


  
dbs:commondb:${bully}
  
  
3
  

  

  

It looks like the process goal has been abandoned and everyone is just
using maven-dependency-plugin's unpack-dependencies goal.


On Tue, 23 Feb 2021 at 13:34, Delany  wrote:

> I don't want to hardcode the version number of the remote project into
> this plugin config, so I've used a property made available in a parent pom.
> But it's not being resolved. What am I doing wrong?
>
>   
> maven-remote-resources-plugin
> 
>   
> process-remote-resources
> 
>   process
> 
> 
>   
>
> dbs:commondb:${dep.dbs.commondb}
>   
> 
>   
> 
>   
>
> There's a mention of including a  tag that is a map, but Im
> not sure what that should look like.
>
> https://maven.apache.org/plugins/maven-remote-resources-plugin/usage.html
>
> Thanks,
>


properties in maven-remote-resources-plugin

2021-02-23 Thread Delany
I don't want to hardcode the version number of the remote project into this
plugin config, so I've used a property made available in a parent pom.
But it's not being resolved. What am I doing wrong?

  
maven-remote-resources-plugin

  
process-remote-resources

  process


  

dbs:commondb:${dep.dbs.commondb}
  

  

  

There's a mention of including a  tag that is a map, but Im not
sure what that should look like.

https://maven.apache.org/plugins/maven-remote-resources-plugin/usage.html

Thanks,