Hi everyone!
I'm in a bit of a problem here:
I have to make a maven project for native (jni & C) code.
I am using this plugin: http://mojo.codehaus.org/maven-nativ...gin/index.html
and trying to make this example build: http://mojo.codehaus.org/maven-nativ...s/jni-dll.html
(the jni one in svn)
The profile is win32 and MSVC is the compiler provider.
I get the following error: -
[ERROR]
-
-
Maven encountered an error while looking up the following Mojo:
-
Group-Id: org.codehaus.mojo
-
Artifact-Id: native-maven-plugin
-
Version: 1.0-alpha-2
-
Mojo: compile
-
brought in via: Direct invocation
-
-
Referenced from project:
-
Group-Id: org.codehaus.mojo.natives.it.jni.win32
-
Artifact-Id: hello
-
Version: 1.0-SNAPSHOT
-
From file: \\Sfil0\UserData$\pjovanovic05\workspace\jni\native\win32\pom.xml
-
Reason: Unable to lookup component 'org.apache.maven.plugin.Mojo', it could not be started.
-
role: org.apache.maven.plugin.Mojo
-
roleHint: org.codehaus.mojo:native-maven-plugin:1.0-alpha-2:compile
-
classRealm: /plugins/org.codehaus.mojo:native-maven-plugin:1.0-alpha-2@48/thread:main
-
-
Root cause: Component descriptor cannot be found in the component repository: org.codehaus.mojo.natives.manager.CompilerManager [default] (lookup realm: ClassRealm[/plugins/org.codehaus.mojo:native-maven-plugin:1.0-alpha-2@48/thread:main, parent: ClassRealm[/projects/org.codehaus.mojo.natives.it.jni.win32:hello:1.0-SNAPSHOT/thread:main, parent: ClassRealm[plexus.core, parent: null]]]).
-
role: org.codehaus.mojo.natives.manager.CompilerManager
-
roleHint: default
-
classRealm: /plugins/org.codehaus.mojo:native-maven-plugin:1.0-alpha-2@48/thread:main
-
Anybody seen anything like this?
3 5406 JosAH 11,448
Recognized Expert MVP
Not knowing Maven the error diagnostic indicates to me that you haven't properly
installed Maven or forgot to set some (class)path variable for it. Check its
installation instructions. The error diagnostic indicates that it can't find one of its
own components.
kind regards,
Jos
Yeah, it does look like that, but it's a plugin and maven is pretty much just a bunch of plugins doing stuff.
The installation of the plugin is automated and instructed by POM, and i've literally copied the example from the repository and it breaks there.
I'am trying stuff, but it just wont click.
Thanks anyway!
Ok, so just in case anybody comes across this looking for an answer, I did it, and this is how:
in win32 pom, i've added -LD to <compilerStartO ptions> and i gave up on IDEs, just did it from console...
Also I've added user32.lib & advapi32.lib to linkerStartOpti on (like in the tutorial)
There may have been more changes on my part, but I can't remember all now, and I think these were the key ones.
At first it didn't go, but when I logged on a few hours later it worked without any change. Oh the joy!
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Byron Saltysiak |
last post by:
Hi, I'm new to Python and looking to run a large project that would
need automated builds and project reports such as unit test coverage.
Maven is a great Java software to do this - but is there something I
should use for Python? I did some searching on SF and this list but
can't figure out what tools are used by teams to manage large Python
projects (other than the obvious CVS).
One idea is to create Maven plugins and reports that...
|
by: valere |
last post by:
I look for information for communicating between JavaScript and a
native plugin. I noticed that LiveConnect is oriented to
communicate as a "bridge" between Java and JS. But how to process with
a native plugin ? Thanks in advance for answering to the
newbye I am.
|
by: Ffelagund |
last post by:
Hello I'm trying to load dinamically some dll's but when I try to invoke
one method, I ever get ArgumentException if I'm not using native types.
Here are the .h of the dll:
#pragma once
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
using namespace System;
|
by: Ron |
last post by:
Hello,
I'm attempting to develop a plugin framework for an application that I'm
working on. I wish to develop something in which all plugins exist in a
directory tree. The framework need only be given the root of the tree. The
framework then uses os.path.walk to search all for all files named
'plugin.pyc'. These are then loaded using imp.load_compiled(). They need
contain only one variable called 'plugin' which is a reference to an...
|
by: zaheermabbas |
last post by:
Hello All,
I have been following the release documentation of axis, i wanted the axis2.war by building the sources, i have downloaded the source, and as it is specified in the doc to build the sources through maven. I am running on Maven2.0.4 but my Build process is failing because of the following reason,
***********************************************************************************************
+ Error stacktraces are turned on.
...
| |
by: WTH |
last post by:
I am now aware (I am primarily a C++ developer) that in C# if you reference
the same interface from the same file in two different projects the types
are actually incompatible.
I found this out because I have written a generic plugin system for my
current and future C# needs. I defined a base plugin system interface named
IPlugin (original, I know...) which contains some basic plugin infomration
all plugins of this system must expose...
|
by: radhikams |
last post by:
Hi All
I have newly started using maven.Im using 2.0.9 .Actually im very much new to it.and my problem is the when im using the command
mvn archetype:create ------
im getting build error saying that
BUILD ERROR
------------------------------------------------------------------------
Failed to resolve artifact.
GroupId: org.apache.maven.archetypes
|
by: popprem |
last post by:
hi,
I generated classes from a xsd schema with jaxb & did a program to xml reading & writing.Bt wn i cpomlile it through maven it saya that :-
annotations are not supported in -source 1.3
(use -source 5 or higher to enable annotations)
@XmlAccessorType(XmlAccessType.FIELD)
Bt i used java 6 which incorporates jaxb. Also my POMs r directing to java 6. Other java programs are compiling well,only this program gives error.
What cn be the...
|
by: jadeite100 |
last post by:
Hi All:
I am new to displaytag and Maven. I download the displaytag-examples from the url "http://sourceforge.net/projects/displaytag/files/" it is part of the "displaytag-1.2-src.zip"
I am using Eclipse 3.5 and Weblogic 11g.
I got all of the artifacts download. I was able to do "Mavern Install" and "Mavern Package" successfully on the project
In the "displaytag-example" java project. I see the following Problem...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |