Release plugin checking remote dependencies for modules

2009-05-18 Thread Danilo Tuler
Hi,

I have a multi-module project with a dozen modules.
Whenever I do a maven release:prepare maven checks remotely for
SNAPSHOT dependencies of my own modules, instead of first checking the
reactor.
Is this correct?

I use archiva and have a lot of remote repositories, and because of
that the release takes an hour or so.
My modules does not define version themselves, but define the versioned parent.
The inter module dependencies are defined as ${version} instead of
sticking the version.
I'm using maven 2.1.0.

Thanks,
Danilo

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Release plugin checking remote dependencies for modules

2009-05-18 Thread Danilo Tuler
 I have a multi-module project with a dozen modules.
 Whenever I do a maven release:prepare maven checks remotely for
 SNAPSHOT dependencies of my own modules, instead of first checking the
 reactor.

 You can speed this up by creating a repository group [virtual
 repository] and configuring Maven to only use the one url.

Our version of archiva (1.0.2) does not support virtual repositories.
We plan to upgrade ASAP.

But why does maven do that?

Danilo

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Looking for Eclipse Artifact Repo

2008-08-18 Thread Danilo Tuler
Hi,

 but is seems not up to date.

Remember you can always use
http://maven.apache.org/plugins/maven-eclipse-plugin/make-artifacts-mojo.html
to create a local repo.

Danilo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



groupId directory property

2008-07-17 Thread Danilo Tuler
Hi,

Is there any property that contains the directory name of the groupId?
I mean, if the groupId is org.springframework.spring-core I would
like to get the string org/springframework/spring-core and use that
in my site distributionManagement section.

Thanks,
Danilo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: groupId directory property

2008-07-17 Thread Danilo Tuler
Hi,

 Hello Danilo, I think you might be looking for using a parent POM. Something 
 like:

Actually what I'm trying to achieve is to configure my site deploy to
upload the site via scp to a directory that is defined by the groupId,
artifactId and version. Something like this:

distributionManagement
site
iddocs/id
nameDocumentation Site/name
url

scp://xyz/var/www/docs/${groupId}/${artifactId}/${version}
/url
/site
/distributionManagement

The problem is that instead of copying to
/var/www/docs/org.springframework.spring-core/spring-core/2.5.4/ I
would like to copy to
/var/www/docs/org/springframework/spring-core/spring-core/2.5.4/

Danilo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven release failure: Content is not allowed in prolog

2008-05-14 Thread Danilo Tuler
 When I opened these files with edit ( in command prompt yeahh) I could see a
 'bad' byte at the beginning.

Those bad bytes are the byte order mark or BOM for short.
If the file is UTF-8 encoded, those bytes (EF BB BF) are optional and
may be there depending on the editor you use.

It seems to be a bug in jdom which throws an exception. Although one
may argument if that's a bug or not.
Whatever, I removed the bytes and maven worked.

[1] http://www.jdom.org/pipermail/jdom-interest/2003-July/012455.html
[2] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058

Best regards,
Danilo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven release failure: Content is not allowed in prolog

2008-05-13 Thread Danilo Tuler
 your XML does not start with the XML processing instruction or a byte order
 mark

All my poms start with ?xml version=1.0 encoding=UTF-8?
What do you mean by byte order mark?

Danilo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven release failure: Content is not allowed in prolog

2008-05-13 Thread Danilo Tuler

Hi,

your XML does not start with the XML processing instruction or a byte 
order mark


All my poms start with ?xml version=1.0 encoding=UTF-8?
I guess a byte order mark is optional for UTF-8.

It's a multi module project, and I don't even know which is the offending 
pom.xml among a dozen poms.

My bet is that it's the parent pom. This is the log:

[INFO] Transforming 'Parent'...
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error reading POM: Error on line 1: Content is not allowed in prolog.

[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error reading POM: 
Error

on line 1: Content is not allowed in prolog.
(...)
Caused by: org.jdom.input.JDOMParseException: Error on line 1: Content is 
not al

lowed in prolog.
   at org.jdom.input.SAXBuilder.build(SAXBuilder.java:468)
   at org.jdom.input.SAXBuilder.build(SAXBuilder.java:851)
   at 
org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.transformProject(AbstractRewritePomsPhase.java:143)



AbstractRewritePomsPhase could be more error friendly and say which file is 
problematic.


Thanks,
Danilo


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



maven release failure: Content is not allowed in prolog

2008-05-09 Thread Danilo Tuler
Hi,

I'm trying to use the maven release plugin, but when maven is about to
transform my poms, it issues the error:

Error reading POM: Error on line 1: Content is not allowed in prolog.

How can I find what's wrong with my pom?

Thanks,
Danilo


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



maven-compiler-plugin 2.1-el4j_20080110_1520

2008-01-28 Thread Danilo Tuler

Hi,

We are experiencing problems with Maven for a couple of weeks now.
It's happening on all Maven installations, and I don't have a clue why.

The problem is with the compiler plugin.
If we do a 'mvn package' we get the following exception:

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-compiler-plugin:2.1-el4j_20080110_1520:compile':
Unable to find the mojo
'org.apache.maven.plugins:maven-compiler-plugin:2.1-el4j_20080110_1520:compile'
in the plugin
'org.apache.maven.plugins:maven-compiler-plugin'org/codehaus/plexus/compiler/util/scan/InclusionScanException

Here is the contents of the file
'.m2\repository\org\apache\maven\plugins\maven-compiler-plugin\maven-metadata-elca-services.xml'.
If we replace 2.1-el4j_20080110_1520 with 2.0.2, it compiles.
But we have to do this every day, and our build server gets lost too.

?xml version=1.0 encoding=UTF-8?
metadata
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.1-el4j_20080110_1520/version
versioning
latest2.1-el4j_20080110_1520/latest
versions
version2.1-el4j_20080110_1520/version
/versions
lastUpdated20080111075723/lastUpdated
/versioning
/metadata


Thanks,
Danilo

-- 
View this message in context: 
http://www.nabble.com/maven-compiler-plugin-2.1-el4j_20080110_1520-tp15137318s177p15137318.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven-compiler-plugin 2.1-el4j_20080110_1520

2008-01-28 Thread Danilo Tuler


Danilo Tuler wrote:
 
 [INFO] Internal error in the plugin manager executing goal
 'org.apache.maven.plugins:maven-compiler-plugin:2.1-el4j_20080110_1520:compile':
 Unable to find the mojo
 'org.apache.maven.plugins:maven-compiler-plugin:2.1-el4j_20080110_1520:compile'
 in the plugin
 'org.apache.maven.plugins:maven-compiler-plugin'org/codehaus/plexus/compiler/util/scan/InclusionScanException
 

I'm using the depgraph plugin, and I guess its repository is broken.
I removed it from my pom and it works fine now.
The problematic repository is:

pluginRepository
idelca-services/id
urlhttp://el4.elca-services.ch/el4j/maven2repository/url
releases
enabledtrue/enabled
/releases
/pluginRepository

Danilo

-- 
View this message in context: 
http://www.nabble.com/maven-compiler-plugin-2.1-el4j_20080110_1520-tp15137318s177p15139736.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven2 plugin for eclipse

2007-05-24 Thread Danilo Tuler

Hi Jacek,

 I'm using Tycho now and am quite happy with its features.

I'm trying to migrate a large RCP project to tycho build, but It's lacking
documentation.
Is there any URL or sample project I could check?

Thanks in advance.

-- Danilo

-- 
View this message in context: 
http://www.nabble.com/Maven2-plugin-for-eclipse-tf3391213s177.html#a10784428
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Web application lifecycle

2006-01-18 Thread Danilo Tuler
Hi,

I have multi module setup, with 2 modules generating JAR's and the third is
a web application, which depends on those JAR's.
It's working fine, but I have problems with the building lifecycle.
What should I run just to copy files from webapp to the destination
directory, without restarting my application server?

If I run `mvn war:exploded` my app server is restarted.

This is really anoying me...

Thanks in advance.
Danilo Tuler


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]