I do what I can to test and provide useful feedback, but I'm generally using
Maven in the context of my own open source project (Tapestry) and so it is
difficult for me to stray beyond full releases to snapshots for more than a
quick check. I don't want to check in anything that depends on a
Hi,
I'm trying to get a handle on Maven2 (Been using Ant
for a while, and this seems to be the next logical step).
However, I've stumpled upon some problems. I have two
projects (Project A and B). Project A is dependent on
project B. (I'm using Eclipse IDE with Maven plugin).
I know how to
Robert,
Glad to see that you're giving Maven a try.
Maven modules always depends on compiled artifacts that are installed in
your repository, not directly on the source of other modules.
This is good practice because now you are certain that you depend on
pre-built, pre-tested artifacts, rather
Hi
Can some one plz guide me how can I make maven to include dependencies
defined in pom.xml in output jar file???
Regards,
Ali
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks for the reply.
As a matter of fact packaging is not really my problem. Assembly plug-in would
definitely do that work.
What I am trying to do is to create an offline environment where a user could
compile a maven project without having to search for artifacts on either
internet or
This has been asked and answered at least a hundred times on this mailing
list.
The maven-assembly-plugin can do this for you.
http://maven.apache.org/plugins/maven-assembly-plugin/usage.html
It comes down to adding this to your POM's build plugins definition:
plugin
Two ways :
Maven Plugin for Eclipse
Use the maven plugin for eclipse
(http://maven.apache.org/plugins/maven-eclipse-plugin/index.html), i.e.
mvn eclipse:eclipse. This will generate (modify if already existing) a
.project and a .classpath file for your eclipse project or if you have a
Dário Luís Coneglian Oliveros ha scritto:
Thanks for the reply.
As a matter of fact packaging is not really my problem. Assembly plug-in
would definitely do that work.
What I am trying to do is to create an offline environment where a user could
compile a maven project without having to
I tried including the following in my POM file.
build
plugins
[...]
!-- Checkstyle plugin --
!-- cf.
http://maven.apache.org/plugins/maven-checkstyle-plugin/howto.html --
plugin
Hi all,
I have a project that needs to compile three things:
- Some java
- JNI / javah on the compiled java
- Build some C code using ant
Ideally all three of these configs need to be in the compile phase, but if
I do that, only the JNI build, or the C build will run - not both.
I tried
Ha Dario,
Proximity is able to work in offline mode, and offer only it's cache
content. So:
0. prepare remote repo content for proximity (collect artifacts you
need for your build)
1. place proximity into offline mode and give it the prepared remote
repo content
2. fire it up locally
3.
Hi Tamás,
That would definitely be an option. But still you have to ask a final user to
fire up the proximity server in order to build a simple project, unless
proximixity does not need to be up and running.
Basically I'd expect to have something similiar with ant where you could
package an
Hi,
I'm trying to have mvn eclipse:eclipse -Dwtpversion=1.5 (m2.0.6)
generate an Eclipse 3.2.2 ear project where for instance the
application.xml and manifest.mf is generated on the right spot
(/META-INF/*). I only get them generated in the target directory. I've
been searching and trying but I
For me this seems to an issue with the scm plugin. Owen I would assume that
by using a previous version of the release plugin it would in turn depend on
an earlier scm plugin version.
Version 1.0 of the SCM plugin breaks w/ the locale error stated in this
thread; 1.0rc1 works just fine for me.
Is this the JIRA issue from this thread?
http://jira.codehaus.org/browse/SCM-320
1st time userlong time admirrer.
I created a mulitilevel project (parent project with 2 child projects). I
keep getting the following errrs no matter what I execute:
mvn install
mvn clean install
This project doesn't exist in any of our repositories. Like I said this is
very new to me, a
Yes
Michael Robinson a écrit :
Is this the JIRA issue from this thread?
http://jira.codehaus.org/browse/SCM-320
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
What does your directory structure and pom files look like?
Maybe that will tell us something.
With regards,
Nick Stolwijk
Greg Davidson wrote:
1st time userlong time admirrer.
I created a mulitilevel project (parent project with 2 child
projects). I
keep getting the following errrs
Hi there,
I have a big multi-module project where I have also added a module which
is for three assemblies only
project ...
parent.../parent
modelVersion4.0.0/modelVersion
artifactIdassemblies/artifactId
packagingpom/packaging
nameAssemblies/name
...
plugin
Thanks for the quick reply:
Here is my directory structure for the project:
Parent project:
E:\Dev\hostAirlineSystem
Child projects:
E:\Dev\hostAirlineSystem\hostAirlneSystemEJB
E:\Dev\hostAirlineSystem\hostAirlneSystemWEB
Is that what you were asking
This is a new project with nothing
Hi,
proximity holds it's cache in UNMODIFIED M2 remote repository format. So,
you can use proximity to grab remote reposes with needed artifacts and
metadatas (as I described before) and M2 can use it's cache directly.
Simply redirect M2 to use local FS with proximity cache content as remote
Oh, here [1] is multimodule explained, so perhaps you can have a look there.
Hth,
Nick Stolwijk
[1] http://www.sonatype.com/book/pom-relationships.html
Greg Davidson wrote:
Thanks for the quick reply:
Here is my directory structure for the project:
Parent project:
E:\Dev\hostAirlineSystem
Parent pom:
project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;
parent
groupIdmycompany.standards/groupId
Have a good look at your parent version and what the modules declare as
their parent. As long as you haven't released 1.0.0 your modules should
also rely on the version you just have installed. Shortly, mvn install
first installs your parent project to your local repository (which is
only a
Thanks
So it sounds like what you are sayingmy child pom ( parent version
number ) is not matching the version number in the parent pom. I'll have a
look at that.
On 5/30/07, Nick Stolwijk [EMAIL PROTECTED] wrote:
Have a good look at your parent version and what the modules declare
Hi,
Can you paste your pom.xml here?
If you define 2 (different) plugins in the same phase, they should be executed
sequentially (at least with maven 2.0.6).
The only reason i can think of that only one of them executes is that you
declared the
same plugin twice, where the latter will
Hi guys, im trying trying to acess the path src/main/webapp inside plugin,
idk something like:
${project.source.webapp}
Where can i find the expression paths?!
And i want to know if user can use the expression to tell plugin the new
path, like:
plugin
configuration
Hello all,
Maven complains when a pom has children with identical
groupId:artifactId with the following message:
INFO] Project 'com.xyzis duplicated in the reactor.
Can somebody tell me is there any solutin for this??
Thanks,
Kiran kodlady
--
View this message in context:
On 5/30/07, Kiran Kodlady [EMAIL PROTECTED] wrote:
Maven complains when a pom has children with identical
groupId:artifactId with the following message:
INFO] Project 'com.xyzis duplicated in the reactor.
Can somebody tell me is there any solutin for this??
What exactly seems confusing to
groupId + artifactId + versionId uniquely identifies artifacts in
Maven. Therefore multiple children with the same groupId and
artifactId in a given project is invalid.
Change the artifactId of one of the offending children. There is no
other solution or workaround.
Wayne
On 5/30/07, Kiran
Wayne Fay ha scritto:
groupId + artifactId + versionId uniquely identifies artifacts in
Maven. Therefore multiple children with the same groupId and
artifactId in a given project is invalid.
Change the artifactId of one of the offending children. There is no
other solution or workaround.
Hello,
how to configure Maven that scm:update will work with HTTPS using SVN ?
I get following Error:
Embedded error : Can't load the scm provider.
No such provider 'HTTPS' ...
If it is not possible what to do ?
My Current Projekt already using Maven
Regards,
Jens
I've been getting checksum failed messages on
http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom
and
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-ejb-plugin/maven-metadata.xml.
I tried both repo1.maven.org and ibiblio and consistently got the same
bad
Hi,
Unfortunately there's no pom element that describes the webapp source path,
so there's no expression for it.. the war plugin uses src/main/webapp
as a default. If you have other plugins that use that directory you have to
configure them; unless ofcourse the plugins have a default to
your scm url is wrong. use:
scm:svn:https://.
-- Kenney
Jens Hohl wrote:
Hello,
how to configure Maven that scm:update will work with HTTPS using SVN ?
I get following Error:
Embedded error : Can't load the scm provider.
No such provider 'HTTPS' ...
If it is not possible
Thx ..
Ok, next i get some problem when update on a project that seems to be locked.
Means that I have to unlock everything before ?
This means that every lock will cause an build to fail ?
- jens
-Ursprüngliche Nachricht-
Von: Kenney Westerhof [mailto:[EMAIL PROTECTED]
Gesendet:
Hi All...
I working on something at my project, and I am using the scm cvs plugin. It
works fine but for one thing, I provide the password into the configuration
section, but while running the build the ssh prompts me to enter the
password. I tried a lot of things even to redirect the input to
I have never needed to create a project like this, so I've never run
into this specific problem myself nor have I dug through the Maven
source code to find out what the absolute restrictions are.
In general, you should avoid naming artifacts with the same groupId
and artifactId. That's it.
If
Hi,
I suggest you clean out your local repo of these artifacts that you're
getting the checksum errors including the metadata files and the
checksum files, then try your build again. That usually solves it :-)
- Deng
[EMAIL PROTECTED] wrote:
I've been getting checksum failed messages on
Thanks a lot Jo, and sorry for my question, I didn't know that it has
been asked before. Also sorry for future questions if they are not
good questions.
What I exactly wanted was to be able to include unpacked jar files in
lib dir (I needed it to create OSGi bundle.) Googling around I have
If these artifacts are already in the main remote repository you didn't even
need to touch jar/pom files relating to those artifacts. You're
misunderstanding something.
.m2\repository\javax.activation and .m2\repository\javax.mail directories
should be removed if you made them by hand.
However
You must use a ssh agent or a private/public ssh key
Emmanuel
Mohammad Nour El-Din a écrit :
Hi All...
I working on something at my project, and I am using the scm cvs plugin.
It works fine but for one thing, I provide the password into the
configuration section, but while running the build
Hi Emmanuel...
But this totally an ssh matter, right ?
On 5/30/07, Emmanuel Venisse [EMAIL PROTECTED] wrote:
You must use a ssh agent or a private/public ssh key
Emmanuel
Mohammad Nour El-Din a écrit :
Hi All...
I working on something at my project, and I am using the scm cvs plugin.
It
yes
Mohammad Nour El-Din a écrit :
Hi Emmanuel...
But this totally an ssh matter, right ?
On 5/30/07, *Emmanuel Venisse* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
You must use a ssh agent or a private/public ssh key
Emmanuel
Mohammad Nour El-Din a écrit :
Hi
On 5/30/07, Ali Sakebi [EMAIL PROTECTED] wrote:
Thanks a lot Jo, and sorry for my question, I didn't know that it has
been asked before. Also sorry for future questions if they are not
good questions.
What I exactly wanted was to be able to include unpacked jar files in
lib dir (I needed it to
One more question, why the password configuration parameter is not passed to
the cvs command ?
On 5/30/07, Emmanuel Venisse [EMAIL PROTECTED] wrote:
yes
Mohammad Nour El-Din a écrit :
Hi Emmanuel...
But this totally an ssh matter, right ?
On 5/30/07, *Emmanuel Venisse* [EMAIL PROTECTED]
as I said, .m2\repository\javax exists or not will make no effect on
the mvn install.
1. if no such directory, mvn install dailed.
2. install those directory by hand, mvn install still failed.
3. install those directory using mvn install:install-file , still
no luck.
the error messages are
Hi Damon,
First thing. If the 3rd party jars are not available in repositories, there
is no other solution than installing them in your repository manually and
generate/create a POM for them. Nothing to do about that.
You don't install a 3rd party jar by creating a new maven project for them
and
Put the jars in your local repository - system scope should be avoided.
In your parent pom.xml:
project
groupIdcom.xyz/groupId
artifactIdabc-parent/artifactId
...
!-- modules will inherit dependency settings like version and scope --
dependencyManagement
dependencies
dependency
On 5/30/07, Robert Dale [EMAIL PROTECTED] wrote:
Put the jars in your local repository - system scope should be avoided.
Indeed, avoid system scope. It makes your builds irreproducible.
Cheers
Jo
When you use cvs over ssh (with ext protocol), cvs doesn't have a password,
it's the ssh connection that require an authentication and we don't have the
hand on it.
Emmanuel
Mohammad Nour El-Din a écrit :
One more question, why the password configuration parameter is not
passed to the cvs
tkz, ill try that :)
On 5/30/07, Kenney Westerhof [EMAIL PROTECTED] wrote:
Hi,
Unfortunately there's no pom element that describes the webapp source
path,
so there's no expression for it.. the war plugin uses src/main/webapp
as a default. If you have other plugins that use that directory you
Hi,
I've spent all afternoon working on this but am stuck.. I am building
several wars that all depend on the same set of 3rd party jar files. I
could write a batch file to install the jars to my local repos and
then copy and paste the list of dependencies into each war. But what I
really want
Hi guys, im making a plugin to run tomcat embedded to test my apps.
Ive use cargo for 2 days, but the 'embedded scene' is not 100% working.
I already use simple tomcat embedded server and works fine, but i need
declare in my project pom all dependencies. With plugin configured in my
profile, i
On 5/30/07, Stefano Bagnara [EMAIL PROTECTED] wrote:
This is not coherent.
You say groupId + artifactId + versionId uniquely identify an artifact.
So I should be able to manage multiple versions of the same artifact in
a single reactor build.
What you say should only apply to 2 modules
An normal SVN update works fine on my Build Maschine ..
What to do with that message ?
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: error: cannot set LC_ALL locale
svn: error: environment variable LANG is not set
svn: error: please
See JIRA:
http://jira.codehaus.org/browse/SCM-320
and a previous message on this list from just a couple of days ago (sorry
couldn't figure out how to link to the mail archives).
On 5/30/07, Jens Hohl [EMAIL PROTECTED] wrote:
An normal SVN update works fine on my Build Maschine ..
What to
Hi Tamás,
Thanks for the info. That's most likely the best solution so far. I think I'll
go with this one.
Regards,
Dário
-Original Message-
From: Tamás Cservenák [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 30 de maio de 2007 10:38
To: Maven Users List
Subject: Re: [m2] best way to
Ok,
the solution is to set the version of the SCM plugin, right?
How can I do that in my POM ?
SCM for worked out of the box for me ...
Thx,
Jens
-Ursprüngliche Nachricht-
Von: Michael Robinson [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 30. Mai 2007 20:36
An: Maven Users List
build
[...]
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.0-rc1/version
configuration
goalsinstall/goals
/configuration
/plugin
Thanks,
Jens
-Ursprüngliche Nachricht-
Von: Michael Robinson [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 30. Mai 2007 21:02
An: Maven Users List
Betreff: Re: svn: error: cannot set LC_ALL locale
build
[...]
plugins
plugin
You can set LC_ALL too:
export LC_ALL=en_US
Emmanuel
Michael Robinson a écrit :
build
[...]
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.0-rc1/version
Using RC 1 works so far...
Actually I wait for next build :)
Greets,
Jens
-Ursprüngliche Nachricht-
Von: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 30. Mai 2007 21:26
An: Maven Users List
Betreff: Re: svn: error: cannot set LC_ALL locale
You can set LC_ALL too:
All tomcat dependencies declared in my plugin pom:
!-- Tomcat Dependencies --
dependency
groupIdtomcat/groupId
artifactIdcatalina/artifactId
version5.5.15/version
scopecompile/scope
/dependency
dependency
I need to add dependencies in my pom.xml for several packages, but I'm not
sure of what group and artifact ID to use for these. How can you determine
what IDs to use within a dependency element for a package -- is there a
directory available for this?
For example I know I need a dependency for
Hi,
Have you seen this plugin?
http://mojo.codehaus.org/tomcat-maven-plugin/introduction.html
On 5/30/07, CasMeiron [EMAIL PROTECTED] wrote:
All tomcat dependencies declared in my plugin pom:
!-- Tomcat Dependencies --
dependency
groupIdtomcat/groupId
This may be helpful: www.mvnrepository.com
Maven expects that you know something about the dependencies you
require. In the case of javax.xml.ws.Provider, you need to know that
you are looking for JAXWS. Search for JAXWS on that site and you'll
find several hits -- in all likelihood, one of
Is anyone having issues connecting to ibiblio lately?
Thanks,
David
Hi,
as I said, .m2\repository\javax exists or not will make no effect on
the mvn install.
1. if no such directory, mvn install dailed.
2. install those directory by hand, mvn install still failed.
3. install those directory using mvn install:install-file , still
no luck.
Can you try to
This is exactly what I was looking for, thanks so much for your help!
--James
Wayne Fay wrote:
This may be helpful: www.mvnrepository.com
Maven expects that you know something about the dependencies you
require. In the case of javax.xml.ws.Provider, you need to know that
you are
I'm testing a new version of Castor in our multiproject build that uses
Maven 1.0.2, and for one subproject, the javac runs out of memory. How
do I pass a -Xmx option to the javac run from maven 1.0.2? I only want
to do this for a single subproject at this point.
I downloaded and unzipped Maven-2.0.6 and tried to run the example from the
quickstart doc online. I ran the following:
Ø mvn archetype:create DgroupId=com.mycompany.com DartifactId=my-app
DarchetypeArtifactId=maven-archetype-archetype
I get the following:
The plugin
On 5/30/07, Mike Smithson [EMAIL PROTECTED] wrote:
I downloaded and unzipped Maven-2.0.6 and tried to run the example from the
quickstart doc online. I ran the following:
Ø mvn archetype:create –DgroupId=com.mycompany.com –DartifactId=my-app
–DarchetypeArtifactId=maven-archetype-archetype
I
Hi,
I want to get a report, which show all of modifications of my project from
SVN every day.
Does Maven (or its plugins) could provide the feature?
Thanks in advance!
a cup of Java, cheers!
Sha Jiang
--
View this message in context:
You don't mention if you tried the java plugin properties or not, so I'll
mention them first. Do these properties work for 1.0.2?
maven.compile.fork
maven.compile.memoryInitialSize
maven.compile.memoryMaximumSize
Read about them here:
Ok, thanks Peter and Jo for your responses they were
very helpful.
Kind Regards,
Robert
Den 2007-05-30 13:31:01 skrev Hayes, Peter [EMAIL PROTECTED]:
Two ways :
Maven Plugin for Eclipse
Use the maven plugin for eclipse
(http://maven.apache.org/plugins/maven-eclipse-plugin/index.html),
jiangshachina wrote:
Hi,
I want to get a report, which show all of modifications of my project from
SVN every day.
Does Maven (or its plugins) could provide the feature?
Thanks in advance!
a cup of Java, cheers!
Sha Jiang
The Changelog plugin will generate a report on SCM changes:
77 matches
Mail list logo