You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mick Knutson <mi...@gmail.com> on 2007/08/31 19:53:50 UTC

[m2] Failed to load plugin: org.apache.maven.plugins:maven-antrun-plugin. Adding to late-bound plugins list.

I am running eclipse 3.3 witht eh codehause maven integration. When I run
mvn clean install at the command line, it runs fine. But when I run through
eclipse it gets this error:



[INFO]
----------------------------------------------------------------------------
[INFO] Building calculate-cob-total-bpel
[INFO]    task-segment: [clean, install]
[INFO]
----------------------------------------------------------------------------
[WARN] Failed to load plugin: org.apache.maven.plugins:maven-antrun-plugin.
Adding to late-bound plugins list.
Reason: Failed to load plugin. Reason: Missing:
----------
1) com.sun:tools:jar:1.5.0_08

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.sun -DartifactId=tools \
          -Dversion=1.5.0_08 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
      1) org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.1
      2) com.sun:tools:jar:1.5.0_08

----------
1 required artifact is missing.

for artifact:
  org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.1

from the specified remote repositories:
  ibiblio (http://www.ibiblio.org/maven2),
  central (http://repo1.maven.org/maven2),
  Apache Snapshots (http://cvs.apache.org/maven-snapshot-repository),
  Backup (http://repo1.maven.org/maven2),
  MyFaces SNAPSHOT (http://people.apache.org/repo/m2-snapshot-repository),
  tlc (http://commons.ucalgary.ca/pub/m2),
  snapshots (http://snapshots.maven.codehaus.org/maven2),
  Codehaus Snapshots (http://snapshots.repository.codehaus.org/)

[WARN] Failed to load plugin: org.apache.maven.plugins:maven-antrun-plugin.
Adding to late-bound plugins list.
Reason: Failed to load plugin. Reason: Missing:
----------
1) com.sun:tools:jar:1.5.0_08

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.sun -DartifactId=tools \
          -Dversion=1.5.0_08 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
      1) org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.1
      2) com.sun:tools:jar:1.5.0_08

----------
1 required artifact is missing.

for artifact:
  org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.1

from the specified remote repositories:
  ibiblio (http://www.ibiblio.org/maven2),
  central (http://repo1.maven.org/maven2),
  Apache Snapshots (http://cvs.apache.org/maven-snapshot-repository),
  Backup (http://repo1.maven.org/maven2),
  MyFaces SNAPSHOT (http://people.apache.org/repo/m2-snapshot-repository),
  tlc (http://commons.ucalgary.ca/pub/m2),
  snapshots (http://snapshots.maven.codehaus.org/maven2),
  Codehaus Snapshots (http://snapshots.repository.codehaus.org/)

[WARN] Failed to load plugin: org.apache.maven.plugins:maven-antrun-plugin.
Adding to late-bound plugins list.
Reason: Failed to load plugin. Reason: Missing:
----------
1) com.sun:tools:jar:1.5.0_08

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.sun -DartifactId=tools \
          -Dversion=1.5.0_08 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
      1) org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.1
      2) com.sun:tools:jar:1.5.0_08

----------
1 required artifact is missing.

for artifact:
  org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.1

from the specified remote repositories:
  ibiblio (http://www.ibiblio.org/maven2),
  central (http://repo1.maven.org/maven2),
  Apache Snapshots (http://cvs.apache.org/maven-snapshot-repository),
  Backup (http://repo1.maven.org/maven2),
  MyFaces SNAPSHOT (http://people.apache.org/repo/m2-snapshot-repository),
  tlc (http://commons.ucalgary.ca/pub/m2),
  snapshots (http://snapshots.maven.codehaus.org/maven2),
  Codehaus Snapshots (http://snapshots.repository.codehaus.org/)

[WARN] Failed to load plugin: org.apache.maven.plugins:maven-antrun-plugin.
Adding to late-bound plugins list.
Reason: Failed to load plugin. Reason: Missing:
----------
1) com.sun:tools:jar:1.5.0_08

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.sun -DartifactId=tools \
          -Dversion=1.5.0_08 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
      1) org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.1
      2) com.sun:tools:jar:1.5.0_08

----------



Here is that declaration:



                <plugin>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <executions>

                        <execution>
                            <id>bpelc</id>
                            <phase>process-classes</phase>
                            <configuration>
                                <tasks>
                                    <ant
antfile="${project.root}/tools/build-tools/src/main/resources/bpel/build.xml"

                                         inheritRefs="true">
                                        <property name="env.BPEL_HOME"
value="${bpel.home}"/>
                                        <property name="rev" value="${
project.version}"/>
                                        <property name="project.root"
value="${project.root}"/>
                                        <target name="compile" />
                                    </ant>
                                </tasks>
                            </configuration>
                            <goals>
                                <goal>run</goal>
                            </goals>
                        </execution>

                        <execution>
                            <id>bpelTest</id>
                            <phase>generate-test-resources</phase>
                            <configuration>
                                <tasks>
                                    <ant
antfile="${project.root}/tools/build-tools/src/main/resources/bpel/build.xml"

                                         inheritRefs="true">

                                        <property name="env.BPEL_HOME"
value="${bpel.home}" />
                                        <property name="rev" value="${
project.version}"/>
                                        <property name="project.root"
value="${project.root}"/>
                                        <target name="prepareTests"/>
                                    </ant>
                                </tasks>
                            </configuration>
                            <goals>
                                <goal>run</goal>
                            </goals>
                        </execution>

                    </executions>

                    <dependencies>

                          <dependency>
                            <groupId>ant-contrib</groupId>
                            <artifactId>ant-contrib</artifactId>
                            <version>1.0b2</version>
                          </dependency>

                        <dependency>
                            <groupId>com.sun</groupId>
                            <artifactId>tools</artifactId>
                            <version>1.5.0_08</version>
                            <scope>system</scope>
                            <systemPath>${java.home
}/../lib/tools.jar</systemPath>
                        </dependency>
                        <dependency>
                            <groupId>com.oracle.j2ee</groupId>
                            <artifactId>xmlparserv2</artifactId>
                            <version>10.1.3</version>
                        </dependency>

                    </dependencies>
                </plugin>




-- 

Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---