2008/6/23 Martin Höller <[EMAIL PROTECTED]>: >> >> <plugin> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-compiler-plugin</artifactId> >> <version>2.0.2</version> >> <configuration> >> <!-- force to use JDK 1.6 --> >> <encoding>UTF-8</encoding> >> <source>1.6</source> >> <target>1.6</target> >> </configuration> >> </plugin> >> >> Why is this not present in the release-pom? > > First, the configuration needs not to be in the release-pom, as it's > (probably) inherited from the parent which is specified in the release-pom > and therefore available via a repository.
I do not really understand what you mean by that. The parent pom is in a different directory and included via a relative path, which works w/o any problem for the dependencies so far. Do I have to change that to a released pom in our company maven repo? > Second, where exactly do you specify this section? Within a > <pluginManagement> section? I'm not sure wheter it is inherited if it is in > <plugins><plugin> or not. What works for me is having the following in my > parent pom: > > <project > <build> > <pluginManagement> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>2.0.2</version> > <configuration> > <source>1.5</source> > <target>1.5</target> > <encoding>ISO-8859-1</encoding> > </configuration> > </plugin> > </plugins> > </pluginManagement> > </build> > </project> I tried exactly this, and it's not inherited into the release-pom. > I mixed things up a little bit in my first mail: <dependencyManagement> is > for defining version of dependencies and <pluginManagement> is for defining > versions of plugins. What I wanted to write was: > > | Just define the version of all plugins you are using (best in a > | <pluginyManagement> section),... Hmm, why are the docs/FAQ's not always mention that? Are these tags kind of implicit or why do so many examples simply omit them? In any case, adding them did not really solve my problem. Thanks again! Andre --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
