Hi,
I'm trying to understand if there is a regression or deliberate change
in WARNING reporting of relocated artifacts between Maven 2.0.9 and
Maven 2.1.0.
I tested with a well-known relocated artifact servletapi:servletapi:2.3
which is relocated to javax.servlet:servlet-api:2.3. Test POM
Wayne Fay wrote:
As that book is a product of Sonatype, you will need to file a defect
in the Sonatype JIRA and it will probably be resolved in the next
release of the book. I don't have a link, but surely there is one at
www.sonatype.com.
Wayne
Done, JIRA created
Hi,
Can anyone tell me how to resolve this error:
# mvn archetype:create-from-project
[INFO] Scanning for projects...
Downloading:
http://repo1.maven.org/maven2/org/jboss/ejb3/jboss-ejb3-tutorial-common/1.1.1/jboss-ejb3-tutorial-common-1.1.1.pom
[INFO] Unable to find resource
Hi,
That artifact doesn't exist at central (aka repo1). Try jboss's
repository instead:
http://repository.jboss.org/maven2/
/Anders
On Tue, Jul 7, 2009 at 13:23, Sam Wunswun2...@gmail.com wrote:
Hi,
Can anyone tell me how to resolve this error:
# mvn archetype:create-from-project
[INFO]
Hi, how do you define http://repository.jboss.org/maven2/ with mvn?
Thanks
On Tue, Jul 7, 2009 at 9:30 PM, Anders Hammarand...@hammar.net wrote:
Hi,
That artifact doesn't exist at central (aka repo1). Try jboss's
repository instead:
http://repository.jboss.org/maven2/
/Anders
On Tue,
http://lmgtfy.com/?q=maven+add+remote+repositoryl=1
On Tue, Jul 7, 2009 at 13:32, Sam Wunswun2...@gmail.com wrote:
Hi, how do you define http://repository.jboss.org/maven2/ with mvn?
Thanks
On Tue, Jul 7, 2009 at 9:30 PM, Anders Hammarand...@hammar.net wrote:
Hi,
That artifact doesn't
hehe Cool ^__^
and Thanks.
On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammarand...@hammar.net wrote:
http://lmgtfy.com/?q=maven+add+remote+repositoryl=1
On Tue, Jul 7, 2009 at 13:32, Sam Wunswun2...@gmail.com wrote:
Hi, how do you define http://repository.jboss.org/maven2/ with mvn?
Thanks
On
Sorry, I don't know where to put it in the settings.xml file.
I put it in the following area, but got caused mvn errors:
profile
idjdk-1.4/id
activation
jdk1.4/jdk
/activation
repositories
repository
idjdk14/id
nameRepository for
I meant the error still the same as before... it s still looking for repo1.
Thanks
On Tue, Jul 7, 2009 at 10:11 PM, Sam Wunswun2...@gmail.com wrote:
Sorry, I don't know where to put it in the settings.xml file.
I put it in the following area, but got caused mvn errors:
profile
Just curious, how big is the central repository (including plugins)? I
couldn't find this information anywhere. You'd think it would be an FAQ.
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional
Don't add it in a profile (well, at least not for the normal case),
but exactly as specified in the page I linked to. Like this:
project
...
repositories
repository
idjboss-repo/id
urlhttp://repository.jboss.org/maven2//url
/repository
/repositories
...
/project
I put it here:
settings xmlns=http://maven.apache.org/settings/1.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd;
project
repositories
repository
That's because it should go in your pom.xml! The project tag is for the POM.
Please have a look at the pom schema, as I wrote!
/Anders
On Tue, Jul 7, 2009 at 14:53, Sam Wunswun2...@gmail.com wrote:
I put it here:
settings xmlns=http://maven.apache.org/settings/1.0.0;
Way too big. ;) You only need to retrieve the whole of repo1 if you're
planning to create a mirror. In all other cases a repository proxy
like nexus should do the trick.
Hth,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
On Tue, Jul 7, 2009 at
i have a *.xml at the repository.
when i run mvn package instal the *.xml file is not download???
--
View this message in context:
http://www.nabble.com/repository-problem-tp24372938p24372938.html
Sent from the Maven - Users mailing list archive at Nabble.com.
lolz... as the page told me , it set it to settings.xml. :D
it works now, thank you for the great help.
On Tue, Jul 7, 2009 at 10:59 PM, Anders Hammarand...@hammar.net wrote:
That's because it should go in your pom.xml! The project tag is for the POM.
Please have a look at the pom schema, as I
As it running forward, near the end of the download.. there is an error:
...
[INFO] [enforcer:enforce {execution: enforce-banned-dependencies}]
[WARNING] Rule 1:
org.apache.maven.plugins.enforcer.RequireMavenVersion failed with
message:
Detected Maven Version: 2.1.0 is not in the allowed range
It seems that your project needs to be build with mvn version 2.0.9 or
higher, but not as high as 2.1. See [1]
[1]
http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
On Tuesday 07 July 2009 Sam Wun wrote:
As it running forward, near the end of the download.. there is an error:
...
[INFO] [enforcer:enforce {execution: enforce-banned-dependencies}]
[WARNING] Rule 1:
org.apache.maven.plugins.enforcer.RequireMavenVersion failed with
message:
Detected Maven
We were mirroring all of repo1 for a while... but we gave up when it grew
past 13Gb.
Nexus as a proxy server is the way to go (or another maven proxy server)
2009/7/7 Steve Taylor st...@atulos.com
Just curious, how big is the central repository (including plugins)? I
couldn't find this
Hi all,
I am trying to setup a multi-module project. One module produce a JAR
(jar-module) and another one a WAR which uses jar produced by jar-module.
jar-modules has some configuration files - Spring xml and .property files.
Rather then package them as part of the jar I wanted to deploy them
On Mon, Jul 6, 2009 at 5:03 PM, mavenusrsundarva...@gmail.com wrote:
Thanks. Yes. My property files aren't part of the JAR.
so again my question is, if i change the property files, will the JAR
automically pickup the change without the need for rebuilding it?
No. If none of the files that
Dave,
Thanks a lot for your inputs.
Regards
Sundar
mavenusr wrote:
Hello,
I m new to Maven and I m trying to place property and config.xml files
outside the Jar files. Here is my current directory
Src
main
java
resources
test
java
resources
under java, i have all the
Hi Alexi,
The way we've done this is to package the applicationContext.xml in the
war - not in the jar. You can do this by adding it to the war's
src/main/resources directory. In order to run unit tests in the jar
module, we have added an applicationContext.xml in the jar's
Hi Joe,
Thanks for spending your time and share your experience.
I don't think that solution you are proposing will work in our context.
I see 2 issues with approach you are proposing
1. I have to maintain 2 copies of applicationContext.xml one in WAR and one
in JAR (for testing).
2. My JAR is
Hi Alexi,
Thanks for clarifying. So what you could do is keep the
applicationContext.xml packaged in your jar and update your war's POM to
use the dependency:unpack mojo to copy it to the right location to be
included in your war.
The dependency plugin page has an example of unpacking
I have the same problem :-((. Looked at the source code and there is no
mention of skipITs that I found. It would be really great to have that
feature. Is there any time-frame when this will be added?
Henry
ben.lidgey wrote:
I can't get this to work. Looking in the code on the failsafe site
here is a workaround for you...
plugins
plugin
...
artifactIdfailsafe-maven-plugin/artifactId
configuration
skipTests${skipITs}/skipTests
...
/configuration
...
/plugin
I'll have a look at fixing this otherwise
2009/7/7 Henry_N henry...@gmail.com:
I have
r10088 has the fix.
2009/7/7 Stephen Connolly stephen.alan.conno...@gmail.com:
here is a workaround for you...
plugins
plugin
...
artifactIdfailsafe-maven-plugin/artifactId
configuration
skipTests${skipITs}/skipTests
...
/configuration
...
/plugin
I'll
Hi-
I must be doing something really stupid. I can't get ant to use junit 4
when invoked via the antrun plugin. My tests all fail because the test
runner can't find any tests (since none of the tests extend TestCase). If I
just run the tests via the ant script, the tests run and pass. But
Maven Overview Plugin version 1.6 has been released.
http://code.google.com/p/maven-overview-plugin/
Maven Overview Plugin graphs your Maven dependencies. You can use it
in plugin or report mode to generate just graph or integrate with site
generated by Maven respectively.
This release improves
Thank you, that worked, thank you - posting it on my blog as well:
http://blog.naftulinconsulting.com/2009/07/07/integration-testing-with-maven/
Stephen Connolly-2 wrote:
here is a workaround for you...
plugins
plugin
...
artifactIdfailsafe-maven-plugin/artifactId
actually now that I think about it, better is to bind to skipExec and
not skipTests as that way, skipTests will skip everything while
skipITs will only skip ITs
Sent from my [rhymes with myPod] ;-)
On 7 Jul 2009, at 23:50, Henry_N henry...@gmail.com wrote:
Thank you, that worked, thank
Hi, I rather fix the project so that it works for 2.1, which files I
should modify and how?
Any detail?
Thanks
Sam
On Tue, Jul 7, 2009 at 11:27 PM, Martin Höllermar...@xss.co.at wrote:
On Tuesday 07 July 2009 Sam Wun wrote:
As it running forward, near the end of the download.. there is an
Does anyone know which conf file I should change to get rid of this error?
I am with Maven 2.1, Java 1.6
Very appreciate for your help.
thanks
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional
mvn help:effective-pom might give you a clue.
On Tue, Jul 7, 2009 at 9:00 PM, Sam Wunswun2...@gmail.com wrote:
Does anyone know which conf file I should change to get rid of this error?
I am with Maven 2.1, Java 1.6
Very appreciate for your help.
thanks
I've not dealt with this before so take this advice with a grain of
salt, but here's something to try: Run mvn dependency:tree to see if
another dependency elsewhere is relying on junit 3.x - maybe you can fix
or exclude it.
Best
Brett
ZJacobson wrote:
Hi-
I must be doing something really
Thanks for the hints.
I put the following codes in the pom.xml file, but it is not right:
rules
requireMavenVersion
version[2.1,2.2)/version
/requireMavenVersion
/rules
How do I incorproate the following codes into pom.xml file:
Hi, I rather fix the project so that it works for 2.1, which files I
should modify and how?
Look at the pom.xml files in your project and find an entry for the
enforcer plugin, then comment it out or tweak the configuration
appropriately.
Wayne
there is no enforcer plugin in my pom.xml, here is its content:
# cat pom.xml
?xml version=1.0 encoding=UTF-8?
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
Hi, I got a further errors after added new codes in the pom.xml file.
Please see below for more info.
# cat pom.xml
?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
I got a maven project and compile it by maven. Then I got the error
java.lang.OutOfMemoryError: Java heap space. How can I set the memory size
running mvn command?
thanks.
--
View this message in context:
http://www.nabble.com/How-can-I-set-maven-memory-size--tp24384381p24384381.html
Sent from
That error message means what it says - you can't create a sub-project of a
project which doesn't have a packaging of pom. When you run the
archetype:generate goal and Maven sees that there's a existing project in the
current directory, it assumes you are trying to create a sub-project
ok Fixed.
thanks very much for that.
Sam
On Wed, Jul 8, 2009 at 12:34 PM, Edelson,
Justinjustin.edel...@mtvstaff.com wrote:
That error message means what it says - you can't create a sub-project of a
project which doesn't have a packaging of pom. When you run the
archetype:generate goal and
I got a maven project and compile it by maven. Then I got the error
java.lang.OutOfMemoryError: Java heap space. How can I set the memory size
running mvn command?
add java memory parameter to MAVEN_OPTS environment variable.
=r
set the MAVEN_OPTS environment variable...
export MAVEN_OPTS=-Xms256m -Xmx1024m
Something like that.
youhaodeyi wrote:
I got a maven project and compile it by maven. Then I got the error
java.lang.OutOfMemoryError: Java heap space. How can I set the memory size
running mvn command?
Hi Grant,
It should work as you want it too. Which version of Maven and the
resources plugin? Do you have any other overlapping resource
declarations from another profile?
Brett
Grant Rettke wrote:
This might be the easiest filter question you have ever seen...
I want to filter a
Can I use it as command line argument instead of setting environment
variable?
dchicks wrote:
set the MAVEN_OPTS environment variable...
export MAVEN_OPTS=-Xms256m -Xmx1024m
Something like that.
youhaodeyi wrote:
I got a maven project and compile it by maven. Then I got the
env MAVEN_OPTS=-Xms256m -Xmx1024m mvn install
youhaodeyi wrote:
Can I use it as command line argument instead of setting environment
variable?
dchicks wrote:
set the MAVEN_OPTS environment variable...
export MAVEN_OPTS=-Xms256m -Xmx1024m
Something like that.
youhaodeyi wrote:
Hey, Tim,
where are you??? One year ago, you wrote and wrote and wrote for The
definitive guide.
Now it's in Version 0.6 and not much if not nothing at all has changed
during the last months.
Also, I can't wait to see the new Maven cookbook! Maybe you got an alpha at
hand?
Just let me know, I
50 matches
Mail list logo