Hello,
I'm think the m2eclipse goal is to be used with the eclipse plugin coled
m2eclipse (http://m2eclipse.codehaus.org/).
This plugin add support for maven2 directly in your eclipse and managed
dependencies in special way so you have to used m2eclipse goal.
Guillaume Boucherie
2008/5/21,
Hi,
Using the maven-release-plugin : release:prepare
We use maven embedder in a project, when running the goal release:prepare then
the version numbers are changed and now the maven embedder does not have the
correct
version number.
The new version number is not installed during process but
Hi:
First step is to create a pom for your project. Then add xalan as a
dependency, for example:
dependency
groupIdxalan/groupId
artifactIdxalan/artifactId
version2.7.0/version
scopecompile/scope
/dependency
And that should be enough.
[x] Our team uses HTTP to retrieve our artifacts
HTTPS actually
[ ] Our team uses the filesystem
Don't using this at the moment, but I think a filesystem based
repository could be really useful for example when one wants/needs to
ship a repository with a product.
-Tim
Jason van Zyl
I'm using the following command to create a new archetype project (only
the relevant portion of the command is below):
mvn archetype:generate -DarchetypeRepository=http://somehost.com/mvnrepo
But, because I have the following in my settings.xml file, I cannot
access the repository
Hi all,
[X] Our team uses HTTP to retrieve our artifacts
Greetings
--
Daniele De Francesco
Senior Java Architect
Value Team S.p.A.
e-mail: [EMAIL PROTECTED]
Hi Baz,
my observations are that it is not possible to use a placeholder for the
groupId, artifactId, version of the parent pom for example. As you
said the CLI -D option is not taken into consideration.
Anyway, m2 take this option into consideration at some later stage, but not
when it identifies
Hi,
Claudio Ranieri schrieb:
Hi,
Why the maven plugins doesn´t load all libraries declared in pom.xml?
You have to distinguish between the plugin project and the project you
are using the plugin with. All libraries (with a proper scope) declared
in the pom of the plugin project are
Hi,
How can I run a command and get the return of that command put into a
maven property?
For example i'd like to get the latest perforce changelist number and
add it to my Manifest file
Thanks,
Rich
On Wed, 2008-05-21 at 14:14 -0700, Jason van Zyl wrote:
On 21-May-08, at 1:07 PM, Wendy Smoak wrote:
On Tue, May 20, 2008 at 11:15 PM, Jason van Zyl [EMAIL PROTECTED]
wrote:
[X] Our team uses HTTP to retrieve our artifacts
... and should be using HTTPS because some repos require
Hello,
I agree. Though, m2eclipse doens't handle WTP settings, as far as I know. I
think it's planned for WTP 2.0 or so. Therefore, m2eclipse doens't work if you
need those settings, e.g. for J2EE application servers.
At least, that's what I figured out..any other opinions?
Kuno
Hi! Please, help me.
I need to create directory structure shown below:
project
+-src
| +-org
| +-mycompany
|+-app.java
+-test
| +-org
| +-mycompany
|+-apptest.java
pom.xml
How can i create new archetype having this directory structure and redefine
source directory from
By creating this structure you are making it unfamiliar to other maven
developers.
But if you need to do it:
...
build
sourceDirectorysrc/sourceDirectory
testSourceDirectorytest/testSourceDirectory
...
In the pom.xml file will do it.
Use an environmental property
For example some other system could set the env var called P4_CL and
then you could reference it using ${env.P4_CL}
-Original Message-
From: Richard Chamberlain [mailto:[EMAIL PROTECTED]
Sent: 22 May 2008 11:10
To: Maven Users List
Subject: Getting a dynamic
I found out yesterday that my error may be due to the recent Surefire
upgrade. I'm going to do some legwork and post back with additional details.
Clifton wrote:
Reason:
org/apache/maven/toolchain/ToolchainManager
That's what I'd been getting from time to time in IntelliJ Idea (using
it's
Hi Ilya,
Create the structure you'd like to have (don't forget the pom.xml file)
go in the directory containing the pom file.
call mvn archetype:create-from-project.
You will have an archetype created in target/generated-sources/archetype.
Hope this helps.
Raphaël
2008/5/22 Ilya Ermolov
I'm just wondering, how do you name your artifacts in a large
multimoduled project to avoid having two modules with the same
artifact-id?
I am thinking in the lines of project-partofgroupid-descriptivename as
artifact-id. This would make the name of the final jar files (at least
more) unique and
On Thu, 2008-05-22 at 15:02 +0200, Magne Nordtveit wrote:
I'm just wondering, how do you name your artifacts in a large
multimoduled project to avoid having two modules with the same
artifact-id?
I am thinking in the lines of project-partofgroupid-descriptivename as
artifact-id. This would
On Thu, 2008-05-22 at 15:23 +0200, simon wrote:
On Thu, 2008-05-22 at 15:02 +0200, Magne Nordtveit wrote:
I'm just wondering, how do you name your artifacts in a large
multimoduled project to avoid having two modules with the same
artifact-id?
I am thinking in the lines of
On Thu, 2008-05-22 at 15:33 +0200, Magne Nordtveit wrote:
On Thu, 2008-05-22 at 15:23 +0200, simon wrote:
On Thu, 2008-05-22 at 15:02 +0200, Magne Nordtveit wrote:
I'm just wondering, how do you name your artifacts in a large
multimoduled project to avoid having two modules with the same
On 22-May-08, at 12:41 AM, Tim Kettler wrote:
[x] Our team uses HTTP to retrieve our artifacts
HTTPS actually
[ ] Our team uses the filesystem
Don't using this at the moment, but I think a filesystem based
repository could be really useful for example when one wants/needs
to ship a
The problem comes from the recent Surefire upgrade. I found an issue in the
Q4E Jira explaining the fix but to save time I'll list it here. Force
Surefire 2.4.2 for now and the problem goes away. If you're using different
IDE integration that supports an external Maven runner then I'd suggest
On Tue, May 20, 2008 at 11:15 PM, Jason van Zyl [EMAIL PROTECTED] wrote:
[X] Our team uses the filesystem
I also use the filesystem with file:// urls, it's very useful for
testing a set of repository contents locally before making them
available in a remote repo, and for quick examples. I
Hi,
Is there a list of available variables and expressions one can insert
into a pom file?
In particular I am looking for inserting variables like the current date
into the manifest entries.
Andreas
Hi,
We have multiple components and applications. When I hand an application
over to our certification team to build I need to tell them which (if
any) dependent components they need to build. So every release I have
provide specific instructions of the form:
From SCM get this label, build
I use HTTP for ordinary development.
However file is also used often in tooling. For example I have a
custom release plugin that deploys to a file based staging repository.
Only when the release completely succeeds, is the staging repository
uploaded (using the staging plugin) to the real
I actually meant
src/test/resources
I have found that if I place the resource (xml file) in both places, it
works
src/it/java
src/test/resources
However, if I only have one copy (in either location) it does not work.
I didn't try src/main/resources because it's an integration test.
Should I put
Hello there ;)
First, i have to mention, that i'm just system administrator, not
developer, so please, excuse me for the following stupid question.
I would like to retrieve jar with highest version number from our
central maven repository using mvn command to some directory on a
filesystem.
Hi,
Still on my quest of getting perforce numbered unique snapshots:
1) If I specify a SNAPSHOT dependency in my pom, can I configure
maven to download the unique named artefact rather than one that has
SNAPSHOT on the end?
i.e. repo has myproduct-1.0-SNAPSHOT-20080522.114841-2.jar,
Thank you Javier, but how do I perform the transformation ?
or in other words, in order to execute a transformation using xalan, I
need to do this:
java org.apache.xalan.xslt.Process -xsl myxsl.xsl -in in.xml -out out.xml
How do I get this done from maven ? I have figured it using
Hi all,
Spent an hour or so to discover why subversion fails to commit the
pom.xml during a release:prepare...
If the pom.xml file contains CDATA sections (as required by few plugins,
such as the maven-eclipse-plugin), then the end of line sequence of
these lines is changed to LF.
The only
Why do the team need to build your application? Can you not give them a
built version for them to test?
If you can do this, have an application project that depends on all the
components that you use. Configure the assembly plugin to zip all the
dependencies into a kit. You can then tell them to
This solution causes other problem with subversion -- the error
message look like this:
svn: Can't move some tmp file some file access is denied
I couldn't make it work, even on a clean working copy with minimum
running processes (search, anti-virus, tortoisesvn).
The only remedy was to
Rich,
It's very common for corperations to implement this sort of thing. It
helps ensure that the products can be rebuilt from the source code, and
that helps certain audit/security processes. In any case, this is what
my company does, and they pay me every two weeks.
I do what you suggest for
I am attempting to set up Maven on a corporate network without access to
the web. I've got Maven, a repository (Nexus) and now need to fill my
repository with all the needed plugins. Unfortunately, I don't have the
option of letting Maven connect to the web and download its
plugins/dependencies.
Oh I see.
How about having a release branch for each of your projects? Then you
wouldn't have to worry about specifying a svn number for each project.
A parent project could still work as they could do a multi-module build,
which builds each project in turn.
Rich
-Original Message-
Hi all,
I have a multi-module project that I'm trying to run the release plugin against.
scm connections are configured in the POMs and so is the tagBase.
Checkin of POMs with updated release numbers works, but the tagging
fails...
Strangely enough, I get prompted for the new release and
Hi there,
I have been exploring the 2.0-alpha-3 release of the
maven-archetype-plugin. Understanding that it is still in alpha
release stages I wanted to try it out.
I defined a project, (a simple web project) and then ran the following command:
mvn archetype:create-from-project
On further investigation, it is a problem with the way the assembly
plugin setup I have is doing jar-with-dependencies -it's duplicate in
other projects as well, we just found it now since we are using it to
create the signed JAR in the other project. Does anyone have any
insight as to what is
I wanted to thank you for responding and giving me a good head start on the
maven-assembly-plugin. The documentation is Excellent and they are powerful
indeed. I also wanted to share the very simple solution to building the zip
file:
--in my profile sections for different env's I have the
On Thu, May 22, 2008 at 8:39 AM, Paul Davis [EMAIL PROTECTED] wrote:
I have found that if I place the resource (xml file) in both places, it
works
src/it/java
src/test/resources
However, if I only have one copy (in either location) it does not work.
I wouldn't expect src/it/* to work,
0.9.4 of m2eclipse start to support natively WTP :
http://docs.codehaus.org/display/M2ECLIPSE/WTP+mini+howto
Arnaud
On Thu, May 22, 2008 at 11:54 AM, Baeriswyl Kuno - Extern (IT-BA-MV)
[EMAIL PROTECTED] wrote:
Hello,
I agree. Though, m2eclipse doens't handle WTP settings, as far as I know.
Folks;
after merrily using maven2 for quite a while, by now I dealt with
defining dependency using version ranges for the first time - and
failed, not sure why. Maybe I am just too stupid, and maybe someone can
help me outta this?
Example: Dependency defined is
dependency
Hello everyone,
I have multiple maven projects sharing some code via a war overlay and
would like to use WTP in Eclipse to deploy my webapps and benefit from
the productivity gain it brings to the dev teams.
However, due to my war overlay, WTP seems unable to work properly as
my webapps depends
I suggest adding a custom goal maven.xml that adds the test classes
dir to
the list of source dirs, then creates the jar.
Thanks. I ended up adding this goal, which produces a separate test jar:
goal name=test-build
attainGoal name=test:compile/
ant:jar
On Thu, May 22, 2008 at 6:44 AM, simon [EMAIL PROTECTED] wrote:
On Thu, 2008-05-22 at 15:33 +0200, Magne Nordtveit wrote:
On Thu, 2008-05-22 at 15:23 +0200, simon wrote:
On Thu, 2008-05-22 at 15:02 +0200, Magne Nordtveit wrote:
I'm just wondering, how do you name your artifacts in a large
Before my response, I just want to say, I really appreciate you taking the
time to help me with this.
Yes, I am defining the src to look in src/it/java.
I heard a rumor that maven 2.1 would support that for integration tests so,
I wanted to start using the location.
I also have the integration
Ouch. Is there any way this privileged group can hook up a Nexus to
the internet, and run through some of your builds? They could then
analyze and approve the contents which could then be moved to your
protected instance. Enumerating the full list of things and doing it
manually is going to be
Repositories have metadata xml files from where you can retrieve the highest
number. It is usually pretty straightforward downloading the metadata file,
extracting the information and constructing the required version number.
Andreas
-Original Message-
From: Brane F. Gračnar
Did you try to define in your dependency the part after myproduct as
version, i.e. 1.0-SNAPSHOT-20080522.114841-2?
Andreas
-Original Message-
From: Richard Chamberlain [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 22, 2008 8:48 AM
To: Maven Users List
Subject: Downloading a unique
In your scenario Nexus is not necessary since you are actually not
proxying anything. If I understand your scenario correctly you need to
provide a managed and controlled repository. An Apache Server is good
enough.
I would suggest having the folks with the external access to run the
builds
is it possible to coax the maven-jar-plugin to name my artifact with
a .zip suffix instead of .jar?
also, can I tell it not to include any manifest?
I don't see anything helpful in the docs.
tia,
-Russ
-
To unsubscribe,
On Thu, May 22, 2008 at 5:59 PM, Russ Tremain [EMAIL PROTECTED] wrote:
is it possible to coax the maven-jar-plugin to name my artifact with a .zip
suffix instead of .jar?
also, can I tell it not to include any manifest?
I don't see anything helpful in the docs.
It sounds like the assembly
Maybe this would help :)
http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide
Thanks,
Deng
On Thu, May 22, 2008 at 10:46 PM, Andreas Guther
[EMAIL PROTECTED] wrote:
Hi,
Is there a list of available variables and expressions one can insert
into a pom file?
In particular I
54 matches
Mail list logo