Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lyo-dev] Fwd: Thread: [ERROR] No plugin found for prefix ’jetty’ in the current project and in the plugin groups ...

Dear Samuel,
Thank you very much for your reply.

I was using Run as > Maven build and received the message that I sent earlier.
Now I tried Run as> Maven install and received this error message:

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.eclipse.lyo.oslc4j.core:oslc4j-registry:war:3.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.mortbay.jetty:jetty-maven-plugin is missing. @ line 115, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.eclipse.lyo.oslc4j.core:oslc4j-utils:jar:3.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 72, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 58, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] OSLC4J Core
[INFO] OSLC4J Jena Provider
[INFO] OSLC4J JSON4J Provider
[INFO] OSLC4J Wink Application
[INFO] OSLC4J Registry
[INFO] OSLC4J Query
[INFO] OSLC TRS Toolkit
[INFO] OSLC4J Utilities
[INFO] OSLC4J Build
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building OSLC4J Core 3.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ oslc4j-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ oslc4j-core ---
[INFO] Compiling 89 source files to C:\Users\user\git\org.eclipse.lyo.core\org.eclipse.lyo.oslc4j.core\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Unable to locate the Javac Compiler in:
  C:\Program Files\Java\jre6\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] OSLC4J Core ....................................... FAILURE [ 14.493 s]
[INFO] OSLC4J Jena Provider .............................. SKIPPED
[INFO] OSLC4J JSON4J Provider ............................ SKIPPED
[INFO] OSLC4J Wink Application ........................... SKIPPED
[INFO] OSLC4J Registry ................................... SKIPPED
[INFO] OSLC4J Query ...................................... SKIPPED
[INFO] OSLC TRS Toolkit .................................. SKIPPED
[INFO] OSLC4J Utilities .................................. SKIPPED
[INFO] OSLC4J Build ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.993 s
[INFO] Finished at: 2014-09-15T19:42:06+01:00
[INFO] Final Memory: 7M/56M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project oslc4j-core: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\Java\jre6\..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


This was the plugin code in org.eclipse.lyo.oslc4j.registry/pom.xml


<plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>

                <configuration>
                    <webAppConfig>
                        <contextPath>/OSLC4JRegistry</contextPath>
                    </webAppConfig>

                    <!-- Jetty config adds logging -->
                    <jettyConfig>${project.build.directory}/test-classes/jetty.xml</jettyConfig>

                    <!-- enable hot deploy -->
                    <reload>automatic</reload>
                    <scanIntervalSeconds>5</scanIntervalSeconds>
                    <scanTargets>
                        <scanTarget>WebContent</scanTarget>
                    </scanTargets>

                    <systemProperties>
                        <systemProperty>
                            <name>config.dir</name>
                            <value>${basedir}/test/resources</value>
                        </systemProperty>

                        <systemProperty>
                            <name>jetty.logs</name>
                            <value>${basedir}/target</value>
                        </systemProperty>
                        <systemProperty>
                            <name>jetty.port</name>
                            <value>8080</value>
                        </systemProperty>
                    </systemProperties>
                </configuration>
            </plugin>
and I changed it to the code you sent but I am still receiving same error message.

When I tried to Run> Maven install for org.eclipse.lyo.oslc4j.core
I received again message:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile) on project oslc4j-core: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\Java\jre6\..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.

Best regards
Didem



On Mon, Sep 15, 2014 at 7:09 PM, Samuel Padgett <spadgett@xxxxxxxxxx> wrote:

> Hello, I am trying to understand samples and having difficulties to
> run org.eclipse.lyo.oslc4j.build project.

[...]

> [ERROR] No plugin found for prefix ‘jetty’ in the current project
> and in the plugin groups [org.apache.maven.plugins,
> org.codehaus.mojo] available from the repositories [local (C:\Users
> \user.m2\repository), central (http://repo.maven.apache.org/maven2)]

What build command is failing? Run as -> Maven Install?

I haven't seen the error before, but you might want to try changing

    org.eclipse.lyo.oslc4j.registry/pom.xml

to use this jetty plugin instead of what's there

    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-maven-plugin</artifactId>
    <version>9.1.5.v20140505</version>

If you try to build one of the projects individually (like
org.eclipse.lyo.oslc4j.core), does it work?

--
Samuel Padgett | IBM Rational | spadgett@xxxxxxxxxx
Eclipse Lyo: Enabling tool integration with OSLC


_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/lyo-dev


Back to the top