[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 ...

Samuel hello again,

I added the JDK to Installed JRE's section and Run>Maven install worked without trouble. However I am still receiving same error message: "No plugin found for prefix 'jetty' in the current project and in the plugin groups"

The goals value needs to be "jetty:run-exploded" right? Can I use another value here?

Best regards
Didem

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

Didem, it looks like you're using a JRE and not a JDK.

http://wiki.eclipse.org/M2E_FAQ#Unable_to_locate_the_Javac_Compiler_Error

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


Inactive hide details for Didem Gurdur ---09/15/2014 01:56:13 PM---Dear Samuel, Thank you very much for your reply.Didem Gurdur ---09/15/2014 01:56:13 PM---Dear Samuel, Thank you very much for your reply.


    From:

Didem Gurdur <didemgurdur@xxxxxxxxx>

    To:

Lyo project developer discussions <lyo-dev@xxxxxxxxxxx>

    Cc:

lyo-dev-bounces@xxxxxxxxxxx

    Date:

09/15/2014 01:56 PM

    Subject:

Re: [lyo-dev] Fwd: Thread: [ERROR] No plugin found for prefix âjettyâ in the current project and in the plugin groups ...

    Sent by:

lyo-dev-bounces@xxxxxxxxxxx




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
_______________________________________________
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


_______________________________________________
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

GIF image

GIF image