I've created a web dynamic Project with eclipse. Then I've gone to MSDOS
window and inside the project folder I've executed
mvn archetype:create-from-project
But I receive the error:
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
Hi Wendy, thanks for the response. This is the error I get for each of the 2
jars:
Error message: Missing:
--
1) com.mycompany:ProjectNextQuattro:jar:1.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file
Hi friends ,
We use Maven Assembly plug-in to create the binary and source
archives in .zip, .tar.gz formats . We also want to generate hash
digests such as md5, sha1 for those archives . Is there any way to
achieve this using Maven Assembly plug-in ? If not please provide a
pointer to
If it's a file repo, you just need to copy the jar and the pom to the right
directory.
/Anders
On Tue, Nov 10, 2009 at 09:47, monkeyden monk...@monkeyden.com wrote:
Hi Wendy, thanks for the response. This is the error I get for each of the
2
jars:
Error message: Missing:
--
1)
One way is if you use a repository manager (Nexus for instance), it will be
generated for you when deploying.
/Anders
On Tue, Nov 10, 2009 at 09:52, Steve Brannstrom steveb...@gmail.com wrote:
Hi friends ,
We use Maven Assembly plug-in to create the binary and source
archives in .zip,
Thanks for the reply. But we have .zip and .tar.gz archives and
AFAIK not possible to deploy them to a repository, hence I don't think
this approach will wok for us. It is great if we can generate those
digests with Assembly plug-in or with any other way using maven.
Thanks,
On 11/10/09,
Anyone know why eclipse can't resolve the M2_REPO build path if the project
dir is created under the workspace?
if i move the project dir to another dir, it works.
--
Eyal Edri
http://maven.apache.org/plugins/maven-install-plugin/examples/installing-checksums.html
Don't think you can do that with the assembly plugin. I guess you can write
your own plugin that does this for you, but the thing is that you're not
doing it the Maven way so you somewhat on your own. (Maven
Hi all,
I am building a binary for a project to which an empty file literally named
'*.class' is added. This causes the execution to fail (Hibernate tries to
analyse all the .class files and says it's not a class on that one).
So, I'd like to remove this file from the final jar. I've tried
Hi Anders,
Yes i have looked at archtypes. But it seems that this is only a one-shoot
generation of the projects? Can it maintain/enforce changes in archetype
when it is updated centrally in a dynamic way?
Cheers,
-Kristoffer
Anders Hammar wrote:
That's called archetypes in the Maven
The Maven team is pleased to announce the release of the Maven
Reporting Impl, version 2.0.4.3.
This shared component contains abstract classes to manage report generation..
http://maven.apache.org/shared/maven-reporting-impl/
Release Notes - Maven Shared Components - Version
No, not that I know of.
/Anders
On Tue, Nov 10, 2009 at 13:54, kristoffer
kristoffer.sjog...@ericsson.comwrote:
Hi Anders,
Yes i have looked at archtypes. But it seems that this is only a one-shoot
generation of the projects? Can it maintain/enforce changes in archetype
when it is updated
Quintin Beukes wrote:
Is there any way to create a new project, but effectively have it's
sources be a group of JAR files, and when doing mvn install on that
project, install those JAR files as if they were built with maven?
I think there is a plugin for that nowdays, but in the past i just
Hey,
I have to wrap BIRT 2.5 in a Maven project. There is unfortunately no public
repository that has this dependency.
Further the whole project must be built with mvn install from the root, on
a clean machine (only having internet connection).
So these 2 together pose a problem.
Is there any
Is there an install command for file system repos, like there is for
installation to the default local repo (~/.m2/..)?
Did you read the error message??
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=com.mycompany
Dear Maven Folk,
This is a query that's been asked before relating to the maven-war-plugin, but
I've done some digging and I can't find an answer, so I'd be very grateful if
anyone can point me in the right direction.
I've got a project A which depends on a war B and so I'm using an overlay.
Hello,
Is there a way for a Maven plugin (Mojo) to detect if it has been called
from the console, and not from pom.xml as part of the lifecycle? I have
a Mojo which has @requiresProject false, and I execute it like mvn
pluginname:dostuff
But it also can be called from pom.xml, as part of a
As a Maven and Android user and committer with the Maven Android
plugin I have created a feature request on google code to get the
android jar into the maven central repository.
More technical details are with the bugreport: http://bit.ly/1HoyoZ
If you are a Android or Maven user I would
Hi,
I have a project in Maven 1.1 (can't upgrade due to company restrictions at
the moment). I am using Eclipse Galileo on Mac 10.5.6. Within my project
level directory, I have service, model, and serviceWebApp directories.
However, when I run maven eclipse from the top level directory, my
You can use the build helper plugin to attach additional artifacts to be
installed and deployed. This will mean that hashes will be created for
you.
See
http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.
html
-Original Message-
From: Steve Brannstrom
Hello all,
I'm a complete beginner to Maven but I have a project that requires it I
think, but I have a few questions (as I cannot figure it out from the
website):
I have a quite complex codebase where I have a series of projects (in
Eclipse), each of which represents a seperate OSGi service
I am having troubles getting this dependency to be found that is in a
'non-default' location inside the jar.
The jar is build with the classfiles being located in WEB-INF/classes. The
MANIFEST of that jar reflects this: Bundle-ClassPath: WEB-INF/classes/
I can't get maven to find these
This is probably a bug since the order of plugins should be respected.
Have you checked the ticket list of 2.2.2 or 3.0-alpha-3 to see if it
is already fixed?
And are you running 2.2.1?
Paul
On Tue, Nov 10, 2009 at 11:48 AM, boraldo bora...@hotbox.ru wrote:
Suppose I have to execute some
Our development team recently mavenized a couple of our web applications. We
are struggling a bit with the new development methodology.
A brief description of our artifacts and our setup:
We have 2 web applications: shop signup.
These 2 web applications are both dependant on 2 jars:
I don't think this is a bug, if you execute mvn help:effective-pom you
will see the two plugin configurations merged. I think your best bet
is to set the second execution to a phase later in the chain. Often,
this also means you are trying to do to much in one module.
Hth,
Nick Stolwijk
~Java
1) How many .pom files do I need and at what level should they be at, can
someone copy and paste my directory structure and detail where the .pom
files should be?
-- From the hip, at least 5 (one for each module and one aggregator pom at the
top level) - but depending on what else your company
How would this be different in your old ant builds? I presume that when
you shipped to a customer you used a concrete version. Thus you must of
worried about concrete versions at some point.
I would say worry about versions at the same point in your maven builds
as you did in your old ant builds.
Suppose I have to execute some actions after some phase.
These actions are made plugins X and Y.
1st action - executed by plugin X
2nd action - executed by plugin Y
3rd action - executed by plugin X
I wrote the following pom:
build
plugins
plugin
Good call. Nick is correct.
On Tue, Nov 10, 2009 at 11:59 AM, Nick Stolwijk nick.stolw...@gmail.com wrote:
I don't think this is a bug, if you execute mvn help:effective-pom you
will see the two plugin configurations merged. I think your best bet
is to set the second execution to a phase later
I can confirm this:
If you specify one phase for two different actions, you do NOT have ANY
control over when they will execute.
If you want to manipulate the order of operations, set the phase values
to successive entries from the lifecycle.
P.S. - the further away from the SOP maven way you find yourself, the more
painful your existence will be.
You may wanna listen to this particular podcast (javaposse):
Roundup 09 - Maven Without Pain?
http://javaposse.com/index.php?post_id=503964
-Original Message-
From: EJ Ciramella
Hey,
I am working with a large project's dependencies, which is in it's
development phase. So all it's modules have -SNAPSHOT versions. This means
every day my first build for every project wants to do some SNAPSHOT checks.
Doing a complete build (which I usually do after a subversion update)
Our development team recently mavenized a couple of our web applications. We
are struggling a bit with the new development methodology.
A brief description of our artifacts and our setup:
We have 2 web applications: shop signup.
These 2 web applications are both dependant on 2 jars:
To Todd Thiessen
I would say worry about versions at the same point in your maven builds as
you did in your old ant builds. You don't need to be constantly cutting a
new Maven release during your development cycle. Stay with SNAPSHOTs until
you get closer to release.
Thanks for the reply Todd.
Inside your configuration for maven-war-plugin, I would do something like
this (this is untested but approximate):
...
overlays
overlay
idsomeOverlay/id
groupIdfoo.bar/groupId
artifactIdbaz.bax/artifactId
typewar/type
Right, it only refers to the default local maven repo, not this local one.
After having added the following paths to my project:
com/mycompany/ProjectNextQuattro/1.0
com/mycompany/ProjectNextPojos/1.0
with the following dependencies:
dependency
not the bug you think it is
you need to put the executions in different phases if they need a
defined order
the bug is allowing you to list the same plugin twice in the one
plugins section
Sent from my [rhymes with tryPod] ;-)
On 10 Nov 2009, at 17:51, Paul Benedict
For a larger audience, like a QA group, yes for sure I would recommend
going with releases. Of course this is typically done as you get close
to release.
If you are talking about very early testing of a release, then I think
SNAPSHOTs are appropriate.
But I don't see this as very different than
That's the right process, and no, the process itself is not overkill but you
need to decide what is the right level between better traceability and
release overhead for you. Obviously your process was a lot simpler with Ant
because you never/rarely tagged and released your code. If you found an
Hi!
Am Dienstag, 10. November 2009 16:58:48 schrieb Gajo Csaba:
Is there a way for a Maven plugin (Mojo) to detect if it has been called
from the console, and not from pom.xml as part of the lifecycle? I have
a Mojo which has @requiresProject false, and I execute it like mvn
every build the checks are almost instantaneous. Though the first build
every day still takes time as it does the initial update requests.
Could you trigger a daily build out of your CI server every morning a
couple hours before you show up for work, so the pause/delay checking
for new
Hmm, I think there is major confusion here regarding Maven terminology here.
In Maven, you have ONE local repo. It could be in the default
%USER_HOME%/-m2/repository/ or you can change that through settings.xml.
However, when you say file system repo I thought you meant a file system
based remote
Hello!
I have a problem getting my encrypted passwords to work with a remote server
that I'm deploying to.
I can never connect to that server using maven, although all other standard
programs work.
I use the scp protocol and I get this error message:
Authentication failed: Cannot connect.
I am willing to bet Maven 3 prevents the duplication of a plugin
within the same phase.
On Tue, Nov 10, 2009 at 1:03 PM, Stephen Connolly
stephen.alan.conno...@gmail.com wrote:
not the bug you think it is
you need to put the executions in different phases if they need a defined
order
the
Another approach to archive this is invoke Ant checksum task [1]
through the Maven AntRun plug-in. This is much flexible way, because
you can run it anywhere using antrun:run goal .
Thanks,
[1] - http://ant.apache.org/manual/CoreTasks/checksum.html
[2] -
Hi, Using Maven 1.1. Within my PROJECT_ROOT/service directory, I'm trying to
create a maven.xml file that will automatically create a directory whenever
someone runs the javaapp:install command. I tried this, but the command
isn't being executed ...
project xmlns:j=jelly:core
How are the credentials stored in your settings.xml? You say you have the
same for another server, do both servers have the same id and you only have
on set of credentials in your settings.xml?
Does it work without encrypting the passwords?
/Anders
On Tue, Nov 10, 2009 at 21:33, Ludwig
I also had the problem where i could only execute mvn using sudo -- then I
executed the following and got it working:
cd /usr/local
sudo ln -s apache-maven-2.2.0/ maven
then it worked
Carr, Brian M wrote:
Do you have a m2_home environment variable set? This was causing
issues for me
it's not two executions of a plugin in the same phase, that is
allowed. what is not allowed is
build
plugins
plugin
groupid foo
artifactid bar
...
/plugin
plugin
groupid foo
artifact bar
...
/plugin
ie you cannot gave two plugin sections for the same plugin in the one
plugins
All,
I am using Maven 2.0.9 to build a multi module project. I have defined the
assembly plugin in my parent pom. I can get my assemblies built using
mvn install assembly:assemly
This command runs the tests twice, once during install phase and another
during assembly. I tried assembly:single
On Tue, Nov 10, 2009 at 12:01 PM, monkeyden monk...@monkeyden.com wrote:
Right, it only refers to the default local maven repo, not this local one.
As Anders pointed out, you have exactly one local repository,
usually in ~/.m2/repository (though it can be moved.)
This repo you're trying to
Here are my credentials from settings.xml.
server
idno-good/id
usernamemaven/username
password{AH6qBn1T1Y0H3zI3fl9V9T+LZ6bDAS/K7aF5gwBpWHk=}/password
/server
server
idgood/id
usernameludwig/username
As I said, for a couple different reasons, we can't convert these projects to
maven just yet. These are simply directories in my maven project. They are
created manually and they each contain a jar file and a pom file. If this
isn't possible then what is a file system repository, if anything?
yep its a wagon
a wagon is a transport protocol used to pull or push information to/from your
pom your repository
http://maven.apache.org/wagon/
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese
On Tue, Nov 10, 2009 at 3:34 PM, monkeyden monk...@monkeyden.com wrote:
These are simply directories in my maven project. They are
created manually and they each contain a jar file and a pom file. If this
isn't possible then what is a file system repository, if anything? Is it
just the
Thanks for your detailed and well thought out reply.
I have a small follow up questions, if you have time to answer:
In your answer to question 1, you said and one aggregator pom at the top
level. I take it you mean that the top level pom should be in the root
workspace folder? If so, how does
1 - not entirely sure how well eclipse plays with aggregator poms.
4 - we didn't build anything, it already exists.
Much like any system overhaul, if I were in your shoes, I'd work on a proof of
concept example in a branch off of your mainline (maybe based on a known good
release label). From
I'm trying to branch our code from trunk using the Maven Release Plugin .
When I try to do a dry run with the release plugin it complains about
missing scm information when all parent poms have scm sections. I'm
guessing the plugin is expecting a scm section in the root pom.xml, but I
didn't
I personally never use the release plugin (another case of the maven way not
fitting with our way), but I wonder, if you ran mvn site, wouldn't each
step along the way not only generate site output, but also have links to the
scm details for that particular tier? If that's the case, why not
If you only change the url (keep the same id), it should work I guess. If
the password is in fact the same on both servers (urls).
I would start by removing the encryption and get things to work with plain
passwords. Then add the encryption.
What's the protocol for the two urls?
/Anders
On Tue,
I would also argue that you should read up on Maven and how it uses repos.
It's much easier if you actually understand the core Maven stuff, than us
telling you what to do. Less misunderstandings for one thing.
http://www.sonatype.com/documentation/books/maven-defguide
/Anders
On Wed, Nov 11,
You should bind the assembly plugin to an appropriate phase (such as
'package'). The, you only need to run
mvn install
/Anders
On Tue, Nov 10, 2009 at 22:33, Stephanie Johnson jstephani...@gmail.comwrote:
All,
I am using Maven 2.0.9 to build a multi module project. I have defined the
1) M2Eclipse handles this reasonably well. However, you need to insert a new
folder level in your workspace hierarchy,where you put the aggregator pom.
Then the modules go below that folder.
/Anders
On Wed, Nov 11, 2009 at 03:41, EJ Ciramella ecirame...@upromise.com wrote:
1 - not entirely
I use scp for secure connections. If I use ftp it works on the no-good
server as well, but I don't have ftp access from home.
If you encrypt a password twice. Is the encrypted password supposed to be
different every time? This happens at my computer.
/Ludwig
-Original Message-
From:
I'm confused. First you say you just change the url, and now you say the
server id is different.
Have you tried without encryption? Get that to works first, then go on to
encrypting the passwords. Do try to do everything at the same time when
you're having problems.
Regarding two runs of
65 matches
Mail list logo