You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Refr Bruhl <re...@yahoo.com> on 2011/06/08 19:45:14 UTC
Question on poms
Team
I get the following warnings in my builds. I've had to add jars manually to my
local repository.
Near as I can tell the only thing that really generates the "future version of
Maven" message is missing poms.
What steps do I need to to do to create these poms sine they didn't arrive with
the original vendor?
Am I correct in thinking the missing poms are causing the warning message of
"For this reason, future Maven versions might no longer support building such
malformed projects." ? My other projects that have poms from the vendors do not
generate warning.
I am using maven 2
# mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 14:16:01-0500)
Java version: 1.6.0
Java home: /usr/java6_64/jre
Default locale: en_US, platform encoding: ISO8859-1
OS name: "aix" version: "6.1" arch: "ppc64" Family: "unix"
Thanks in advance
-Rob
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 66, column 21
[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] The POM for com.ibm.db2.jcc:db2jcc:jar:3.53.70 is missing, no
dependency information available
[WARNING] The POM for org.apache.commons:commons-io:jar:2.0.1 is missing, no
dependency information available
[WARNING] The POM for ch.ethz:ssh2:jar:build251beta is missing, no dependency
information available
--Refr inn gra
"Wars are to be won with swords and spears,
not with rice and salt." -- Uesugi Kenshin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Question on poms
Posted by Leonard Ehrenfried <le...@web.de>.
The first warning that is being generated is because you haven't specified a
version for maven-compiler-plugin so Maven is only guessing which one to
use. This is undesirable because once a new version is released Maven might
(will?) choose that one and it may be incompatible with the version you used
before.
Are you configuring the plugin like this:
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
?
Or are you configuring it at all?
I had seen the second error message before when I used a local repository,
that had been created by Maven 2, with Maven 3. What happens if you delete
the artifacts in question (the entire folder) and re-download them?
Lenni
On Wed, Jun 8, 2011 at 10:20 PM, Refr Bruhl <re...@yahoo.com> wrote:
> I will try this
>
> Thank you!
>
> --Refr inn gra
>
>
> "Wars are to be won with swords and spears,
> not with rice and salt." -- Uesugi Kenshin
>
>
>
> ----- Original Message ----
> From: Wendy Smoak <ws...@gmail.com>
> To: Maven Users List <us...@maven.apache.org>
> Sent: Wed, June 8, 2011 1:30:10 PM
> Subject: Re: Question on poms
>
> On Wed, Jun 8, 2011 at 2:25 PM, Refr Bruhl <re...@yahoo.com> wrote:
> > I used the instructions at
> > http://maven.apache.org/guides/MavenQuickReferenceCard.pdf for adding
> 3rd
> party
> > libraries to my repository.
>
> Interesting... haven't seen that before!
>
> So you used mvn install:install-file?
>
> Odd..
> http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html
> says generatePom defaults to true.
>
> Try re-doing mvn install:install-file and adding -DgeneratePom=true .
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> 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
>
>
Re: Question on poms
Posted by Refr Bruhl <re...@yahoo.com>.
I will try this
Thank you!
--Refr inn gra
"Wars are to be won with swords and spears,
not with rice and salt." -- Uesugi Kenshin
----- Original Message ----
From: Wendy Smoak <ws...@gmail.com>
To: Maven Users List <us...@maven.apache.org>
Sent: Wed, June 8, 2011 1:30:10 PM
Subject: Re: Question on poms
On Wed, Jun 8, 2011 at 2:25 PM, Refr Bruhl <re...@yahoo.com> wrote:
> I used the instructions at
> http://maven.apache.org/guides/MavenQuickReferenceCard.pdf for adding 3rd
party
> libraries to my repository.
Interesting... haven't seen that before!
So you used mvn install:install-file?
Odd..
http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html
says generatePom defaults to true.
Try re-doing mvn install:install-file and adding -DgeneratePom=true .
--
Wendy
---------------------------------------------------------------------
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
Re: Question on poms
Posted by Wendy Smoak <ws...@gmail.com>.
On Wed, Jun 8, 2011 at 2:25 PM, Refr Bruhl <re...@yahoo.com> wrote:
> I used the instructions at
> http://maven.apache.org/guides/MavenQuickReferenceCard.pdf for adding 3rd party
> libraries to my repository.
Interesting... haven't seen that before!
So you used mvn install:install-file?
Odd.. http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html
says generatePom defaults to true.
Try re-doing mvn install:install-file and adding -DgeneratePom=true .
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Question on poms
Posted by Refr Bruhl <re...@yahoo.com>.
Greetings
I used the instructions at
http://maven.apache.org/guides/MavenQuickReferenceCard.pdf for adding 3rd party
libraries to my repository.
I see instructions there for creating a minimal pom... however I am not sure
what should go into it.
We are an aix shop. While the company has plans to get the type of manager you
describe it hasn't been acted upon yet. Most open source stuff has issues
compiling on aix 6.1 nowadays
As for commons-io, no I am not sure. This was downloaded manually from the
apache site.
--Refr inn gra
"Wars are to be won with swords and spears,
not with rice and salt." -- Uesugi Kenshin
----- Original Message ----
From: Wendy Smoak <ws...@gmail.com>
To: Maven Users List <us...@maven.apache.org>
Sent: Wed, June 8, 2011 12:52:01 PM
Subject: Re: Question on poms
On Wed, Jun 8, 2011 at 1:45 PM, Refr Bruhl <re...@yahoo.com> wrote:
> I get the following warnings in my builds. I've had to add jars manually to my
> local repository.
How did you do that?
> What steps do I need to to do to create these poms sine they didn't arrive
with
> the original vendor?
Depending on how they got there... the install:install-file goal has
an option to generate a minimal pom.
However, looking at the list of things it's complaining about, are you
sure there's no pom in central for commons-io ?
It's best to run a repository manager and put the artifacts there, so
you don't have to re-do this if you blow away your local repo for any
reason.
--
Wendy
---------------------------------------------------------------------
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
Re: Question on poms
Posted by Wendy Smoak <ws...@gmail.com>.
On Wed, Jun 8, 2011 at 1:45 PM, Refr Bruhl <re...@yahoo.com> wrote:
> I get the following warnings in my builds. I've had to add jars manually to my
> local repository.
How did you do that?
> What steps do I need to to do to create these poms sine they didn't arrive with
> the original vendor?
Depending on how they got there... the install:install-file goal has
an option to generate a minimal pom.
However, looking at the list of things it's complaining about, are you
sure there's no pom in central for commons-io ?
It's best to run a repository manager and put the artifacts there, so
you don't have to re-do this if you blow away your local repo for any
reason.
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org