Archetype additional properties interpolation in resource file names

2016-05-07 Thread USHAKOV, Sergey

Hi!

I got a question on using archetypes. Sorry if asking a FAQ, but I could 
not find an answer so far...


A have an archetype with a resource whose file name should be 
interpolated with an additional archetype property. Is that possible?


I have archetype metadata like this:


  

  Project Title

  
...

If I use a standard property like "groupId" in resource file name, like 
"__groupId__my_resource_name", interpolation succeeds. But if I use an 
additionalproperty, like "__paramProjectTitleEn__my_resource_name", I 
get debug messages "Copying fileset ... -> 0: []" and "Copied 0 files".


And at the same time this additional property is successfully 
interpolated in resource content filtering.


Is it possible to get additional archetype properties interpolated in 
resource file names? What may be missing?


Thanks and best regards,
Sergey Ushakov

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Multiple local repositories

2016-05-07 Thread Karagkiaouris Diamantis

Hello,

I would like to ask if it is possible to have multiple local maven 
repositories and if it can be set as a parameter in a maven profile.


Thank you
--

Karagkiaouris G. Diamantis,

Junior Java EE Software Engineer,

www.eurodyn.com


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Multiple local repositories

2016-05-07 Thread Karl Heinz Marbaise

Hi,

On 5/7/16 9:49 PM, Karagkiaouris Diamantis wrote:

Hello,

I would like to ask if it is possible to have multiple local maven
repositories and if it can be set as a parameter in a maven profile.


Can you explain what you exactly mean.

Do you mean having a different local caches for different purposes ?

Runinng one build with cache at $HOME/.m2/repository and running a 
second build with cache at $HOME/.m2/repository-run-two


The location of the local cache can be configured via the 
[settings.xml][1] file like this:


http://maven.apache.org/SETTINGS/1.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
  https://maven.apache.org/xsd/settings-1.0.0.xsd";>
  ${user.home}/.m2/repository

This snippet above shows the default...to change it for your own 
purposes you need to change localRepositoy entry...


But usually i can't recommend that, only if you exactyl what you are 
doing...




[1]: https://maven.apache.org/settings.html

Kind regards
Karl Heinz Marbaise

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Multiple local repositories

2016-05-07 Thread ecki
Hello,

 you can configure local repositories with file: URLs configured in profiles.

https://maven.apache.org/guides/mini/guide-multiple-repositories.html

It is not possible to have the local repository cache in a profile, but you can 
use different settings.xml files with the -s option.

https://maven.apache.org/ref/3.3.9/maven-settings/settings.html

I typically use this to have an opensource/public- and company setting- with 
different mirrors, servers, repositories and a clean repository cache.

Gruss
Bernd

-- 
http://bernd.eckenfels.net

-Original Message-
From: Karagkiaouris Diamantis 
To: Maven Users List 
Sent: Sa., 07 Mai 2016 21:50
Subject: Multiple local repositories

Hello,

I would like to ask if it is possible to have multiple local maven 
repositories and if it can be set as a parameter in a maven profile.

Thank you
-- 

Karagkiaouris G. Diamantis,

Junior Java EE Software Engineer,

www.eurodyn.com


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Multiple local repositories

2016-05-07 Thread Karagkiaouris Diamantis
Yes. Exactly but is it possible to pass a variable from 
 tag during the build in order to have different 
local caches?


Thank you

Am 07.05.2016 um 22:57 schrieb Karl Heinz Marbaise:

Hi,

On 5/7/16 9:49 PM, Karagkiaouris Diamantis wrote:

Hello,

I would like to ask if it is possible to have multiple local maven
repositories and if it can be set as a parameter in a maven profile.


Can you explain what you exactly mean.

Do you mean having a different local caches for different purposes ?

Runinng one build with cache at $HOME/.m2/repository and running a 
second build with cache at $HOME/.m2/repository-run-two


The location of the local cache can be configured via the 
[settings.xml][1] file like this:


http://maven.apache.org/SETTINGS/1.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd";>
${user.home}/.m2/repository

This snippet above shows the default...to change it for your own 
purposes you need to change localRepositoy entry...


But usually i can't recommend that, only if you exactyl what you are 
doing...




[1]: https://maven.apache.org/settings.html

Kind regards
Karl Heinz Marbaise

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



--

Karagkiaouris G. Diamantis,

Junior Java EE Software Engineer,

www.eurodyn.com


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Multiple local repositories

2016-05-07 Thread Karl Heinz Marbaise

On 5/7/16 10:08 PM, Karagkiaouris Diamantis wrote:

Yes. Exactly but is it possible to pass a variable from
 tag during the build in order to have different
local caches?


No..the localRepository can not be part of a profile.


But you can use the following:


mvn -Dmaven.repo.local=$HOME/.my/other/repository


Kind regards
Karl Heinz Marbaise


Thank you

Am 07.05.2016 um 22:57 schrieb Karl Heinz Marbaise:

Hi,

On 5/7/16 9:49 PM, Karagkiaouris Diamantis wrote:

Hello,

I would like to ask if it is possible to have multiple local maven
repositories and if it can be set as a parameter in a maven profile.


Can you explain what you exactly mean.

Do you mean having a different local caches for different purposes ?

Runinng one build with cache at $HOME/.m2/repository and running a
second build with cache at $HOME/.m2/repository-run-two

The location of the local cache can be configured via the
[settings.xml][1] file like this:

http://maven.apache.org/SETTINGS/1.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd";>
${user.home}/.m2/repository

This snippet above shows the default...to change it for your own
purposes you need to change localRepositoy entry...

But usually i can't recommend that, only if you exactyl what you are
doing...



[1]: https://maven.apache.org/settings.html



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



[REVOKED]: Archetype additional properties interpolation in resource file names

2016-05-07 Thread USHAKOV, Sergey

Hi again, and sorry for bothering everyone.

The problem was just in a typo. Additional properties and standard ones 
are interpolated in file names equally well.


Sorry again and best regards,

Sergey


On 07.05.2016 20:32, USHAKOV, Sergey wrote:

Hi!

I got a question on using archetypes. Sorry if asking a FAQ, but I 
could not find an answer so far...


A have an archetype with a resource whose file name should be 
interpolated with an additional archetype property. Is that possible?


I have archetype metadata like this:


  

  Project Title

  
...

If I use a standard property like "groupId" in resource file name, 
like "__groupId__my_resource_name", interpolation succeeds. But if I 
use an additionalproperty, like 
"__paramProjectTitleEn__my_resource_name", I get debug messages 
"Copying fileset ... -> 0: []" and "Copied 0 files".


And at the same time this additional property is successfully 
interpolated in resource content filtering.


Is it possible to get additional archetype properties interpolated in 
resource file names? What may be missing?


Thanks and best regards,
Sergey Ushakov

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org