You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by is_maximum <mn...@gmail.com> on 2009/07/04 09:37:01 UTC

deploy with different version and group id

Hi

We have defined some profiles for different platforms and app servers. A
profile namely 'release' is created to deploy the modules of our project in
different groupId and version.

We need different groupId because there are a bunch of large scale projects
are developing in our company by different teams but for deploying the whole
projects in customer environment we need to gather all the modules and
projects into one EAR file so we need a different groupId say 'release' and
then a project named 'deploy-app' will download all files placed in
'release' folder in repository

To reach this goal, I defined following in parent pom.xml:

	<profiles>
		<profile>
			<id>release</id>
			<distributionManagement>
				<relocation>
					<groupId>com.mycompany.core.general-ledger.release</groupId>
					<version>${app.version}</version>
					<message>Release version to be installed</message>
				</relocation>
				<repository>
					<id>mycompanyrepo</id>
					<name>My Company Repository</name>
					<url>http://192.168.4.98:8080/archiva/repository/internal</url>
				</repository>
			</distributionManagement>
			<properties>
				<app.version>${target.version}</app.version>
			</properties>
		</profile>
	</profiles>
---

the problem is that by running the following command I expect a new group id
in repository being created but no change I can see in repository

mvn clean deploy -Prelease -Dtarget.version=1.1.1


what is the problem? Have I missed something?

thanks

-----
--
Regards

Mohammad Norouzi

Help each other to reach the future faster

http://pixelshot.wordpress.com Pixelshot Photoblog 

http://brainable.blogspot.com Brainable Blog 


-- 
View this message in context: http://www.nabble.com/deploy-with-different-version-and-group-id-tp24331756p24331756.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: deploy with different version and group id

Posted by is_maximum <mn...@gmail.com>.
Any idea?


-----
--
Regards

Mohammad Norouzi

Help each other to reach the future faster

http://pixelshot.wordpress.com Pixelshot Photoblog 

http://brainable.blogspot.com Brainable Blog 


-- 
View this message in context: http://www.nabble.com/deploy-with-different-version-and-group-id-tp24331756p24386611.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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