You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alberto Ivo <al...@gmail.com> on 2012/11/26 13:23:51 UTC

The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead

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]

Re: The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead

Posted by Stephen Connolly <st...@gmail.com>.
Specifically.... it seems like you have got something like

<version>${artifactId}.0.0.1-SNAPSHOT</version>

which is just insane and wrong on so many levels (and we're not talking
about crime in multi-story car parks by the way)


On 26 November 2012 14:08, Anders Hammar <an...@hammar.net> wrote:

> 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 <
> stephen.alan.connolly@gmail.com> 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 <al...@gmail.com> 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 <an...@hammar.net>
> > 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 <al...@gmail.com>
> > > 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]
> > > > >
> > > >
> > >
> >
>

Re: The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead

Posted by Anders Hammar <an...@hammar.net>.
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 <
stephen.alan.connolly@gmail.com> 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 <al...@gmail.com> 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 <an...@hammar.net>
> 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 <al...@gmail.com>
> > 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]
> > > >
> > >
> >
>

Re: The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead

Posted by Stephen Connolly <st...@gmail.com>.
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 <al...@gmail.com> 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 <an...@hammar.net> 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 <al...@gmail.com>
> 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]
> > >
> >
>

Re: The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead

Posted by Ron Wheeler <rw...@artifact-software.com>.
version is

0.0.1-SNAPSHOT

No ArtifactId in the version.

Have a look at one of the free books listed on the Maven site.

Ron

On 26/11/2012 8:44 AM, Alberto Ivo 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 <an...@hammar.net> 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 <al...@gmail.com> 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]
>>>


-- 
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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


Re: The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead

Posted by Alberto Ivo <al...@gmail.com>.
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 <an...@hammar.net> 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 <al...@gmail.com> 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]
> >
>

Re: The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead

Posted by Anders Hammar <an...@hammar.net>.
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 <al...@gmail.com> 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]
>