Discussion:
"[WARNING] POM is invalid." error messages in Maven 2.2.1 but not in 2.0.10
Ellecer Valencia
2009-11-20 00:41:20 UTC
Permalink
Hi,

How come when I try a build using Maven 2.2.1 I get multiple messages like this:

"[WARNING] POM for 'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build."

These errors weren't displaying when I was using Maven 2.0.10

I'm trying to use the newer version of Maven but I can't proceed with
these error messages.

How can I find out what are the actual errors it's referring to? I
didn't come across any mention of relevant POM format changes going
from Maven 2.0.* to 2.1.* or 2.2.* - if anyone has any info on this it
would be a great help! Is there a way to validate the pom and get
format error details from Maven?


thanks,

Ellecer
Brett Randall
2009-11-20 02:01:51 UTC
Permalink
Hi Ellecer

What is the output of mvn -e -X ...

Brett
Post by Ellecer Valencia
Hi,
"[WARNING] POM for 'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build."
These errors weren't displaying when I was using Maven 2.0.10
I'm trying to use the newer version of Maven but I can't proceed with
these error messages.
How can I find out what are the actual errors it's referring to? I
didn't come across any mention of relevant POM format changes going
from Maven 2.0.* to 2.1.* or 2.2.* - if anyone has any info on this it
would be a great help! Is there a way to validate the pom and get
format error details from Maven?
thanks,
Ellecer
---------------------------------------------------------------------
Ellecer Valencia
2009-11-20 03:59:34 UTC
Permalink
Hi Brett,

Thanks for the suggestion. I may have found the issue. Would it be this:


Validation Errors:
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG]

[DEBUG] mypackage:myartifact:jar:1.0.2:compile (selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] myartifact: using locally installed snapshot
[WARNING] POM for 'mypackage:myartifact:pom:1.0.2-SNAPSHOT:test' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[DEBUG] Reason: Failed to validate POM for project
mypackage:myartifact at Artifact
[mypackage:myartifact:pom:1.0.2-SNAPSHOT:test]
[DEBUG]
Validation Errors:
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG]


Now in this project, we are inheriting from a parent POM (standardised
for our department) with entries like this:
(WL_HOME is Weblogic install directory)


<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/lib/rt.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>webservices</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/webservices.jar</systemPath>
</dependency>


Now it only fails on the Weblogic related entries. With the Java
system dependencies it seems to do fine.

Has the handling of this changed from 2.0.* to 2.2.*?

If so, what should we replace it with?

And will these settings also work for people still using maven 2.0.10?


Ellecer
Post by Brett Randall
Hi Ellecer
What is the output of mvn -e -X ...
Brett
Post by Ellecer Valencia
Hi,
"[WARNING] POM for 'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build."
These errors weren't displaying when I was using Maven 2.0.10
I'm trying to use the newer version of Maven but I can't proceed with
these error messages.
How can I find out what are the actual errors it's referring to? I
didn't come across any mention of relevant POM format changes going
from Maven 2.0.* to 2.1.* or 2.2.* - if anyone has any info on this it
would be a great help!  Is there a way to validate the pom and get
format error details  from Maven?
thanks,
Ellecer
---------------------------------------------------------------------
Brett Randall
2009-11-20 04:42:31 UTC
Permalink
http://jira.codehaus.org/browse/MNG-4379 ... or did your team log that :).
Post by Ellecer Valencia
Hi Brett,
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG]
[DEBUG] mypackage:myartifact:jar:1.0.2:compile (selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] myartifact: using locally installed snapshot
[WARNING] POM for 'mypackage:myartifact:pom:1.0.2-SNAPSHOT:test' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[DEBUG] Reason: Failed to validate POM for project
mypackage:myartifact at Artifact
[mypackage:myartifact:pom:1.0.2-SNAPSHOT:test]
[DEBUG]
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG]
Now in this project, we are inheriting from a parent POM (standardised
(WL_HOME is Weblogic install directory)
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/lib/rt.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>webservices</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/webservices.jar</systemPath>
</dependency>
Now it only fails on the Weblogic related entries. With the Java
system dependencies it seems to do fine.
Has the handling of this changed from 2.0.* to 2.2.*?
If so, what should we replace it with?
And will these settings also work for people still using maven 2.0.10?
Ellecer
Post by Brett Randall
Hi Ellecer
What is the output of mvn -e -X ...
Brett
Post by Ellecer Valencia
Hi,
How come when I try a build using Maven 2.2.1 I get multiple messages
like
Post by Brett Randall
Post by Ellecer Valencia
"[WARNING] POM for 'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build."
These errors weren't displaying when I was using Maven 2.0.10
I'm trying to use the newer version of Maven but I can't proceed with
these error messages.
How can I find out what are the actual errors it's referring to? I
didn't come across any mention of relevant POM format changes going
from Maven 2.0.* to 2.1.* or 2.2.* - if anyone has any info on this it
would be a great help! Is there a way to validate the pom and get
format error details from Maven?
thanks,
Ellecer
---------------------------------------------------------------------
---------------------------------------------------------------------
Ellecer Valencia
2009-11-20 05:41:07 UTC
Permalink
No, not my team. I think a more sensible fix is to just put the
weblogic jars in Artifactory, but it's in a pom that I don't have much
control over.

Maybe 2.2.2 will fix it. =)
Post by Brett Randall
http://jira.codehaus.org/browse/MNG-4379 ... or did your team log that :).
Post by Ellecer Valencia
Hi Brett,
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG]
[DEBUG]   mypackage:myartifact:jar:1.0.2:compile (selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] myartifact: using locally installed snapshot
[WARNING] POM for 'mypackage:myartifact:pom:1.0.2-SNAPSHOT:test' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[DEBUG] Reason: Failed to validate POM for project
mypackage:myartifact at Artifact
[mypackage:myartifact:pom:1.0.2-SNAPSHOT:test]
[DEBUG]
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG]
Now in this project, we are inheriting from a parent POM (standardised
(WL_HOME is Weblogic install directory)
     <dependency>
       <groupId>com.sun</groupId>
       <artifactId>tools</artifactId>
       <version>1.5.0.11</version>
       <scope>system</scope>
       <systemPath>${java.home}/../lib/tools.jar</systemPath>
     </dependency>
     <dependency>
       <groupId>com.sun</groupId>
       <artifactId>rt</artifactId>
       <version>1.5.0.11</version>
       <scope>system</scope>
       <systemPath>${java.home}/lib/rt.jar</systemPath>
     </dependency>
     <dependency>
       <groupId>weblogic</groupId>
       <artifactId>weblogic</artifactId>
       <version>10.0</version>
       <scope>system</scope>
       <systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
     </dependency>
     <dependency>
       <groupId>weblogic</groupId>
       <artifactId>webservices</artifactId>
       <version>10.0</version>
       <scope>system</scope>
       <systemPath>${env.WL_HOME}/server/lib/webservices.jar</systemPath>
     </dependency>
Now it only fails on the Weblogic related entries. With the Java
system dependencies it seems to do fine.
Has the handling of this changed from 2.0.* to 2.2.*?
If so, what should we replace it with?
And will these settings also work for  people still using maven 2.0.10?
Ellecer
Post by Brett Randall
Hi Ellecer
What is the output of mvn -e -X ...
Brett
Post by Ellecer Valencia
Hi,
How come when I try a build using Maven 2.2.1 I get multiple messages
like
Post by Brett Randall
Post by Ellecer Valencia
"[WARNING] POM for 'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build."
These errors weren't displaying when I was using Maven 2.0.10
I'm trying to use the newer version of Maven but I can't proceed with
these error messages.
How can I find out what are the actual errors it's referring to? I
didn't come across any mention of relevant POM format changes going
from Maven 2.0.* to 2.1.* or 2.2.* - if anyone has any info on this it
would be a great help!  Is there a way to validate the pom and get
format error details  from Maven?
thanks,
Ellecer
---------------------------------------------------------------------
---------------------------------------------------------------------
Brian E. Fox
2009-11-20 17:33:20 UTC
Permalink
Post by Ellecer Valencia
Maybe 2.2.2 will fix it. =)
Not likely. The pom is plain wrong an it was a bug in 2.x which
allowed it to go unnoticed.
Post by Ellecer Valencia
Post by Brett Randall
http://jira.codehaus.org/browse/MNG-4379 ... or did your team log that :).
On Fri, Nov 20, 2009 at 2:59 PM, Ellecer Valencia
Post by Ellecer Valencia
Hi Brett,
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
must specify an absolute path systemPath.
[DEBUG]
[DEBUG] mypackage:myartifact:jar:1.0.2:compile (selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] myartifact: using locally installed snapshot
[WARNING] POM for 'mypackage:myartifact:pom:1.0.2-SNAPSHOT:test' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[DEBUG] Reason: Failed to validate POM for project
mypackage:myartifact at Artifact
[mypackage:myartifact:pom:1.0.2-SNAPSHOT:test]
[DEBUG]
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
must specify an absolute path systemPath.
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG]
Now in this project, we are inheriting from a parent POM
(standardised
(WL_HOME is Weblogic install directory)
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/lib/rt.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/weblogic.jar</
systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>webservices</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/webservices.jar</
systemPath>
</dependency>
Now it only fails on the Weblogic related entries. With the Java
system dependencies it seems to do fine.
Has the handling of this changed from 2.0.* to 2.2.*?
If so, what should we replace it with?
And will these settings also work for people still using maven 2.0.10?
Ellecer
Post by Brett Randall
Hi Ellecer
What is the output of mvn -e -X ...
Brett
Post by Ellecer Valencia
Hi,
How come when I try a build using Maven 2.2.1 I get multiple messages
like
Post by Brett Randall
Post by Ellecer Valencia
"[WARNING] POM for 'mypackage.artifact:pom:1.0.2-
SNAPSHOT:compile' is
invalid.
Its dependencies (if any) will NOT be available to the current build."
These errors weren't displaying when I was using Maven 2.0.10
I'm trying to use the newer version of Maven but I can't proceed with
these error messages.
How can I find out what are the actual errors it's referring to? I
didn't come across any mention of relevant POM format changes going
from Maven 2.0.* to 2.1.* or 2.2.* - if anyone has any info on this it
would be a great help! Is there a way to validate the pom and get
format error details from Maven?
thanks,
Ellecer
---
------------------------------------------------------------------
---
------------------------------------------------------------------
---------------------------------------------------------------------
Ellecer Valencia
2009-11-22 14:06:53 UTC
Permalink
Hi Brian,

Could you please clarify what's actually "plain wrong" about it?

Going back to the example I posted:

<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/lib/rt.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
</dependency>

Do you mean the first one, referencing "${java.home}" is correct and
the one referencing "${env.WL_HOME}" is wrong? So what should we do to
make it work?


thanks,

Ellecer
Post by Ellecer Valencia
Maybe 2.2.2 will fix it. =)
Not likely. The pom is plain wrong an it was a bug in 2.x which allowed it
to go unnoticed.
Post by Ellecer Valencia
Post by Brett Randall
http://jira.codehaus.org/browse/MNG-4379 ... or did your team log that :).
Post by Ellecer Valencia
Hi Brett,
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG]
[DEBUG]   mypackage:myartifact:jar:1.0.2:compile (selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] myartifact: using locally installed snapshot
[WARNING] POM for 'mypackage:myartifact:pom:1.0.2-SNAPSHOT:test' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[DEBUG] Reason: Failed to validate POM for project
mypackage:myartifact at Artifact
[mypackage:myartifact:pom:1.0.2-SNAPSHOT:test]
[DEBUG]
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG]
Now in this project, we are inheriting from a parent POM (standardised
(WL_HOME is Weblogic install directory)
    <dependency>
      <groupId>com.sun</groupId>
      <artifactId>tools</artifactId>
      <version>1.5.0.11</version>
      <scope>system</scope>
      <systemPath>${java.home}/../lib/tools.jar</systemPath>
    </dependency>
    <dependency>
      <groupId>com.sun</groupId>
      <artifactId>rt</artifactId>
      <version>1.5.0.11</version>
      <scope>system</scope>
      <systemPath>${java.home}/lib/rt.jar</systemPath>
    </dependency>
    <dependency>
      <groupId>weblogic</groupId>
      <artifactId>weblogic</artifactId>
      <version>10.0</version>
      <scope>system</scope>
      <systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
    </dependency>
    <dependency>
      <groupId>weblogic</groupId>
      <artifactId>webservices</artifactId>
      <version>10.0</version>
      <scope>system</scope>
      <systemPath>${env.WL_HOME}/server/lib/webservices.jar</systemPath>
    </dependency>
Now it only fails on the Weblogic related entries. With the Java
system dependencies it seems to do fine.
Has the handling of this changed from 2.0.* to 2.2.*?
If so, what should we replace it with?
And will these settings also work for  people still using maven 2.0.10?
Ellecer
Post by Brett Randall
Hi Ellecer
What is the output of mvn -e -X ...
Brett
Post by Ellecer Valencia
Hi,
How come when I try a build using Maven 2.2.1 I get multiple messages
like
Post by Brett Randall
Post by Ellecer Valencia
"[WARNING] POM for 'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build."
These errors weren't displaying when I was using Maven 2.0.10
I'm trying to use the newer version of Maven but I can't proceed with
these error messages.
How can I find out what are the actual errors it's referring to? I
didn't come across any mention of relevant POM format changes going
from Maven 2.0.* to 2.1.* or 2.2.* - if anyone has any info on this it
would be a great help!  Is there a way to validate the pom and get
format error details  from Maven?
thanks,
Ellecer
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Brian Fox
2009-11-22 22:18:29 UTC
Permalink
Well Maven sees it just like the message:
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.


So since the first one works and the second one doesn't, that leads me
to believe that WL_HOME isn't defined in your environment.
Post by Ellecer Valencia
Hi Brian,
Could you please clarify what's actually "plain wrong" about it?
  <dependency>
     <groupId>com.sun</groupId>
     <artifactId>rt</artifactId>
     <version>1.5.0.11</version>
     <scope>system</scope>
     <systemPath>${java.home}/lib/rt.jar</systemPath>
   </dependency>
   <dependency>
     <groupId>weblogic</groupId>
     <artifactId>weblogic</artifactId>
     <version>10.0</version>
     <scope>system</scope>
     <systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
   </dependency>
Do you mean the first one, referencing "${java.home}" is correct and
the one referencing "${env.WL_HOME}" is wrong? So what should we do to
make it work?
thanks,
Ellecer
Post by Ellecer Valencia
Maybe 2.2.2 will fix it. =)
Not likely. The pom is plain wrong an it was a bug in 2.x which allowed it
to go unnoticed.
Post by Ellecer Valencia
Post by Brett Randall
http://jira.codehaus.org/browse/MNG-4379 ... or did your team log that :).
Post by Ellecer Valencia
Hi Brett,
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG]
[DEBUG]   mypackage:myartifact:jar:1.0.2:compile (selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] myartifact: using locally installed snapshot
[WARNING] POM for 'mypackage:myartifact:pom:1.0.2-SNAPSHOT:test' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[DEBUG] Reason: Failed to validate POM for project
mypackage:myartifact at Artifact
[mypackage:myartifact:pom:1.0.2-SNAPSHOT:test]
[DEBUG]
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG]
Now in this project, we are inheriting from a parent POM (standardised
(WL_HOME is Weblogic install directory)
    <dependency>
      <groupId>com.sun</groupId>
      <artifactId>tools</artifactId>
      <version>1.5.0.11</version>
      <scope>system</scope>
      <systemPath>${java.home}/../lib/tools.jar</systemPath>
    </dependency>
    <dependency>
      <groupId>com.sun</groupId>
      <artifactId>rt</artifactId>
      <version>1.5.0.11</version>
      <scope>system</scope>
      <systemPath>${java.home}/lib/rt.jar</systemPath>
    </dependency>
    <dependency>
      <groupId>weblogic</groupId>
      <artifactId>weblogic</artifactId>
      <version>10.0</version>
      <scope>system</scope>
      <systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
    </dependency>
    <dependency>
      <groupId>weblogic</groupId>
      <artifactId>webservices</artifactId>
      <version>10.0</version>
      <scope>system</scope>
      <systemPath>${env.WL_HOME}/server/lib/webservices.jar</systemPath>
    </dependency>
Now it only fails on the Weblogic related entries. With the Java
system dependencies it seems to do fine.
Has the handling of this changed from 2.0.* to 2.2.*?
If so, what should we replace it with?
And will these settings also work for  people still using maven 2.0.10?
Ellecer
Post by Brett Randall
Hi Ellecer
What is the output of mvn -e -X ...
Brett
Post by Ellecer Valencia
Hi,
How come when I try a build using Maven 2.2.1 I get multiple messages
like
Post by Brett Randall
Post by Ellecer Valencia
"[WARNING] POM for 'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build."
These errors weren't displaying when I was using Maven 2.0.10
I'm trying to use the newer version of Maven but I can't proceed with
these error messages.
How can I find out what are the actual errors it's referring to? I
didn't come across any mention of relevant POM format changes going
from Maven 2.0.* to 2.1.* or 2.2.* - if anyone has any info on this it
would be a great help!  Is there a way to validate the pom and get
format error details  from Maven?
thanks,
Ellecer
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Ellecer Valencia
2009-11-22 23:08:04 UTC
Permalink
But that's exactly the problem - it *is* defined in the environment. :(

$ls -l $WL_HOME/server/lib/webservices.jar
-rwxr-xr-x. 1 dev dev 1696324 2009-10-30 16:55
/usr/java/weblogic/server/lib/webservices.jar


$echo $WL_HOME
/usr/java/weblogic


The Maven project I am trying to build has a pom.xml with a parent pom

<parent>
<artifactId>super_pom</artifactId>
<groupId>mypackage</groupId>
<version>1.0.2-SNAPSHOT</version>
</parent>

and it's in super_pom where the weblogic dependency is declared.
Post by Ellecer Valencia
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
So since the first one works and the second one doesn't, that leads me
to believe that WL_HOME isn't defined in your environment.
Post by Ellecer Valencia
Hi Brian,
Could you please clarify what's actually "plain wrong" about it?
  <dependency>
     <groupId>com.sun</groupId>
     <artifactId>rt</artifactId>
     <version>1.5.0.11</version>
     <scope>system</scope>
     <systemPath>${java.home}/lib/rt.jar</systemPath>
   </dependency>
   <dependency>
     <groupId>weblogic</groupId>
     <artifactId>weblogic</artifactId>
     <version>10.0</version>
     <scope>system</scope>
     <systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
   </dependency>
Do you mean the first one, referencing "${java.home}" is correct and
the one referencing "${env.WL_HOME}" is wrong? So what should we do to
make it work?
thanks,
Ellecer
Post by Ellecer Valencia
Maybe 2.2.2 will fix it. =)
Not likely. The pom is plain wrong an it was a bug in 2.x which allowed it
to go unnoticed.
Post by Ellecer Valencia
Post by Brett Randall
http://jira.codehaus.org/browse/MNG-4379 ... or did your team log that :).
Post by Ellecer Valencia
Hi Brett,
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG]
[DEBUG]   mypackage:myartifact:jar:1.0.2:compile (selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] myartifact: using locally installed snapshot
[WARNING] POM for 'mypackage:myartifact:pom:1.0.2-SNAPSHOT:test' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[DEBUG] Reason: Failed to validate POM for project
mypackage:myartifact at Artifact
[mypackage:myartifact:pom:1.0.2-SNAPSHOT:test]
[DEBUG]
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG]
Now in this project, we are inheriting from a parent POM (standardised
(WL_HOME is Weblogic install directory)
    <dependency>
      <groupId>com.sun</groupId>
      <artifactId>tools</artifactId>
      <version>1.5.0.11</version>
      <scope>system</scope>
      <systemPath>${java.home}/../lib/tools.jar</systemPath>
    </dependency>
    <dependency>
      <groupId>com.sun</groupId>
      <artifactId>rt</artifactId>
      <version>1.5.0.11</version>
      <scope>system</scope>
      <systemPath>${java.home}/lib/rt.jar</systemPath>
    </dependency>
    <dependency>
      <groupId>weblogic</groupId>
      <artifactId>weblogic</artifactId>
      <version>10.0</version>
      <scope>system</scope>
      <systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
    </dependency>
    <dependency>
      <groupId>weblogic</groupId>
      <artifactId>webservices</artifactId>
      <version>10.0</version>
      <scope>system</scope>
      <systemPath>${env.WL_HOME}/server/lib/webservices.jar</systemPath>
    </dependency>
Now it only fails on the Weblogic related entries. With the Java
system dependencies it seems to do fine.
Has the handling of this changed from 2.0.* to 2.2.*?
If so, what should we replace it with?
And will these settings also work for  people still using maven 2.0.10?
Ellecer
Post by Brett Randall
Hi Ellecer
What is the output of mvn -e -X ...
Brett
Post by Ellecer Valencia
Hi,
How come when I try a build using Maven 2.2.1 I get multiple messages
like
Post by Brett Randall
Post by Ellecer Valencia
"[WARNING] POM for 'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is
invalid.
Its dependencies (if any) will NOT be available to the current build."
These errors weren't displaying when I was using Maven 2.0.10
I'm trying to use the newer version of Maven but I can't proceed with
these error messages.
How can I find out what are the actual errors it's referring to? I
didn't come across any mention of relevant POM format changes going
from Maven 2.0.* to 2.1.* or 2.2.* - if anyone has any info on this it
would be a great help!  Is there a way to validate the pom and get
format error details  from Maven?
thanks,
Ellecer
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Brett Porter
2009-11-23 00:18:53 UTC
Permalink
Did you also "export WL_HOME"?

I tried something similar here and it works fine in 2.2.1.

- Brett
Post by Ellecer Valencia
But that's exactly the problem - it *is* defined in the environment. :(
$ls -l $WL_HOME/server/lib/webservices.jar
-rwxr-xr-x. 1 dev dev 1696324 2009-10-30 16:55
/usr/java/weblogic/server/lib/webservices.jar
$echo $WL_HOME
/usr/java/weblogic
The Maven project I am trying to build has a pom.xml with a parent pom
<parent>
<artifactId>super_pom</artifactId>
<groupId>mypackage</groupId>
<version>1.0.2-SNAPSHOT</version>
</parent>
and it's in super_pom where the weblogic dependency is declared.
Post by Ellecer Valencia
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
So since the first one works and the second one doesn't, that leads me
to believe that WL_HOME isn't defined in your environment.
Post by Ellecer Valencia
Hi Brian,
Could you please clarify what's actually "plain wrong" about it?
<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/lib/rt.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
</dependency>
Do you mean the first one, referencing "${java.home}" is correct and
the one referencing "${env.WL_HOME}" is wrong? So what should we do to
make it work?
thanks,
Ellecer
Post by Ellecer Valencia
Maybe 2.2.2 will fix it. =)
Not likely. The pom is plain wrong an it was a bug in 2.x which allowed it
to go unnoticed.
Post by Ellecer Valencia
Post by Brett Randall
http://jira.codehaus.org/browse/MNG-4379 ... or did your team log that :).
Post by Ellecer Valencia
Hi Brett,
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG]
[DEBUG] mypackage:myartifact:jar:1.0.2:compile (selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] myartifact: using locally installed snapshot
[WARNING] POM for 'mypackage:myartifact:pom:1.0.2-SNAPSHOT:test' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[DEBUG] Reason: Failed to validate POM for project
mypackage:myartifact at Artifact
[mypackage:myartifact:pom:1.0.2-SNAPSHOT:test]
[DEBUG]
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG]
Now in this project, we are inheriting from a parent POM (standardised
(WL_HOME is Weblogic install directory)
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/lib/rt.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>webservices</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/webservices.jar</systemPath>
</dependency>
Now it only fails on the Weblogic related entries. With the Java
system dependencies it seems to do fine.
Has the handling of this changed from 2.0.* to 2.2.*?
If so, what should we replace it with?
And will these settings also work for people still using maven 2.0.10?
Ellecer
Post by Brett Randall
Hi Ellecer
What is the output of mvn -e -X ...
Brett
Post by Ellecer Valencia
Hi,
How come when I try a build using Maven 2.2.1 I get multiple messages
like
Post by Brett Randall
Post by Ellecer Valencia
"[WARNING] POM for 'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is
invalid.
Its dependencies (if any) will NOT be available to the current build."
These errors weren't displaying when I was using Maven 2.0.10
I'm trying to use the newer version of Maven but I can't proceed with
these error messages.
How can I find out what are the actual errors it's referring to? I
didn't come across any mention of relevant POM format changes going
from Maven 2.0.* to 2.1.* or 2.2.* - if anyone has any info on this it
would be a great help! Is there a way to validate the pom and get
format error details from Maven?
thanks,
Ellecer
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Ellecer Valencia
2009-11-23 03:17:57 UTC
Permalink
Post by Brett Porter
Did you also "export WL_HOME"?
I tried something similar here and it works fine in 2.2.1.
- Brett
Hi Brett,

I'd presume the environment variable being there means that's already
happened. =)

This entry is in .bashrc so I'm pretty sure the environment var is
always created.

export WL_HOME=/usr/java/weblogic

I've just created a new session window and see these errors when I run
with "mvn -o -X -e package"

Validation Errors:
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.


Ellecer
Post by Brett Porter
Post by Ellecer Valencia
But that's exactly the problem - it *is* defined in the environment. :(
$ls -l $WL_HOME/server/lib/webservices.jar
-rwxr-xr-x. 1 dev dev 1696324 2009-10-30 16:55
/usr/java/weblogic/server/lib/webservices.jar
$echo $WL_HOME
/usr/java/weblogic
The Maven project  I am trying to build has a pom.xml with a parent pom
       <parent>
               <artifactId>super_pom</artifactId>
               <groupId>mypackage</groupId>
               <version>1.0.2-SNAPSHOT</version>
       </parent>
and it's in super_pom where the weblogic dependency is declared.
Post by Ellecer Valencia
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
So since the first one works and the second one doesn't, that leads me
to believe that WL_HOME isn't defined in your environment.
Post by Ellecer Valencia
Hi Brian,
Could you please clarify what's actually "plain wrong" about it?
  <dependency>
     <groupId>com.sun</groupId>
     <artifactId>rt</artifactId>
     <version>1.5.0.11</version>
     <scope>system</scope>
     <systemPath>${java.home}/lib/rt.jar</systemPath>
   </dependency>
   <dependency>
     <groupId>weblogic</groupId>
     <artifactId>weblogic</artifactId>
     <version>10.0</version>
     <scope>system</scope>
     <systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
   </dependency>
Do you mean the first one, referencing "${java.home}" is correct and
the one referencing "${env.WL_HOME}" is wrong? So what should we do to
make it work?
thanks,
Ellecer
Post by Ellecer Valencia
Maybe 2.2.2 will fix it. =)
Not likely. The pom is plain wrong an it was a bug in 2.x which allowed it
to go unnoticed.
Post by Ellecer Valencia
Post by Brett Randall
http://jira.codehaus.org/browse/MNG-4379 ... or did your team log that :).
Post by Ellecer Valencia
Hi Brett,
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG]
[DEBUG]   mypackage:myartifact:jar:1.0.2:compile (selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] myartifact: using locally installed snapshot
[WARNING] POM for 'mypackage:myartifact:pom:1.0.2-SNAPSHOT:test' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[DEBUG] Reason: Failed to validate POM for project
mypackage:myartifact at Artifact
[mypackage:myartifact:pom:1.0.2-SNAPSHOT:test]
[DEBUG]
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG]
Now in this project, we are inheriting from a parent POM (standardised
(WL_HOME is Weblogic install directory)
    <dependency>
      <groupId>com.sun</groupId>
      <artifactId>tools</artifactId>
      <version>1.5.0.11</version>
      <scope>system</scope>
      <systemPath>${java.home}/../lib/tools.jar</systemPath>
    </dependency>
    <dependency>
      <groupId>com.sun</groupId>
      <artifactId>rt</artifactId>
      <version>1.5.0.11</version>
      <scope>system</scope>
      <systemPath>${java.home}/lib/rt.jar</systemPath>
    </dependency>
    <dependency>
      <groupId>weblogic</groupId>
      <artifactId>weblogic</artifactId>
      <version>10.0</version>
      <scope>system</scope>
      <systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
    </dependency>
    <dependency>
      <groupId>weblogic</groupId>
      <artifactId>webservices</artifactId>
      <version>10.0</version>
      <scope>system</scope>
      <systemPath>${env.WL_HOME}/server/lib/webservices.jar</systemPath>
    </dependency>
Now it only fails on the Weblogic related entries. With the Java
system dependencies it seems to do fine.
Has the handling of this changed from 2.0.* to 2.2.*?
If so, what should we replace it with?
And will these settings also work for  people still using maven 2.0.10?
Ellecer
Post by Brett Randall
Hi Ellecer
What is the output of mvn -e -X ...
Brett
Post by Ellecer Valencia
Hi,
How come when I try a build using Maven 2.2.1 I get multiple messages
like
Post by Brett Randall
Post by Ellecer Valencia
"[WARNING] POM for 'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is
invalid.
Its dependencies (if any) will NOT be available to the current build."
These errors weren't displaying when I was using Maven 2.0.10
I'm trying to use the newer version of Maven but I can't proceed with
these error messages.
How can I find out what are the actual errors it's referring to? I
didn't come across any mention of relevant POM format changes going
from Maven 2.0.* to 2.1.* or 2.2.* - if anyone has any info on this it
would be a great help!  Is there a way to validate the pom and get
format error details  from Maven?
thanks,
Ellecer
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Brett Randall
2009-11-23 07:16:52 UTC
Permalink
Hi Ellecer,

Is there a chance you are seeing http://jira.codehaus.org/browse/MNG-4148 ,
which is duplicated by http://jira.codehaus.org/browse/MNG-2626 ? Does that
fit your parent POM hierarchy?

Other Brett
Post by Ellecer Valencia
Post by Brett Porter
Did you also "export WL_HOME"?
I tried something similar here and it works fine in 2.2.1.
- Brett
Hi Brett,
I'd presume the environment variable being there means that's already
happened. =)
This entry is in .bashrc so I'm pretty sure the environment var is
always created.
export WL_HOME=/usr/java/weblogic
I've just created a new session window and see these errors when I run
with "mvn -o -X -e package"
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
Ellecer
Post by Brett Porter
Post by Ellecer Valencia
But that's exactly the problem - it *is* defined in the environment. :(
$ls -l $WL_HOME/server/lib/webservices.jar
-rwxr-xr-x. 1 dev dev 1696324 2009-10-30 16:55
/usr/java/weblogic/server/lib/webservices.jar
$echo $WL_HOME
/usr/java/weblogic
The Maven project I am trying to build has a pom.xml with a parent pom
<parent>
<artifactId>super_pom</artifactId>
<groupId>mypackage</groupId>
<version>1.0.2-SNAPSHOT</version>
</parent>
and it's in super_pom where the weblogic dependency is declared.
Post by Ellecer Valencia
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
So since the first one works and the second one doesn't, that leads me
to believe that WL_HOME isn't defined in your environment.
Post by Ellecer Valencia
Hi Brian,
Could you please clarify what's actually "plain wrong" about it?
<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/lib/rt.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
</dependency>
Do you mean the first one, referencing "${java.home}" is correct and
the one referencing "${env.WL_HOME}" is wrong? So what should we do to
make it work?
thanks,
Ellecer
Post by Brian E. Fox
Post by Ellecer Valencia
Maybe 2.2.2 will fix it. =)
Not likely. The pom is plain wrong an it was a bug in 2.x which
allowed it
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
to go unnoticed.
Post by Ellecer Valencia
Post by Brett Randall
http://jira.codehaus.org/browse/MNG-4379 ... or did your team log
that
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
:).
On Fri, Nov 20, 2009 at 2:59 PM, Ellecer Valencia <
Post by Ellecer Valencia
Hi Brett,
Thanks for the suggestion. I may have found the issue. Would it be
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
must specify an absolute path systemPath.
[DEBUG]
[DEBUG] mypackage:myartifact:jar:1.0.2:compile (selected for
compile)
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
[DEBUG] Skipping disabled repository central
[DEBUG] myartifact: using locally installed snapshot
[WARNING] POM for 'mypackage:myartifact:pom:1.0.2-SNAPSHOT:test'
is
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
invalid.
Its dependencies (if any) will NOT be available to the current
build.
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
[DEBUG] Reason: Failed to validate POM for project
mypackage:myartifact at Artifact
[mypackage:myartifact:pom:1.0.2-SNAPSHOT:test]
[DEBUG]
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
must specify an absolute path systemPath.
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG]
Now in this project, we are inheriting from a parent POM
(standardised
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
(WL_HOME is Weblogic install directory)
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/lib/rt.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>webservices</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/webservices.jar</systemPath>
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
</dependency>
Now it only fails on the Weblogic related entries. With the Java
system dependencies it seems to do fine.
Has the handling of this changed from 2.0.* to 2.2.*?
If so, what should we replace it with?
And will these settings also work for people still using maven
2.0.10?
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Ellecer
On Fri, Nov 20, 2009 at 1:01 PM, Brett Randall <
Post by Brett Randall
Hi Ellecer
What is the output of mvn -e -X ...
Brett
On Fri, Nov 20, 2009 at 11:41 AM, Ellecer Valencia <
Post by Ellecer Valencia
Hi,
How come when I try a build using Maven 2.2.1 I get multiple
messages
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
like
Post by Brett Randall
Post by Ellecer Valencia
"[WARNING] POM for
'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
invalid.
Its dependencies (if any) will NOT be available to the current
build."
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
These errors weren't displaying when I was using Maven 2.0.10
I'm trying to use the newer version of Maven but I can't proceed
with
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
these error messages.
How can I find out what are the actual errors it's referring to?
I
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
didn't come across any mention of relevant POM format changes
going
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
from Maven 2.0.* to 2.1.* or 2.2.* - if anyone has any info on
this it
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
would be a great help! Is there a way to validate the pom and
get
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
format error details from Maven?
thanks,
Ellecer
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Ellecer Valencia
2009-11-24 06:39:45 UTC
Permalink
Hi Other Brett,

It's a similar problem, except that the environment settings are
coming from the shell environment and not a setttings.xml


Ellecer
Post by Brett Randall
Hi Ellecer,
Is there a chance you are seeing http://jira.codehaus.org/browse/MNG-4148 ,
which is duplicated by http://jira.codehaus.org/browse/MNG-2626 ? Does that
fit your parent POM hierarchy?
Other Brett
Post by Ellecer Valencia
Post by Brett Porter
Did you also "export WL_HOME"?
I tried something similar here and it works fine in 2.2.1.
- Brett
Hi Brett,
I'd presume the environment variable being there means that's already
happened. =)
This entry is in .bashrc so I'm pretty sure the environment var is
always created.
export WL_HOME=/usr/java/weblogic
I've just created a new session window and see these errors when I run
with "mvn -o -X -e package"
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
Ellecer
Post by Brett Porter
Post by Ellecer Valencia
But that's exactly the problem - it *is* defined in the environment. :(
$ls -l $WL_HOME/server/lib/webservices.jar
-rwxr-xr-x. 1 dev dev 1696324 2009-10-30 16:55
/usr/java/weblogic/server/lib/webservices.jar
$echo $WL_HOME
/usr/java/weblogic
The Maven project  I am trying to build has a pom.xml with a parent pom
       <parent>
               <artifactId>super_pom</artifactId>
               <groupId>mypackage</groupId>
               <version>1.0.2-SNAPSHOT</version>
       </parent>
and it's in super_pom where the weblogic dependency is declared.
Post by Ellecer Valencia
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
So since the first one works and the second one doesn't, that leads me
to believe that WL_HOME isn't defined in your environment.
Post by Ellecer Valencia
Hi Brian,
Could you please clarify what's actually "plain wrong" about it?
  <dependency>
     <groupId>com.sun</groupId>
     <artifactId>rt</artifactId>
     <version>1.5.0.11</version>
     <scope>system</scope>
     <systemPath>${java.home}/lib/rt.jar</systemPath>
   </dependency>
   <dependency>
     <groupId>weblogic</groupId>
     <artifactId>weblogic</artifactId>
     <version>10.0</version>
     <scope>system</scope>
     <systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
   </dependency>
Do you mean the first one, referencing "${java.home}" is correct and
the one referencing "${env.WL_HOME}" is wrong? So what should we do to
make it work?
thanks,
Ellecer
Post by Brian E. Fox
Post by Ellecer Valencia
Maybe 2.2.2 will fix it. =)
Not likely. The pom is plain wrong an it was a bug in 2.x which
allowed it
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
to go unnoticed.
Post by Ellecer Valencia
Post by Brett Randall
http://jira.codehaus.org/browse/MNG-4379 ... or did your team log
that
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
:).
On Fri, Nov 20, 2009 at 2:59 PM, Ellecer Valencia <
Post by Ellecer Valencia
Hi Brett,
Thanks for the suggestion. I may have found the issue. Would it be
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
must specify an absolute path systemPath.
[DEBUG]
[DEBUG]   mypackage:myartifact:jar:1.0.2:compile (selected for
compile)
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
[DEBUG] Skipping disabled repository central
[DEBUG] myartifact: using locally installed snapshot
[WARNING] POM for 'mypackage:myartifact:pom:1.0.2-SNAPSHOT:test'
is
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
invalid.
Its dependencies (if any) will NOT be available to the current
build.
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
[DEBUG] Reason: Failed to validate POM for project
mypackage:myartifact at Artifact
[mypackage:myartifact:pom:1.0.2-SNAPSHOT:test]
[DEBUG]
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
must specify an absolute path systemPath.
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG]
Now in this project, we are inheriting from a parent POM
(standardised
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
(WL_HOME is Weblogic install directory)
    <dependency>
      <groupId>com.sun</groupId>
      <artifactId>tools</artifactId>
      <version>1.5.0.11</version>
      <scope>system</scope>
      <systemPath>${java.home}/../lib/tools.jar</systemPath>
    </dependency>
    <dependency>
      <groupId>com.sun</groupId>
      <artifactId>rt</artifactId>
      <version>1.5.0.11</version>
      <scope>system</scope>
      <systemPath>${java.home}/lib/rt.jar</systemPath>
    </dependency>
    <dependency>
      <groupId>weblogic</groupId>
      <artifactId>weblogic</artifactId>
      <version>10.0</version>
      <scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
    </dependency>
    <dependency>
      <groupId>weblogic</groupId>
      <artifactId>webservices</artifactId>
      <version>10.0</version>
      <scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/webservices.jar</systemPath>
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
    </dependency>
Now it only fails on the Weblogic related entries. With the Java
system dependencies it seems to do fine.
Has the handling of this changed from 2.0.* to 2.2.*?
If so, what should we replace it with?
And will these settings also work for  people still using maven
2.0.10?
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Ellecer
On Fri, Nov 20, 2009 at 1:01 PM, Brett Randall <
Post by Brett Randall
Hi Ellecer
What is the output of mvn -e -X ...
Brett
On Fri, Nov 20, 2009 at 11:41 AM, Ellecer Valencia <
Post by Ellecer Valencia
Hi,
How come when I try a build using Maven 2.2.1 I get multiple
messages
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
like
Post by Brett Randall
Post by Ellecer Valencia
"[WARNING] POM for
'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
invalid.
Its dependencies (if any) will NOT be available to the current
build."
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
These errors weren't displaying when I was using Maven 2.0.10
I'm trying to use the newer version of Maven but I can't proceed
with
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
these error messages.
How can I find out what are the actual errors it's referring to?
I
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
didn't come across any mention of relevant POM format changes
going
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
from Maven 2.0.* to 2.1.* or 2.2.* - if anyone has any info on
this it
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
would be a great help!  Is there a way to validate the pom and
get
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
format error details  from Maven?
thanks,
Ellecer
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Brett Randall
2009-11-30 05:36:30 UTC
Permalink
Hi Ellecer,

Just scanning through this thread I'm not sure if anyone has asked you to
run "mvn help:effective-pom" in the problem environment. Does that show the
correct variable substitution?

Brett
Post by Ellecer Valencia
Hi Other Brett,
It's a similar problem, except that the environment settings are
coming from the shell environment and not a setttings.xml
Ellecer
Post by Brett Randall
Hi Ellecer,
Is there a chance you are seeing
http://jira.codehaus.org/browse/MNG-4148 ,
Post by Brett Randall
which is duplicated by http://jira.codehaus.org/browse/MNG-2626 ? Does
that
Post by Brett Randall
fit your parent POM hierarchy?
Other Brett
Post by Ellecer Valencia
Post by Brett Porter
Did you also "export WL_HOME"?
I tried something similar here and it works fine in 2.2.1.
- Brett
Hi Brett,
I'd presume the environment variable being there means that's already
happened. =)
This entry is in .bashrc so I'm pretty sure the environment var is
always created.
export WL_HOME=/usr/java/weblogic
I've just created a new session window and see these errors when I run
with "mvn -o -X -e package"
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
Ellecer
Post by Brett Porter
Post by Ellecer Valencia
But that's exactly the problem - it *is* defined in the environment.
:(
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Porter
Post by Ellecer Valencia
$ls -l $WL_HOME/server/lib/webservices.jar
-rwxr-xr-x. 1 dev dev 1696324 2009-10-30 16:55
/usr/java/weblogic/server/lib/webservices.jar
$echo $WL_HOME
/usr/java/weblogic
The Maven project I am trying to build has a pom.xml with a parent
pom
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Porter
Post by Ellecer Valencia
<parent>
<artifactId>super_pom</artifactId>
<groupId>mypackage</groupId>
<version>1.0.2-SNAPSHOT</version>
</parent>
and it's in super_pom where the weblogic dependency is declared.
Post by Ellecer Valencia
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
must specify an absolute path systemPath.
So since the first one works and the second one doesn't, that leads
me
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
to believe that WL_HOME isn't defined in your environment.
On Sun, Nov 22, 2009 at 9:06 AM, Ellecer Valencia <
Post by Ellecer Valencia
Hi Brian,
Could you please clarify what's actually "plain wrong" about it?
<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/lib/rt.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
</dependency>
Do you mean the first one, referencing "${java.home}" is correct
and
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
the one referencing "${env.WL_HOME}" is wrong? So what should we do
to
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
make it work?
thanks,
Ellecer
Post by Brian E. Fox
Post by Ellecer Valencia
Maybe 2.2.2 will fix it. =)
Not likely. The pom is plain wrong an it was a bug in 2.x which
allowed it
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
to go unnoticed.
Post by Ellecer Valencia
On Fri, Nov 20, 2009 at 3:42 PM, Brett Randall <
Post by Brett Randall
http://jira.codehaus.org/browse/MNG-4379 ... or did your team
log
Post by Brett Randall
Post by Ellecer Valencia
that
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
:).
On Fri, Nov 20, 2009 at 2:59 PM, Ellecer Valencia <
Post by Ellecer Valencia
Hi Brett,
Thanks for the suggestion. I may have found the issue. Would it
be
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
must specify an absolute path systemPath.
[DEBUG]
[DEBUG] mypackage:myartifact:jar:1.0.2:compile (selected for
compile)
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
[DEBUG] Skipping disabled repository central
[DEBUG] myartifact: using locally installed snapshot
[WARNING] POM for
'mypackage:myartifact:pom:1.0.2-SNAPSHOT:test'
Post by Brett Randall
Post by Ellecer Valencia
is
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
invalid.
Its dependencies (if any) will NOT be available to the current
build.
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
[DEBUG] Reason: Failed to validate POM for project
mypackage:myartifact at Artifact
[mypackage:myartifact:pom:1.0.2-SNAPSHOT:test]
[DEBUG]
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
must specify an absolute path systemPath.
[DEBUG] For dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=weblogic, version=10.0, type=jar}: system-scoped
dependency
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
must specify an absolute path systemPath.
[DEBUG] For managed dependency Dependency {groupId=weblogic,
artifactId=webservices, version=10.0, type=jar}: system-scoped
dependency must specify an absolute path systemPath.
[DEBUG]
Now in this project, we are inheriting from a parent POM
(standardised
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
(WL_HOME is Weblogic install directory)
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
<version>1.5.0.11</version>
<scope>system</scope>
<systemPath>${java.home}/lib/rt.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/weblogic.jar</systemPath>
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>webservices</artifactId>
<version>10.0</version>
<scope>system</scope>
<systemPath>${env.WL_HOME}/server/lib/webservices.jar</systemPath>
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
</dependency>
Now it only fails on the Weblogic related entries. With the
Java
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
system dependencies it seems to do fine.
Has the handling of this changed from 2.0.* to 2.2.*?
If so, what should we replace it with?
And will these settings also work for people still using maven
2.0.10?
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Ellecer
On Fri, Nov 20, 2009 at 1:01 PM, Brett Randall <
Post by Brett Randall
Hi Ellecer
What is the output of mvn -e -X ...
Brett
On Fri, Nov 20, 2009 at 11:41 AM, Ellecer Valencia <
Post by Ellecer Valencia
Hi,
How come when I try a build using Maven 2.2.1 I get multiple
messages
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
like
Post by Brett Randall
Post by Ellecer Valencia
"[WARNING] POM for
'mypackage.artifact:pom:1.0.2-SNAPSHOT:compile' is
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
invalid.
Its dependencies (if any) will NOT be available to the
current
Post by Brett Randall
Post by Ellecer Valencia
build."
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
These errors weren't displaying when I was using Maven 2.0.10
I'm trying to use the newer version of Maven but I can't
proceed
Post by Brett Randall
Post by Ellecer Valencia
with
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
these error messages.
How can I find out what are the actual errors it's referring
to?
Post by Brett Randall
Post by Ellecer Valencia
I
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
didn't come across any mention of relevant POM format changes
going
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
from Maven 2.0.* to 2.1.* or 2.2.* - if anyone has any info
on
Post by Brett Randall
Post by Ellecer Valencia
this it
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
would be a great help! Is there a way to validate the pom
and
Post by Brett Randall
Post by Ellecer Valencia
get
Post by Brett Porter
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Ellecer Valencia
Post by Brian E. Fox
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Randall
Post by Ellecer Valencia
format error details from Maven?
thanks,
Ellecer
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Post by Brett Randall
Post by Ellecer Valencia
Post by Brett Porter
Post by Ellecer Valencia
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Loading...