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
<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
<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
<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 <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]
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.credit</groupId>
  <artifactId>creditdecision</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>creditdecision</name>
  <url>http://localhost:7001/</url>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
	<dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.12</version>
      <scope>compile</scope>
    </dependency>

	<dependency>
      <groupId>cactus</groupId>
      <artifactId>cactus-maven</artifactId>
      <version>1.6</version>
      <scope>compile</scope>
    </dependency>

	<dependency>
      <groupId>com.infrastructure</groupId>
      <artifactId>infrastructure</artifactId>
      <version>1.0</version>
      <scope>compile</scope>
    </dependency>

	<dependency>
      <groupId>com.cares</groupId>
      <artifactId>caresAccess</artifactId>
      <version>1.0</version>
      <scope>compile</scope>
    </dependency>

	<dependency>
      <groupId>com.infra</groupId>
      <artifactId>tuxedo</artifactId>
      <version>1.0</version>
      <scope>provided</scope>
    </dependency>

	<dependency>
      <groupId>weblogic</groupId>
      <artifactId>weblogic</artifactId>
      <version>9.0</version>
      <scope>compile</scope>
    </dependency>

	<dependency>
      <groupId>webservices</groupId>
      <artifactId>webservices</artifactId>
      <version>9.0</version>
      <scope>compile</scope>
    </dependency>

	<dependency>
		<groupId>web-maven</groupId>
		<artifactId>web-maven</artifactId>
		<version>1.0</version>
		<scope>compile</scope>
	</dependency>

	<dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring</artifactId>
      <version>1.0</version>
      <scope>compile</scope>
    </dependency>
  
  </dependencies>

<build>
   <filters>
      <filter>src/main/properties/environment-dev.properties</filter>
    </filters>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>
 
   <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <configuration>
        <source>1.5</source>
        <target>1.5</target>
      </configuration>
    </plugin>
	<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>weblogic-maven-plugin</artifactId>
        <version>2.9.0-SNAPSHOT</version>
        <configuration>
          <adminServerHostName>localhost</adminServerHostName>
          <adminServerPort>7001</adminServerPort>
          <adminServerProtocol>http</adminServerProtocol>
          <userId>admin</userId>
          <password>weblogic</password>
          <upload>false</upload>
          <remote>false</remote>
          <verbose>false</verbose>
          <debug>false</debug>
          <targetNames>AdminServer</targetNames>
        </configuration>
      </plugin>

  </plugins>

</build>

</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to