Re: Anyone know how to use the ant task scopes?

2012-12-16 Thread Rick Mann

On Dec 16, 2012, at 18:06 , Benson Margulies  wrote:

> You'll have to be a lot more specific. With the antrun plugin? With
> something else?

I've posted a couple times with my specific query, but no replies to it. I set 
it up a long time ago, so I didn't know there was more than one way to use the 
maven plugin in ant. In my ~/.ant/lib I have maven-ant-tasks-2.1.3.jar. Here's 
what I have in my build.xml:



...

http://mirrors.ibiblio.org/maven2"/>

...






...

etc.

I don't know if that's antrun or something else.

-- 
Rick


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



Re: cargo:deploy ear on parent pom

2012-12-16 Thread guga.java
Hi,

I'm having this same problem. Did you resolve?

Could you share with me the solution?



--
View this message in context: 
http://maven.40175.n5.nabble.com/cargo-deploy-ear-on-parent-pom-tp124132p5738792.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Anyone know how to use the ant task scopes?

2012-12-16 Thread Benson Margulies
You'll have to be a lot more specific. With the antrun plugin? With
something else?


On Sun, Dec 16, 2012 at 8:48 PM, Rick Mann  wrote:
> Anyone at all?
>
> --
> Rick
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

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



Anyone know how to use the ant task scopes?

2012-12-16 Thread Rick Mann
Anyone at all?

-- 
Rick




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



Re: File lock problem in custom Maven Reporting Plugin

2012-12-16 Thread Robert Scholte

This is probably what you need:
from org.apache.maven.reporting.MavenReport.isExternalReport()

/**
 * An external report is a report which calls a third party program  
which generates some reports too.

 * A good example is javadoc tool.
 *
 * @return true if this report is external, false  
otherwise.

 * Default should be false.
 */
boolean isExternalReport();


Op Tue, 11 Dec 2012 23:42:43 +0100 schreef Baptiste Gaillard  
:


Hi, I'm currently creating a new Maven Reporting Plugin which integrate  
an

external tool used to generate a Javascript documentation in my Maven Web
Site.

My report Mojo is very simple and is declared using :

/**
 * @goal jsduck
 * @phase site
 */
public class JSDuckReportMojo extends AbstractMavenReport {
...
}

I encounter a file locking problem (i.e already opened elsewhere and not
closed) at the beginning of my 'executeReport' method :

*
protected void executeReport(Locale locale) throws MavenReportException {

// JSDuck creates an 'index.html' file itself and crashes if one file
with this name already exist
File jsduckIndex = new File("target/site/jsduck/index.html");

if (jsduckIndex.exists() && !jsduckIndex.delete()) {
throw new MavenReportException("Fail to delete the previously
generated index.html !"
);
}

// Use a document generator which absolutly need to have an empty
target directory
...
}
*

The tool I'm integrating is called 'jsduck' and absolutely needs to have  
an
empty target directory to work, its root index file is called  
'index.html'.


So I've also implemented the 'getOutputName' function :

public String getOutputName() {
return "jsduck/index";
}

But, the file 'target/site/jsduck/index.html' has already been created
automagically by Maven.
In the 'executeReport' this file is there, empty and locked !

So, I can't delete this 'index.html' file and let JSDuck create itself  
:-(


Is it normal that Maven locks this 'index.html' file (because it has been
declared in the 'getOutputName()' ) ?
How can I unlock this file inside the 'executeReport' function to let
JSDuck generate my documentation ?

I've already tried to debug the 'AbstractMavenReport' class and only  
found

a 'PrintWriter' attached to the 'Sink' (in the 'execute' method) which
could cause this locking problem.
Calling the 'close' method at the beginning of the 'executeReport' method
seems to have no effect...

Thanks for you help,

Baptiste


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



Re: merging xml files with xml plugin

2012-12-16 Thread Radim Kolar

i wrote groovy script for it

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



Does maven3 still support built-in properties?

2012-12-16 Thread jinwei zhu
Hi, community,
Does maven3 still support built-in properties like maven1.x in
this page "http://maven.apache.org/maven-1.x/reference/properties.html
"?
if yes, where can I find this built-in properties list ?
if no, the strange thing is I can use CLI like "mvn
-Dmaven.repo.local" to specify where is the local repo , so I think
maven3 itself has this property, but if maven3 itself has property
"maven.repo.local" , I think I can use it like ${maven.repo.local} in
pom.xml , but the truth is I can not read the value of property
"maven.repo.local" in pom.xml.   So this confusing me much.

Best regards!

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