Hi folks!,
I m doing a project that uses SWT for gui. How do i add
the dependent jars to maven? Any help will be appeciated.
Thanks in advance
--
View this message in context:
http://www.nabble.com/How-to-add-a-dependency---newbie-to-maven-tp14729321s177p14729321.html
Sent fr
On 09/01/2008, simon <[EMAIL PROTECTED]> wrote:
>
> On Wed, 2008-01-09 at 14:23 +0100, Guillaume Lederrey wrote:
> > Thanks a lot for all the feedback !
> >
> > I am still not completely convinced ... see below.
> >
> > On 09/01/2008, Beelen, M. - SPLXL <[EMAIL PROTECTED]> wrote:
> > > Ïn my opitio
On Jan 10, 2008 7:57 AM, amit kumar <[EMAIL PROTECTED]> wrote:
> I am packaging an EAR with a SAR in it. How do exploded EAR with an exploded
> SAR.
> The ear plugin by default is creating an exploded EAR but SAR within that is
> still packaged.
>
> Any ideas?
yes. take a look at the profile below.
I am packaging an EAR with a SAR in it. How do exploded EAR with an exploded
SAR.
The ear plugin by default is creating an exploded EAR but SAR within that is
still packaged.
Any ideas?
Regards,
Amit
On Jan 7, 2008 5:48 PM, amit kumar <[EMAIL PROTECTED]> wrote:
> Thanks a ton stuart. Its w
Thanks Olivier/wayne, you are right. 1.0.4 was the left over.
Regards,
Amit
On Jan 10, 2008 8:02 AM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> Have you run mvn clean lately? It might be leftover from a previous
> build, as suggested by Olivier.
>
> Wayne
>
> On 1/9/08, Olivier Dehon <[EMAIL PROTECT
I followed this
http://maven.apache.org/plugins/maven-compiler-plugin/examples/pass-compiler-arguments.html
but it seems that it is being ignored/eaten.
What I want is to include the "src/main/webapp/WEB-INF/lib" to the compiler
classpath as there are libraries not managed in maven.
I believe
The Mojo team are pleased to announce the the first beta release of
the JasperReports Maven plugin
The site is at:
http://mojo.codehaus.org/jasperreports-maven-plugin
Enjoy!
-Dan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
Just add a plugin configuration for the maven-compiler-plugin to your project
pom. The example below shows such a configuration. Sorry its not nicely
color coded.
4.0.0
bla.examples
bla
Bla
1.1
src/main
src/test
Have you run mvn clean lately? It might be leftover from a previous
build, as suggested by Olivier.
Wayne
On 1/9/08, Olivier Dehon <[EMAIL PROTECTED]> wrote:
>
> On Wed, 2008-01-09 at 11:26 +0530, amit kumar wrote:
> > Hi,
> > I am building a WAR package, and every time I see
> > commons-logging-
Hi,
Any idea when this issue will be fixed or anyone have any workaround for
this ?
http://jira.codehaus.org/browse/MANTRUN-75
the below
does not work from the example at
http://maven.apache.org/plugins/maven-an
hello guys,
a little problem with maven and JUnit test.
i use JUnit 4.1 and a jdk 1.6.0_03 under linux (ubuntu)
my JAVA_HOME is correctly set and MAVEN_HOME too !
i wrote test classes with static import, annotations and generics.
when i run maven in a terminal
mvn test-compile
i've got the fo
On Wed, 2008-01-09 at 11:26 +0530, amit kumar wrote:
> Hi,
> I am building a WAR package, and every time I see
> commons-logging-1.0.4being put in the WEB-INF\lib folder. Although
> this is not described in my
> pom.xml(I have commons-logging-1.1 as my dependency in the pom.xml) Still I
> am getti
Because the default repository "central" is always a repository. This
one can only be overridden by a mirror section in your settings.xml.
Hth,
Nick Stolwijk
Brewster, Richard wrote:
We have set up Artifactory at our company and the only references in
refer to Artifactory. Yet Maven seems t
On Jan 9, 2008 3:58 PM, Brewster, Richard <[EMAIL PROTECTED]> wrote:
> We have set up Artifactory at our company and the only references in
> refer to Artifactory. Yet Maven seems to go around
> Artificatory for some artifacts. When building up a clean, empty local
> repository, some artifacts a
Have you checked mvn help:effective-pom and help:effective-settings?
http://maven.apache.org/plugins/maven-help-plugin/usage.html
Wayne
On 1/9/08, Brewster, Richard <[EMAIL PROTECTED]> wrote:
> We have set up Artifactory at our company and the only references in
> refer to Artifactory. Yet Mave
We have set up Artifactory at our company and the only references in
refer to Artifactory. Yet Maven seems to go around
Artificatory for some artifacts. When building up a clean, empty local
repository, some artifacts are found that are not cached in Artifactory.
How can this be happening? Some
For some reason the over constrained exception is hidden try mvn
dependency:resolve -X
and look for the OverConstrainedException which means you have two non
overlapping ranges for the same artifact in the resolution tree
On Thu, 10 Jan 2008 08:14:05 Chris Andersen wrote:
> New user to maven. L
Hello. Could someone please tell me if there are any multimodule site
reporting plugs which produce multimodule reports? I have tried many
plugins like javaNCSS but all the resulting sites return all 0's.
This message (including any attachments) contains confidential information
intended for
I do not see anything to do with repositories in the /home/dapadmin/apache-
tomcat-5.5.25/conf/Catalina/localhost/archiva.xml
Only DB and war information.
On Jan 9, 2008 12:28 PM, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On Jan 9, 2008 12:30 PM, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > I do
The "problem" email header is this one:
In-Reply-To: <19a9f6be0801080130k142ce7f6l1f235113191d03bf>
When you reply to an email, your email client (or yahoo.de website)
inserts that header into the new email. Even when you change the
subject and delete the old email content, that header is stil
I am trying to crate a project mirror where my team only accesses our
repository. But I am now having issues getting "
http://snapshots.repository.codehaus.org/"; resources like dashboard-plugin.
Here is my proxy connector setting:
Proxy Connector
Codehaus-Maven-Snapshot
Codehaus-Maven-Snapshot
Can you please refrain from replying to an old message when you have a
completely new question. This is most annoying for people using a
mail-client that can show mail threads. If you have a new question just
send a completely new message to users@maven.apache.org
Thank you.
Thomas Chang wrot
Hello,
I would like to automate more my releasing process. How can I feed
release:prepare goal with the needed values ?
I know "--batch-mode" but it uses the default inputs for the versions
and tag information.
Is it using the -Darguments="version_tag new_version" ?
Thanks,
Julien
--
Julien
Just an FYI: I couldn't seem to find any path from
http://maven.apache.org/archiva to that page, so that me be the source of
the confusion.
On Jan 9, 2008 2:28 PM, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On Jan 9, 2008 12:30 PM, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > I do not want to have t
I'm facing a similar issue in a couple Maven projects where I'm creating a a
distribution package (e.g. tar.gz) or an installer (e.g rpm, Windows
installer) for a binary (jar, exe). I have a separate module for the
packager that has a dependency to the binary, and a parent pom for these.
Say, for e
I'm trying to use the release plug-in on a very simple multi-module
project but the plug-in seems to be having problems adding/removing the
release-pom.xml file for parent to CVS.
My project structure looks like this (minus the source files)...
sample/
pom.xml
sample-shared/
You are right. :-)
Wayne Fay <[EMAIL PROTECTED]> schrieb: Show us the command line you typed. It
seems you might have mistyped something.
Wayne
On 1/9/08, Thomas Chang wrote:
> Hi all,
>
> I try to create a project according to the "Maven in 5 Minutes" under
> http://maven.apache.org/guides
On Jan 9, 2008 12:30 PM, Mick Knutson <[EMAIL PROTECTED]> wrote:
> I do not want to have to delete, and re-create the REPO just to change the
> name from 'internal' to something more descriptive like 'myproject.internal'.
> How can I do this as when I edit the repo I did not see this option.
Pleas
You can choose whatever groupId and artifactId you wish for your own
project pom.xml file.
Having said that, your file structure does not match Maven's required
structure, so you will either need to customize the pom.xml or adjust
your project layout (my suggestion).
Maven likes projects to look
Show us the command line you typed. It seems you might have mistyped something.
Wayne
On 1/9/08, Thomas Chang <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I try to create a project according to the "Maven in 5 Minutes" under
> http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
Hello,
I'm trying to use the release plugin to release a project with several
modules. I managed to get it working that the versions of the parent project
and the modules is being updated. I'm dealing with the issue that only the
parent project is being uploaded to my SCM. Is it possible to upload
This should help you out
http://docs.codehaus.org/display/MAVENUSER/Archiva+on+Tomcat
rgds,
ste
Zemian Deng-2 wrote:
>
> Hi, when I deploy archiva.war file, I get these two error telling that I
> must have /logs created. Where can I specify to different location?
>
> java.io.FileNotFoundExc
Sorry email test
Hi all,
I try to create a project according to the "Maven in 5 Minutes" under
http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html.
The mirror in my "setting.xml" is the remote repository in the server machine.
I got error as follow. But when I run using the central mirror,
Hello,
My java project directory structure is as follows
Test2
Service
Src
Com
Ek3
Test
Addition.java
Could anyone please tell m
Hello,
I am a new user of maven.
could you please let me know what will be groupid and artifactid if I want
to write pom.xml to create war file.
My java project directory structure is as following
test2
service
src
com
> Steinar Bang <[EMAIL PROTECTED]>:
> So... if I move it to eg. generate-sources, I may get rid of the
> problem? I'll try, and post back the results.
Moving the dependency:copy config from generate-sources to
generate-resources, and doing the antrun:run patch in process-resources
did the tr
I do not want to have to delete, and re-create the REPO just to change the
name from 'internal' to something more descriptive like 'myproject.internal'.
How can I do this as when I edit the repo I did not see this option.
--
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.
New user to maven. Loving it so far. But I've encountered a real hair
puller.
I have a controller project that uses maven to manage its dependencies.
One of its dependencies is on a library (dba.library) that is also built
using maven. The library has two release branches (current versions are
On Wed, 2008-01-09 at 14:23 +0100, Guillaume Lederrey wrote:
> Thanks a lot for all the feedback !
>
> I am still not completely convinced ... see below.
>
> On 09/01/2008, Beelen, M. - SPLXL <[EMAIL PROTECTED]> wrote:
> > Ïn my opition the cycle you mention where the snake bites it's tail" can
First an update: removing this from both the SuperPOM and the
Project parent POM, caused my forked lifecycle message to go away.
I tried doing like this page does
http://maven.apache.org/plugins/maven-source-plugin/usage.html
ie. changing the original
org.apache.maven.plugins
m
Hi,
I've troubles in assembling an artifact that uses two jars with a
META-INF/services/foo. There is a way to merge these files into a single
file?
Thanks in advance.
--
Best Regards,
-- Davide Angelocola
-
To unsubscribe,
On Wed, 2008-01-09 at 11:35 +0100, François Xavier Gendrin wrote:
> Hi,
>
> I updated some plugin and crash, an error. Error says to specify:
> '-Dproject.reporting.outputDirectory=VALUE', but I prefer to use pom
> configuration file, but I didn't find how to configure it with pom file ...
> S
Try to use the reportSets configuration found in this example:
http://maven.apache.org/plugins/maven-changes-plugin/examples/alternate-changes-xml-location.html
That should make the plugin create *only* the changes-report.
Karl Heinz Marbaise wrote:
Hello,
i'm using maven with the maven-chang
If you post your pom configuration for maven-clean-plugin, we might be
able to help you. Better yet, include the whole element from
your pom.
François Xavier Gendrin wrote:
Hi,
I updated some plugin and crash, an error. Error says to specify:
'-Dproject.reporting.outputDirectory=VALUE', but
setting archiva as a mirror for any repository you don't need to declare
anything as repository/pluginReposiotry (until you use snapshots).
Can you manually request archiva for maven-compiler-plugin and its metadatas
?
2008/1/9, Mick Knutson <[EMAIL PROTECTED]>:
>
> I have set up Archiva as my p
Hello,
i'm using maven with the maven-changes plugin to create a changes
report...so far so good
Here is my configuration for the plugin:
org.apache.maven.plugins
maven-changes-plugin
%URL%/ticket/%ISSUE%
${basedir}/changes.xml
During the site generation i g
According to the site:
http://maven.apache.org/plugins/maven-source-plugin/jar-mojo.html
source:jar
This plugin bundles all the sources into a jar archive.
Mojo Attributes:
* Requires a Maven 2.0 project to execute.
* Since version: 2.0
* Automatically executes within the lifecycle
> "Brian E. Fox" <[EMAIL PROTECTED]>:
> Any plugin that declares @execute [phase] will cause the build to
> fork. The dependency plugin does not, but one of your other plugins
> must. I know that javadoc did, assembly does (depending on which
> goal), enforcer:enforce-once does. Take a look a
I have set up Archiva as my project mirror. I want my team to ONLY use my
mirror. Do I have to declare EVERYTHING in my pom now?
*Here are my settings:*
dap.internal
http://rc-sun66e.ut.dentegra.lab:8080/archiva/repository/internal/
*
*
Hi Rahul,
Did you ever figure this out?
- Doug
Rahul Thakur wrote:
>
> Hi,
>
> I am attempting to release a multi-module project which is set up
> something like this in an SVN repo:
>
> Parent (pom-only)
> |
> | _ _Core (linked via svn:externals to a different SVN location)
> |
> |_ _ W
Hi,
You mean when adding a project in the Build Definition list box ?
If yes it's the default build definition for the project type (maven1,
maven2, ant).
If you are adding a m2 project : Default == default maven2 template.
Sure it's a little verbose here because we repeat the same things.
--
Oli
Hi,
On a continuum site, what does the "default" setting mean for a project?
Thanks, Simon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Any plugin that declares @execute [phase] will cause the build to fork.
The dependency plugin does not, but one of your other plugins must. I
know that javadoc did, assembly does (depending on which goal),
enforcer:enforce-once does. Take a look at the various plugins you have
bound and see which o
François Xavier Gendrin a écrit :
Matthew Tordoff a écrit :
> Hi Francois,
>
> To retrieve any files you first of all need to install them into the
Maven repository in some way, and to install them into the Maven
repository so they are accessible by other modules which can then
retrieve them.
The code of the release plugin is:
/**
* Whether to allow timestamped SNAPSHOT dependencies. Default is to fail
when finding any SNAPSHOT.
*
* @parameter expression="${ignoreSnapshots}" default-value="false"
*/
private boolean allowTimestampedSnapshots;
So I don't th
Sorry, I made a stupid typo on command line.
2008/1/9, nicolas de loof <[EMAIL PROTECTED]>:
>
> I'm trying the release plugin 2.0-beta-8-SNAPSHOT with
> -DignoreSnapshots=true, but still can't release when my project has
> dependencies on snapshots.
>
> Is this really supported ?
>
I'm trying the release plugin 2.0-beta-8-SNAPSHOT with
-DignoreSnapshots=true, but still can't release when my project has
dependencies on snapshots.
Is this really supported ?
In your plugin you have to start working with the maven api. To get the compile
time dependencies as class path elements (like the compiler plugin) you would
use project.getCompileClasspathElements(). To get the test compile as class
path elements it would be project.getTestClasspathElements().
I have used 2.0.2 and even 2.1-alpha-1. CVS files don't get excluded
unless until i use webResources additionally to again point to the
webroot directory and then excluding it.
what works fine for me is
${basedir)/webRoot
${basedir)/webRoot
**/CVS
**/*.b
you don't need to exclude CVS files unless you're running the very old
v2.0. Use v2.0.2
Stéphane
On Jan 9, 2008 12:23 PM, amit kumar <[EMAIL PROTECTED]> wrote:
> Hi,
> when I use for my webroot directory the exclusion of
> files doesn't work( I want to exclude CVS files. But it works fine
> with
Hi Nick,
I have switched to your approach and do as follows:
Module 1: build first java package
Module 2: translate SQLJ and build second java package (with module 1
listed as a dependency within the pom)
However, whatever I seem to do, my SQLJ plugin doesn't seem to be able
to find the module1.
Platform: maven-2.0.8, maven-dependency-plugin 2.0-alpha-4,
maven-antrun-plugin 1.1, maven-jar-plugin 2.1
Why does maven lifecycles fork? Ie. what makes them fork?
I have a setup where I use dependency:copy to pull in some files from
the maven repository, and put them under target/clas
Thanks a lot for all the feedback !
I am still not completely convinced ... see below.
On 09/01/2008, Beelen, M. - SPLXL <[EMAIL PROTECTED]> wrote:
> Ïn my opition the cycle you mention where the snake bites it's tail" can only
> be a real problem is you actually do have circular dependencies, w
Hi,
I've installed the Archiba both in office and at home. When I run at home,
everything is OK. When I do the same in office, I still have problem by
downloading the
"http://sap-dev:8080/archiva/repository/internal/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0
Hi,
First of all I agree with Nick and the path you have chosen already.
So using your framework isn't a problem anymore.
Ïn my opition the cycle you mention where the snake bites it's tail" can only
be a real problem is you actually do have circular dependencies, which often
isn't the case.
I
As an afterthought, I would still recommend two modules:
module 1: compile and process-classes (which is a phase, to bind your sqlj
plugin to)
module 2: dependency on module 1 and compile
This is much easier to understand for other developers and inline with the
maven thought.
Hth,
Nick Stolw
Hi,
I've installed the Archiba both in office and at home. When I run at home,
everything is OK. When I do the same in office, I still have problem by
downloading the
"http://sap-dev:8080/archiva/repository/internal/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0
The target/classes directory is in the classpath (check with mvn -X clean
compile). Did you generate classes or java files? If you generated classes they
should be in target/classes, if you generated java files, you'll need the
maven-build-helper-plugin [1].
Hth,
Nick Stolwijk
[1] http://mojo
Hi,
I´m using the "maven-depgraph-plugin" to generate dependency-visualization
graphics, which I want to include in the generated website.
This plugin has 2 goals and I need a different configuration for each goal
1) for "depgraph" goal no groupFilter is necessary, I want to see all the
depend
Hi Nick,
Thanks for your response. I actually decided to follow your second
option of configuring a second execution of the compiler plugin. The
only problem is that when the build gets to the main compilation it
doesn't appear to have the target folder on the classpath and thus can't
find the cod
Hi,
when I use for my webroot directory the exclusion of
files doesn't work( I want to exclude CVS files. But it works fine
with tag. What is the work around for
or some other tag available?
regards,
Amit
On 1/5/08, Stephane Nicoll <[EMAIL PROTECTED]> wrote:
> webappDirectory is for the main
Dennis Lundberg wrote:
There is a JIRA project for reporting repository errors:
http://jira.codehaus.org/browse/MEV
Wherein this is already reported:
http://jira.codehaus.org/browse/MEV-530
Any chance it could be fixed?
(And if someone's doing that one, maven-2.0.7.pom, MEV-536 too)
Thanks,
On 09/01/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I have to investigate the migration to Maven in our organisation. We
> > have a pretty large software base : about 100 projects each generating
> > 3 to 6 artifacts. A part of these modules are a framework used by most
> > other projec
Hi,
I updated some plugin and crash, an error. Error says to specify:
'-Dproject.reporting.outputDirectory=VALUE', but I prefer to use pom
configuration file, but I didn't find how to configure it with pom file ...
Some one could help ?
[INFO]
> I have to investigate the migration to Maven in our organisation. We
> have a pretty large software base : about 100 projects each generating
> 3 to 6 artifacts. A part of these modules are a framework used by most
> other projects.
On this basis I would start with three parent poms.
- On for th
> I am looking at building the initial java code in a separate module,
> then importing it and unpacking it as a dependency and then continuing
> with the build as previously designed, packing everything up in a single
> JAR at the end.
I would go for this way. Even not unpacking the dependency, b
I'm trying to go down the path of option #1 below :
* a super pom which define all dependencies, we can leave it in
SNAPSHOT state for the dev cycle
* all libraries reference this parent pom. The libraries can go
through a couple of version increments during the dev cycle.
Now I have a problem at
Hi all,
I have the need to impose a specific ordering of compilation of some
source code I have. I need to achieve the following:
1 - compile some Java
2 - translate SQLJ (dependent on above compilation)
3 - compile some further Java (dependent on translated SQLJ)
To translate the SQLJ I have
I know that a plugin can fork a maven execution if it needs to... can't
remember how
On Jan 9, 2008 9:34 AM, nicolas de loof <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I need some custom packaging that requires to post-process the
> tar.gzgenerated by the assembly plugin.
>
> How can I force the exe
Hello,
I need some custom packaging that requires to post-process the
tar.gzgenerated by the assembly plugin.
How can I force the execution of the assembly plugin from another plugin ?
The @execute goal="" only applies on goals from the same plugin, and
assembly is not attached to a phase.
Nico.
Hello Angelo,
To find the proper dependency information for certain libraries you can
use: http://mvnrepository.com/
If you want to use libraries, which are not available in public
libraries, you need to install those jars in to your local repository,
so that you can declare them as normal depend
A little more info.
I forgot to mention that the problem seems to be that surefire ignores some
of our test suites when counting the total number of processed tests.
We have 11 seperate test suites (not 9 as mentioned before) and 4 of these
test suites are not included in the list of test resu
On Jan 9, 2008 10:02 AM, nicolas de loof <[EMAIL PROTECTED]> wrote:
> Can I tell the release plugin to ignore this one during release checks ?
I do not know, whether you can. But the recommended way is to take the
current snapshot, define your own version number (for example
20080109)
Hi there,
Was there any change in surefire-plugin from version 3.2 to 3.2.1 that
changes the way xml apis are loaded for tests?
With version 3.2, I can add xercesIml in scope:test and use XSD validation.
After getting the upgrade to version 2.3.1 I'm getting this error:
nested exception is jav
Hello,
My POM is configured with a snapshot version of the eclipse plugin (as some
fix are required in my env).
I'd like to release my project. This plugin is NOT required to be stable to
make the build reproductible.
Running mvn release:prepare force me to use a non-snapshot version of the
plugi
If you want the jar file of module A working at runtime, how is that possible
without the transitive libraries? Could you change the module to include those
dependencies only at compile time? Then they won't be transitive at runtime.
With regards,
Nick Stolwijk
-Original Message-
From
Matthew Tordoff a écrit :
Hi Francois,
To retrieve any files you first of all need to install them into the Maven
repository in some way, and to install them into the Maven repository so they
are accessible by other modules which can then retrieve them. The basic steps
are: Package/Assemble,
Amit,
Could you send me the output of mvn clean install -X (pipe it to a file)
privately. I can have a look at it and reply here hopefully the solution.
With regards,
Nick Stolwijk
-Original Message-
From: amit kumar [mailto:[EMAIL PROTECTED]
Sent: Wed 1/9/2008 9:23 AM
To: Maven Users
Yes Vishal thats very true, in fact even i am looking for a similar
solution.
On Jan 9, 2008 2:01 PM, Vishal Pahwa <[EMAIL PROTECTED]> wrote:
>
> Amit
>
> Thats pretty much fine but the problem is we have got plenty of
> dependencies and stopping them to get inside lib directory with this
> metho
Amit
Thats pretty much fine but the problem is we have got plenty of
dependencies and stopping them to get inside lib directory with this
method is a bit cumbersome thats why i was lookin for some other
efficient way if exists.
Regards
Vishal.
-Original Message-
From: amit kumar [mail
Vishal:
you can use
A
A
in exclusion you can specify the dependencies of A. As per my knowledge
there would be one exclusion tag for each dependency.
This is the only method I know by now.
Nick: I am using Maven 2.0.7. And surprisingly I have used mvn site also to
track the dependencies,
92 matches
Mail list logo