Vaidya, Supriya A (US - Chicago) wrote:
Thank you very much :) This works great... In trying to understand this
however - why weblogic:webservices?

Your error message led me to it:

No versions are present in the repository for the artifact with a range [9.0,)
weblogic:webservices:jar:null

The "[9.0,)" part is Maven's syntax of a version range. This one means:
  "get me version 9.0 or higher"

Secondly "weblogic:webservices:jar:null" is the full artifact syntax used in Maven. It is divided into parts separated by colons:
  groupId:artifactId:packaging:version

In your case it is saying:
  "get me the webservices jar from the weblogic project"

Could you point me to some
documentation (to save your time!) on what the implications of
group/artifact IDs are?

The getting started guide has some good info on this topic:
  http://maven.apache.org/guides/getting-started/index.html



Supriya A Vaidya Technology Integration Deloitte Consulting LLP Tel: +1 312 486 4835 Fax: +1 312 247 4835 Mobile: + 1 414 736 8157 www.deloitte.com

-----Original Message-----
From: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sent: Friday, July 20, 2007 9:19 AM
To: Maven Users List
Subject: Re: Maven-weblogic plugin: Unable to understand error

Judging by the error message you should run this:

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar
-DgroupId=weblogic -DartifactId=webservices -Dversion=9.0
-Dpackaging=jar -DgeneratePom=true

Notice that I changed the groupId to "weblogic".

Vaidya, Supriya A (US - Chicago) wrote:
Hi:

I ran the following commands, after cleaning up my repository -
mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic
-DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar
-DgroupId=webservices -DartifactId=webservices -Dversion=9.0
-Dpackaging=jar -DgeneratePom=true

Then compiled (successfully) and then ran the mvn weblogic:deploy
command - I still get the same error:

[INFO] Failed to resolve artifact.

No versions are present in the repository for the artifact with a
range
[9.0,)
  weblogic:webservices:jar:null

from the specified remote repositories:
  codehaus.org (http://repository.codehaus.org),
  central (http://repo1.maven.org/maven2),
  snapshots (http://snapshots.repository.codehaus.org)

-----Original Message-----
From: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sent: Friday, July 20, 2007 7:57 AM
To: Maven Users List
Subject: Re: Maven-weblogic plugin: Unable to understand error

There doesn't seem to be be any pom for weblogic available in the central repository (or your local repository). You probably need to install that yourself, when you install the weblogic.jar. Intructions
on
how to do this can be found here:


http://maven.apache.org/plugins/maven-install-plugin/examples/generic-po
m-generation.html


Vaidya, Supriya A (US - Chicago) wrote:
Hi:
I am trying to use the weblogic-maven plugin to deploy my application
to
weblogic. Here are the steps that I followed:
1. I installed the external jars that my application uses.
2. installed the weblogic jars
mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic -DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\webservices.jar -DgroupId=webservices -DartifactId=webservices -Dversion=9.0
-Dpackaging=jar
3. installed the weblogic-maven jar mvn install:install-file -Dfile=maven-weblogic-plugin-1.0.0.jar -DgroupId=web-maven -DartifactId=web-maven -Dversion=1.0
-Dpackaging=jar
4. ran the clean and compile commands: mvn clean, mvn compile - these

ran without any errors
5. then ran the mvn weblogic:deploy command, but get teh following
error -
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'weblogic'.
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Building creditdecision
[INFO]    task-segment: [weblogic:deploy]
[INFO]
------------------------------------------------------------------------
-
---
Downloading: http://repository.codehaus.org/weblogic/weblogic/9.0/weblogic-9.0.p
om
Downloading: http://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.po
m
Downloading: http://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.po
m
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
No versions are present in the repository for the artifact with a
range
[9.0,)
  weblogic:webservices:jar:null
from the specified remote repositories: codehaus.org (http://repository.codehaus.org <http://repository.codehaus.org/>),
  central (http://repo1.maven.org/maven2),
snapshots (http://snapshots.repository.codehaus.org <http://snapshots.repository.codehaus.org/>) [INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Jul 19 13:59:46 CDT 2007
[INFO] Final Memory: 2M/4M
[INFO]
------------------------------------------------------------------------
I tried with 9.1, 9.2... what am I doing wrong? I even tried adding the following in my pom.xml -
<repositories>
    <repository>
      <id>Codehaus Snapshots</id>
      <url>http://snapshots.repository.codehaus.org/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>Codehaus Snapshots</id>
      <url>http://snapshots.repository.codehaus.org/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </pluginRepository>
  </pluginRepositories>
the error persists however... Attached is the POM that I am using, modified to remove certain sensitive information... could someone please help?!


This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message.
Any disclosure, copying, or distribution of this message, or the
taking
of any action based on it, is strictly prohibited. [v.E.1]



------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to