Maven versions plugin: update property to specific value possible?

2013-06-06 Thread Markos Fragkakis
Hi,

I have found the mvn versions:update-properties target.

mvn versions:update-properties -DincludeProperties={dependency1.version}

However, the value being set is the last version for the specific
dependency.

Is it possible to specify the value for that property?

i.e. something like the following:

mvn versions:update-properties
-DincludeProperties={dependency1.version=1.2.3.4}

Thanks,

Markos


Maven release plugin

2013-06-06 Thread Markos Fragkakis
Hi,

I am using the Maven release plugin and I am trying to make a release. When
I am on master (I am using Git) I have SNAPSHOT versions for both my
project (multimodule) and also for my dependencies (also multimodule).

Suppose I want to make a tag from master (skipping the creation of a
branch) where no SNAPSHOTs are used.

This is my simplified pom.xml:

http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
4.0.0

results
1.2-SNAPSHOT
pom
Results parent module


results-web
results-persistence
results-domain
results-logic
results-logic-api
results-ear
results-configuration
results-rules-ejb
results-rules
results-rest



1.2.3-SNAPSHOT
3.4.5-SNAPSHOT






org.apache.maven.plugins
maven-release-plugin
2.4.1

@{project.version}
true
true
false









org.my.project
dependency1-domain
${dependency1.version}


org.my.project
dependency1-enumerations
${dependency1.version}


org.my.project
dependency1-logic
${dependency1.version}
ejb


org.my.project
dependency2-domain
${dependency2.version}


org.my.project
dependency2-enumerations
${dependency2.version}


org.my.project
dependency2-logic
${dependency2.version}
ejb






If I do:

mvn release:prepare -Darguments="-dependency1.version=1.2.3.0
-Ddependency2.version=3.4.5.0"

That creates a branch that still has SNAPSHOT dependencies:


1.2.3-SNAPSHOT
3.4.5-SNAPSHOT


How would I generate a tag where the part above would be:


1.2.3.0
3.4.5.0


Thank you,

Markos
-- 
Sent from my iPhone


Re: Properties files proper location

2009-04-18 Thread Markos Fragkakis

Markos Fragkakis wrote:

Hi,

I am having some problems that I expected to be common, however I 
could not find a solution online for either.


I want create a maven project for a swing application. My IDE is 
Eclipse. In order to run, the application needs to read a a couple of 
text configuration files, which are located in a "params" directory, 
in the root directory of the application. So, if ${root} id the 
application directory, these files should be in ${root}/params. 
Furthermore, the application needs to log into the directory ${root}/log.


Until now, without Maven, I had created the directories params and log 
(log was in .cvsignore) in my Eclipse project directory. Every time 
the project was run, the two directories were found and used.


Now, Maven puts its classes in target/classes. In order to run the 
project from within the IDE, I have put the two directories in the 
"resources" directory. So, when I compile the project, they are put 
inside the target directory, along with the classes and everything 
works. This placing, however, will put them also in the jar file of 
the project, which I would not like, since the configuration files in 
the params directory are supposed to be changes by the user.


What is the correct (by-the-book) placing of the files if I need to be 
able run my project as before, from within the IDE? Are there any 
additional steps, like using the assembly plugin to create the 
directory structure?


This is probably a best practices issue.

Any suggestions / ideas are welcome.

Best regards,
Markos Fragkakis

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

Any suggestions? I believe this  is an issue other people have as well, 
and many would benefit if solutions, or even a discussion is documented.


Thanks,

Markos Fragkakis

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



Properties files proper location

2009-04-14 Thread Markos Fragkakis

Hi,

I am having some problems that I expected to be common, however I  
could not find a solution online for either.


I want create a maven project for a swing application. My IDE is  
Eclipse. In order to run, the application needs to read a a couple of  
text configuration files, which are located in a "params" directory,  
in the root directory of the application. So, if ${root} id the  
application directory, these files should be in ${root}/params.  
Furthermore, the application needs to log into the directory ${root}/ 
log.


Until now, without Maven, I had created the directories params and log  
(log was in .cvsignore) in my Eclipse project directory. Every time  
the project was run, the two directories were found and used.


Now, Maven puts its classes in target/classes. In order to run the  
project from within the IDE, I have put the two directories in the  
"resources" directory. So, when I compile the project, they are put  
inside the target directory, along with the classes and everything  
works. This placing, however, will put them also in the jar file of  
the project, which I would not like, since the configuration files in  
the params directory are supposed to be changes by the user.


What is the correct (by-the-book) placing of the files if I need to be  
able run my project as before, from within the IDE? Are there any  
additional steps, like using the assembly plugin to create the  
directory structure?


This is probably a best practices issue.

Any suggestions / ideas are welcome.

Best regards,
Markos Fragkakis

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