You could also try looking at the effective-pom (help:effective-pom) and
search for ${artifactId} in that. It might be something you're inheriting.
But I'm also thinking something along Stephen's comment.

/Anders


On Mon, Nov 26, 2012 at 2:51 PM, Stephen Connolly <
[email protected]> wrote:

> I have a sneaky suspicion that you are doing some crazy stupid stuff in
> your pom.
>
> please provide the snippet which gave you the warning and what you think
> the fix of that is based on the warning...
>
>
> On 26 November 2012 13:44, Alberto Ivo <[email protected]> wrote:
>
> > Hello Anders,
> >
> > I've tried to do what the warning told me to do. But I got the same
> warning
> > anyway.
> >
> > In my projetct: *project-parent* i did this:
> >
> > <version>*project-parent*.0.0.1-SNAPSHOT</version>
> >
> > I only ask it here because I've tried many other options and in some
> > situations I got an error, in others I got the same warning.. None work
> it!
> >
> > Ivo
> >
> >
> > On Mon, Nov 26, 2012 at 11:02 AM, Anders Hammar <[email protected]>
> wrote:
> >
> > > Well, the warning text kind of spells this out. You should replace
> > > "${artifactId}" with "${project.artifactId}".
> > >
> > > /Anders
> > >
> > > On Mon, Nov 26, 2012 at 1:23 PM, Alberto Ivo <[email protected]>
> > wrote:
> > >
> > > > Hello,
> > > >
> > > > How can I fix this warning?
> > > >
> > > > project-parent is just a maven project with only a pom that is a
> parent
> > > for
> > > > another POMs.
> > > >
> > > > [WARNING]
> > > > [WARNING] Some problems were encountered while building the effective
> > > model
> > > > for com.company.project:project-parent:pom:0.0.1-SNAPSHOT
> > > > [WARNING] The expression ${artifactId} is deprecated. Please use
> > > > ${project.artifactId} instead.
> > > > [WARNING]
> > > > [WARNING] It is highly recommended to fix these problems because they
> > > > threaten the stability of your build.
> > > > [WARNING]
> > > > [WARNING] For this reason, future Maven versions might no longer
> > support
> > > > building such malformed projects.
> > > > [WARNING]
> > > >
> > >
> >
>

Reply via email to