Thanks for your fast reply, Brett.
Currently I have:
p...@ubuntu-desktop:~$ java -version
java version 1.6.0_16
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
p...@ubuntu-desktop:~$ javac -version
javac 1.6.0_16
Wayne,
Thank you very much for your help. I solved the problem using the first link
you suggested. Because that thread might not be very clear I decided to
offer an explanation here.
Basically the problem was because in my pom.xml file I had the following
parts;
repository
mickknutson wrote:
Do you have an error trace?
Problem solved :) For future reference (in case anyone else has this
problem) I am going to put the error trace here. I solved the problem using
the link provided by Wayne Fay -
http://forums.java.net/jive/message.jspa?messageID=226931
Hi,
when I don't receive a reply on a question, I'm always uncertain what the
reason for that is:
* Was the question or problem unclear?
* Is the answer so obvious that nobody cares to reply?
* Is the answer so difficult, or the solution impossible without inventing
something new, that nobody
Hi,
I tried to execute the release:perform goal. When the execution reaches to
deploy -task segment, there's a error.
INFO] [ERROR] BUILD ERROR
[INFO] [INFO]
[INFO] [INFO] Failed to configure plugin parameters for:
2009/11/30 sim085 sim...@hotmail.com:
Wayne,
Thank you very much for your help. I solved the problem using the first link
you suggested. Because that thread might not be very clear I decided to
offer an explanation here.
Basically the problem was because in my pom.xml file I had the
Hi Adrian,
I'm sure you've seen the unresolved bug 542162 on the Debian lists. Can you
confirm - have you tried downloading the Maven binary bundle from
maven.apache.org, or are you still trying to run the
Ubuntu/Canonical/Debian-upstream bundle? What does `which mvn` produce? I
recommend you
I think that you can get the version of a specific dependency through Groovy
script by using the groovy-maven-plugin. Not sure if you can set a maven
property from a groovy script though. Tried to find any good docs on the
plugin but couldn't, sorry.
Some example config for that plugin that loops
Hi Anders,
thanks for sharing your idea, which is really interesting. It tells me that at
least the information is available, but not accessible with the standard maven
property resolution algorithm. Would be interesting to find out if it can be
easily patched it.
Let's see where in the
Hello,
there seems to be an error in the method the metadata of maven-archetype-plugin
in central maven repository are served.
We noticed that we cannot proxy the plugin with our nexus repo manager. So we
investigated the problem.
We startet to look at the file with a webbrowser and every
Hi.
I'm using a pretty large maven tree, and I ran into two problems when
trying to configure plugins at the top level project.
These two problems are related to the fact that I wanted the plugins to
be executed only on jar packaging projects, and not on pom packaging
projects, but didn't know
MessageI have installed
m2eclipse, and tried to execute this command: mvn
eclipse:eclipse
Then I got this
error: The plugin 'org.apache.com.plugins:maven-eclipse-plugin' does not exist
or no valid version could be found
What is
wrong?
Wendy Smoak wrote:
One way, I know to achieve this is to configure the site plug-in in each
child project with an inherited=false. But that is a bit crummy.
What happens if you configure inherited=false in the parent?
That didn't help.
Here is my project structure:
Hi,
I'm using Maven 2.2. In my maven project, I have this fragment in my
pom.xml at the project root ...
nameMyco GA Capitol Tours/name
descriptionMyco GA Capitol Tours/description
inceptionYear2009/inceptionYear
groupIdMyco.galc.capitol.tours/groupId
Hi Dave,
If you want to inherit the parent's groupId and version values, you
simply remove them from the child's pom definition. In your case, the
child pom would look like:
parent
groupIdMyco.galc.capitol.tours/groupId
artifactIdMyco-galc-capitol-tours/artifactId
Not in Maven 2.X
Will be possible in Maven 3.x
But personally I don't see the problem to have them if you use the release
plugin and if required the versions plugin to update them.
Arnaud Héritier
Software Factory Manager
eXo platform - http://www.exoplatform.com
---
http://www.aheritier.net
On
You'll notice I have 1.0-SNAPSHOT hard-coded a couple of times in my
webapp/pom.xml. Is there any way I can replace that with something that
will be automatically inherited from the parent?
If you're using the release plugin, this is not generally a problem.
So, what is your reason behind
try groupid: org.apache.maven.plugins instead
Martijn
On Sat, Nov 28, 2009 at 8:24 PM, Hannelore Brijs
hannelore_br...@hotmail.com wrote:
MessageI have installed
m2eclipse, and tried to execute this command: mvn
eclipse:eclipse
Then I got this
error: The plugin
You have several possibilities.
- define properties and use them (properties...)
- use dependencyManagement for multi module projects
- avoid defining a own version in multi module projects (inherits the
parent pom)
Don't know your use case. But one of those methods should solve it.
Sincerly,
Thanks, Joe. So we do keep the version element within the parent element?
Thus, the version appears in both the pom.xml in the root and also in the
webapp/pom.xml ?
- Dave
Joe Hindsley wrote:
Hi Dave,
If you want to inherit the parent's groupId and version values, you
simply
Dave,
Yes. Child poms should always explicitly name their parents.
The reason for this is that you might have a parent pom that exists in
the repository and not in your directory structure. In order for maven
to be able to find that pom, it will need the repository 'coordinates'.
An example
Hello,
We have a Maven 2 project and one of the libraries we need to add is
Jasper Reports.
We need to use the latest release of Jasper Reports 3.2.6
However this library doesn't exist in a Maven Repository.
How do we manage this dependency and all its transitive dependencies?
(i.e. all the
I'm looking for the latest and greates servlet.jar so I can put a dependency
in my maven2 pom.xml
and am pointed by this page:
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
to
http://download.java.net/maven/2/javax/servlet/
But nothing but
Solved.
I extracted the
http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.2.1-bin.tar.gz/apache-maven-2.2.1/bin/m2.conf
file:
main is org.apache.maven.cli.compat.CompatibleMain from plexus.core
set maven.home default ${user.home}/m2
[plexus.core]
load
What up? Where do I find the latest servelet.jar in a maven2 repo?
This may help:
http://mvnrepository.com/search.html?query=servlet
Otherwise ask on the Glassfish user list, or check the Geronimo
artifacts in Central for it.
Wayne
We need to use the latest release of Jasper Reports 3.2.6
However this library doesn't exist in a Maven Repository.
How do we manage this dependency and all its transitive dependencies?
Complain to the JasperReports people until they upload a proper pom
for that version (and the jar).
Well something else does not work now :(
p...@ubuntu-desktop:~$ mvn validate -e
+ Error stacktraces are turned on.
FATAL ERROR: Unable to start the embedded plexus container
Error stacktrace:
org.codehaus.plexus.PlexusContainerException: Error starting container
at
Can't you use the one in central?
http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.5/
2009/11/30 jvsrvcs jvsr...@gmail.com:
I'm looking for the latest and greates servlet.jar so I can put a dependency
in my maven2 pom.xml
and am pointed by this page:
Herehttp://jasperforge.org/plugins/espforum/view.php?group_id=112forumid=102topicid=45277you
can find instructions on how to setup jasperreports maven repository.
It
seems 3.6.2 hasn't been published there yet, but 3.6.0 is and 3.6.2-snapshot
too. You can use 3.6.0 and wait for official 3.6.2 to
I have two related questions:
1. Can I define a profile that replaces the goal executed by a plugin,
rather than add to it?
2. Can I override the goal invoked for a plugin without duplicating the
entire plugin definition within a profile?
I'm using the assembly plugin (bound to the package
The Mojo team is pleased to announce the release of Animal Sniffer version 1.4.
This is the second release of Animal Sniffer
(http://mojo.codehaus.org/animal-sniffer/) since it moved from
java.net to the mojo project at codehaus. We have fixed a number of
bugs
Neil,
In addition to other responses (use http, not file):
1. Check the repo url in your output. I think the trailing slash in your
pom.xml url will result in two slashes in the actual url (id did in mine).
2. I assume the repo entry is a child of distributionManagement and that
your id matches
If you give same id to executions, regular one and one in the profile, when
profile is active it will override regular execution in its entirety (bound
phase, goals, configuration, ...)
Regards,
Stevo.
On Mon, Nov 30, 2009 at 9:08 PM, Jeff French j...@mdbconsulting.com wrote:
I have two
What phase is bound to a plugin's goal when no corresponding phase
element is present in their plugin.xml?
(If it is none, I didn't know this was possible. I would assume at
least validate is run)
Paul
-
To unsubscribe, e-mail:
Thanks, Stevo. That make sense. I do have the same execution ID, but I must
be doing something else wrong because both goals still run.
I have both the main and profile plugin definitions inside a
pluginManagement element in the parent POM, then just include the groupId
and artifactId in the
Err, this is exactly what we do.
I might be wrong, but the only thing that's compulsory is the version of the
referenced parent pom.
If the child project has the same version (or the same groupId) you can just
remove it from the child pom.
This is what we have been doing for something like 6 or
I'm using the antrun plugin to let developers run an application after it has
been packaged. So far I can only run it like so:
mvn antrun:run
but would like to use a more appropriate name like:
mvn run-server
Is there a way to assign a unique name?
Thanks.
Jeff
--
View this
Yes you just put it in the parent part. The module doesn't need to
redefine it. You inherit it from the parent.
Each pom need to have the version at least one version defined in
project/parent/version or in project/version
Cheers,
Arnaud Héritier
Software Factory Manager
eXo platform -
if the mojo is annotated with @phase then the specified phase is the
phase it will bind to if no phase is specified in the execution
otherwise it will not be bound to any phase (i.e. it will not execute
as part of any lifecycle)
HTH
-Stephen
2009/11/30 Paul Benedict pbened...@apache.org:
What
Are you trying to redeploy a release artifact that's already there?
Nexus 1.4.x has redeployment disabled by default. Otherwise if the
file was successfully uploaded you should see it right away in the
repository, you may have to refresh the ui or browser.
Use the nexus user list for additional
Sorry, I misread your first email. You can't use the file: protocol to
deploy to a remote server. Most likely if you poke around in the root
of your disk, you'll find a new folder called myserver that contains
the file you thought was deployed to Nexus.
You want the http protocol.
As far as the
Stephen,
Without a @phase binding, what about when the plugin's goal is
explicitly executed at the command line? Do any of Maven's phases get
executed first? I suspect validate at least does.
Paul
On Mon, Nov 30, 2009 at 4:25 PM, Stephen Connolly
stephen.alan.conno...@gmail.com wrote:
if the
No. The syntax is
mvn phase
or
mvn plugin:goal
But you could create a shell script/bat file with a better name which
executes mvn antrun:run.
/Anders
On Mon, Nov 30, 2009 at 23:10, Jeff French j...@mdbconsulting.com wrote:
I'm using the antrun plugin to let developers run an application
I have been noticing that Maven is redownloading some SNAPSHOTs every day,
despite the fact that the files have not changed. I ran my build using mvn
-X clean package and I can see that an HTTP 304 is being returned
(verified on the server), yet the file is downloaded anyway. Is there some
On Tue, Dec 1, 2009 at 3:35 PM, Anders Hammar and...@hammar.net wrote:
No. The syntax is
mvn phase
or
mvn plugin:goal
But you could create a shell script/bat file with a better name which
executes mvn antrun:run.
Or you could use a profile.
mvn -Prun-server
where the profile would
On Tue, Dec 1, 2009 at 4:36 PM, Barrie Treloar baerr...@gmail.com wrote:
On Tue, Dec 1, 2009 at 3:35 PM, Anders Hammar and...@hammar.net wrote:
No. The syntax is
mvn phase
or
mvn plugin:goal
But you could create a shell script/bat file with a better name which
executes mvn antrun:run.
No, if you specify a plugin:goal that's what is going to be executed.
Maven's lifecycle is not being used.
Try mvn clean:clean -X for instance and you'll see.
/Anders
On Tue, Dec 1, 2009 at 00:22, Paul Benedict pbened...@apache.org wrote:
Stephen,
Without a @phase binding, what about when
unless your profile specifies a defaultGoal of validate and you bind
your execution to the validate phase (hack)
Sent from my [rhymes with tryPod] ;-)
On 1 Dec 2009, at 06:07, Barrie Treloar baerr...@gmail.com wrote:
On Tue, Dec 1, 2009 at 4:36 PM, Barrie Treloar baerr...@gmail.com
wrote:
48 matches
Mail list logo