You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Christian Schulte <cs...@schulte.it> on 2005/11/17 13:42:20 UTC

[m2] Problematic properties ?

Hi,

when I deploy some artifacts to our developer repository the deployed 
poms look like this.

<project>
  <parent>
    <artifactId>${scfArtifactPrefix}_Core</artifactId>
    <groupId>${scfGroupPrefix}.core</groupId>
    <version>${scfMajorVersion}.${scfMinorVersion}-1-SNAPSHOT</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>${scfGroupPrefix}.core</groupId>
  <artifactId>${scfArtifactPrefix}_Core_API</artifactId>
  <name>SCF Core API</name>
  <version>1.0-1-20051115.170340-1</version>
  <distributionManagement>
    <status>deployed</status>
  </distributionManagement>
</project>

This is a deployed pom. Do the variables I defined during the build in this pom have any "bad" impact on things ? Can it be done this way our should I generally avoid such properties ? The properties are defined in the root pom.xml. What happens if the values change in root's pom ?

-- 
Christian
 



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


Re: [m2] Problematic properties ?

Posted by Brett Porter <br...@gmail.com>.
If it changes in the root pom, then you should change the version of
the root pom, and the corresponding child. You don't have to change
the version with snapshots, but that also means old builds may not be
reproducible until the versions are fixed in time.

But you can't define those properties in the root pom, and then use
them to reference the root pom - how will it find it?

- Brett

On 11/17/05, Christian Schulte <cs...@schulte.it> wrote:
> Hi,
>
> when I deploy some artifacts to our developer repository the deployed
> poms look like this.
>
> <project>
>   <parent>
>     <artifactId>${scfArtifactPrefix}_Core</artifactId>
>     <groupId>${scfGroupPrefix}.core</groupId>
>     <version>${scfMajorVersion}.${scfMinorVersion}-1-SNAPSHOT</version>
>   </parent>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>${scfGroupPrefix}.core</groupId>
>   <artifactId>${scfArtifactPrefix}_Core_API</artifactId>
>   <name>SCF Core API</name>
>   <version>1.0-1-20051115.170340-1</version>
>   <distributionManagement>
>     <status>deployed</status>
>   </distributionManagement>
> </project>
>
> This is a deployed pom. Do the variables I defined during the build in this pom have any "bad" impact on things ? Can it be done this way our should I generally avoid such properties ? The properties are defined in the root pom.xml. What happens if the values change in root's pom ?
>
> --
> Christian
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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