RE: Issue-wise Crowdfunding platform for Maven

2012-07-15 Thread Markus KARG
Would be good if each funding item would contain a link to the particular
item in the project's tracker, so it is easier to learn about the issue's
details.

 -Original Message-
 From: tony Tony [mailto:t...@freedomsponsors.com]
 Sent: Freitag, 13. Juli 2012 22:38
 To: users@maven.apache.org; d...@maven.apache.org
 Subject: Issue-wise Crowdfunding platform for Maven
 
 Hi all,
 
 I have set up a website where people can place small money bounties for
 open issues on Maven JIRA http://jira.codehaus.org/browse/MNG (or
 Jenkins, or Hibernate, or whatever).
 
 So far it's only got two real offers - and one of them I placed myself
 (JENKINS-9216:
 Make OpenID work with Google Apps
 accountshttp://www.freedomsponsors.com/core/issue/11/make-openid-work-
 with-google-apps-accounts
 ),
 but I really think that as it gets more popular, such a tool can have a
 big positive impact on a lot of open source projects, especially
 popular ones like Maven.
 If you think so too, I welcome you to use it --
 www.freedomsponsors.com :-)
 
 Cheers
 Tony Lâmpada


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



Re: How to change java compiler warning to error

2012-07-15 Thread dror
Hi Curtis,
first, thanks a lot for your response. But, i already meet and try this
solution, and it doesnt satisfied enough.
Xlint flags dont cover all my warnings that i wish to change to error. I
have other warnings that dont hava a suitable Xlint flag. There is a way to
import a compiler's preferences file which includes my settings? there is a
another solution? 
thanks a lot, Dror.

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-change-java-compiler-warning-to-error-tp5713975p5714146.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: Issue-wise Crowdfunding platform for Maven

2012-07-15 Thread Markus KARG
Just found it... It's a bit small and hidden due to the black colour.

 -Original Message-
 From: Markus KARG [mailto:mar...@headcrashing.eu]
 Sent: Sonntag, 15. Juli 2012 09:17
 To: 'Maven Users List'; d...@maven.apache.org
 Subject: RE: Issue-wise Crowdfunding platform for Maven
 
 Would be good if each funding item would contain a link to the
 particular item in the project's tracker, so it is easier to learn
 about the issue's details.
 
  -Original Message-
  From: tony Tony [mailto:t...@freedomsponsors.com]
  Sent: Freitag, 13. Juli 2012 22:38
  To: users@maven.apache.org; d...@maven.apache.org
  Subject: Issue-wise Crowdfunding platform for Maven
 
  Hi all,
 
  I have set up a website where people can place small money bounties
  for open issues on Maven JIRA http://jira.codehaus.org/browse/MNG
  (or Jenkins, or Hibernate, or whatever).
 
  So far it's only got two real offers - and one of them I placed
 myself
  (JENKINS-9216:
  Make OpenID work with Google Apps
  accountshttp://www.freedomsponsors.com/core/issue/11/make-openid-
 work
  -
  with-google-apps-accounts
  ),
  but I really think that as it gets more popular, such a tool can have
  a big positive impact on a lot of open source projects, especially
  popular ones like Maven.
  If you think so too, I welcome you to use it --
  www.freedomsponsors.com :-)
 
  Cheers
  Tony Lâmpada
 
 
 -
 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



Saxon xinclude?

2012-07-15 Thread org.apache.maven.user
Hello.

I have the following:

$ find src/
src
src/main
src/main/txt
src/main/txt/file.txt
src/main/xsl
src/main/xsl/main.xsl
src/main/xml
src/main/xml/main.xml

$ cat src/main/txt/file.txt
HELLO

$ cat src/main/xsl/main.xsl
?xml version=1.0 encoding=UTF-8?
xt:stylesheet version=2.0
  xmlns=http://www.w3.org/1999/xhtml;
  xmlns:xt=http://www.w3.org/1999/XSL/Transform;

  xt:template match=test
div
  xt:apply-templates select=p/
/div
  /xt:template

  xt:template match=p
pxt:value-of select=.//p
  /xt:template

/xt:stylesheet

$ cat src/main/xml/main.xml
?xml version=1.0 encoding=UTF-8?
test xmlns:xi=http://www.w3.org/2001/XInclude;
  pxi:include href=src/main/txt/file.txt parse=text//p
/test

I have the following POM:

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
  http://maven.apache.org/xsd/maven-4.0.0.xsd;

  modelVersion4.0.0/modelVersion
  groupIdcom.io7m.test/groupId
  artifactIdio7m-test/artifactId
  version1.0.0/version
  packagingjar/packaging
  nameio7m-test/name
  descriptionTest package/description

  properties
project.build.sourceEncodingUTF-8/project.build.sourceEncoding
project.reporting.outputEncodingUTF-8/project.reporting.outputEncoding
  /properties

  build
plugins
  !-- Validate and transform XML documentation --
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdxml-maven-plugin/artifactId
version1.0/version
executions
  execution
goals
  goaltransform/goal
/goals
  /execution
/executions
configuration
  transformationSets
transformationSet
  dirsrc/main/xml/dir
  stylesheetsrc/main/xsl/main.xsl/stylesheet
/transformationSet
  /transformationSets
/configuration
dependencies
  dependency
groupIdnet.sf.saxon/groupId
artifactIdSaxon-HE/artifactId
version9.4/version
  /dependency
/dependencies
  /plugin
/plugins
  /build
/project

$ mvn clean verify

[INFO] Scanning for projects...
[INFO] 
[INFO]

[INFO] Building io7m-test 1.0.0 [INFO]

[INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
io7m-test --- [INFO] 
[INFO] --- xml-maven-plugin:1.0:transform (default) @ io7m-test ---
[INFO] Transforming
file: /home/m0/doc/dev/2012/07/xmltest/src/main/xml/main.xml [INFO]
Transformed 1 file(s). [INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
io7m-test --- [debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing
resourceDirectory /home/m0/doc/dev/2012/07/xmltest/src/main/resources
[INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile)
@ io7m-test --- [INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources
(default-testResources) @ io7m-test --- [debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing
resourceDirectory /home/m0/doc/dev/2012/07/xmltest/src/test/resources
[INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile
(default-testCompile) @ io7m-test --- [INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ io7m-test
--- [INFO] No tests to run.
[INFO] Surefire report
directory: /home/m0/doc/dev/2012/07/xmltest/target/surefire-reports

---
 T E S T S
---

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ io7m-test ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building
jar: /home/m0/doc/dev/2012/07/xmltest/target/io7m-test-1.0.0.jar [INFO]

[INFO] BUILD SUCCESS [INFO]

[INFO] Total time: 2.530s [INFO] Finished at: Sun Jul 15 14:29:51 GMT
2012 [INFO] Final Memory: 9M/149M
[INFO]


Then:

$ cat target/generated-resources/xml/xslt/main.xml
?xml version=1.0 encoding=UTF-8?div
xmlns=http://www.w3.org/1999/xhtml;p//div

At first, I wasn't sure if it was just that the transformation wasn't
occuring in the directory I expected (and that the could not open
file.txt error was being suppressed). However, having tried every
possible alternate path for file.txt in the xi:include element, I'm
convinced that XML includes are simply not 

Re: How to change java compiler warning to error

2012-07-15 Thread Wayne Fay
 Xlint flags dont cover all my warnings that i wish to change to error. I
 have other warnings that dont hava a suitable Xlint flag. There is a way to
 import a compiler's preferences file which includes my settings? there is a
 another solution?

The only thing that occurs to me is to tell Maven to use JDT as your
compiler rather than javac, and then somehow tell JDT to fail on those
warnings.

PS- Google can tell you how to do this with maven jdt compiler as
the search phrase.

Wayne

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



Re: Issue-wise Crowdfunding platform for Maven

2012-07-15 Thread Tony Lâmpada
Yup, we should make it more visible. Got it :-)
Thanks

On 15 July 2012 04:48, Markus KARG mar...@headcrashing.eu wrote:

 Just found it... It's a bit small and hidden due to the black colour.

  -Original Message-
  From: Markus KARG [mailto:mar...@headcrashing.eu]
  Sent: Sonntag, 15. Juli 2012 09:17
  To: 'Maven Users List'; d...@maven.apache.org
  Subject: RE: Issue-wise Crowdfunding platform for Maven
 
  Would be good if each funding item would contain a link to the
  particular item in the project's tracker, so it is easier to learn
  about the issue's details.
 
   -Original Message-
   From: tony Tony [mailto:t...@freedomsponsors.com]
   Sent: Freitag, 13. Juli 2012 22:38
   To: users@maven.apache.org; d...@maven.apache.org
   Subject: Issue-wise Crowdfunding platform for Maven
  
   Hi all,
  
   I have set up a website where people can place small money bounties
   for open issues on Maven JIRA http://jira.codehaus.org/browse/MNG
   (or Jenkins, or Hibernate, or whatever).
  
   So far it's only got two real offers - and one of them I placed
  myself
   (JENKINS-9216:
   Make OpenID work with Google Apps
   accountshttp://www.freedomsponsors.com/core/issue/11/make-openid-
  work
   -
   with-google-apps-accounts
   ),
   but I really think that as it gets more popular, such a tool can have
   a big positive impact on a lot of open source projects, especially
   popular ones like Maven.
   If you think so too, I welcome you to use it --
   www.freedomsponsors.com :-)
  
   Cheers
   Tony Lâmpada
 
 
  -
  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




problems compiling osgi-4.3 bundles using maven

2012-07-15 Thread Michał Zegan

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hello.

I have a problem using maven for compiling osgi bundles.
I have a mud game server project based on osgi.
It's startup application and modules use features specific to osgi
release 4.3, like generic types and the adapt method of Framework and
Bundle classes.
Now, the problem:
Including the newest org.apache.felix.framework, org.apache.felix.log
and org.apache.felix.utils artifacts as dependencies brought up
transitive dependencies org.osgi:org.osgi.core and
org.osgi:org.osgi.compendium, but it's version is 4.1.0.
I have used the dependencyManagement thing to override the version to 4.3.0.
The problem was that it didn't help very much.
Even that felix had 4.3 api in itself and I had included osgi 4.3
artifacts that actually duplicate api classes, maven fails to compile
the project, the compiler says that it can't find symbols in the line
that uses osgi 4.3 features like adapt, so it seems like it somehow
tried to compile the project against osgi 4.1.
Running mvn with -X didn't report 4.1 in the class path, only 4.3 was
reported.
Also, if I tried to use eclipse to compile the module's classes, they
were compiled successfully and then using maven to complete the build
procedure by executing the package or install phase was successful.
What is the problem?
Ahh, and why it says cannot find symbol but it does not say what symbol/etc?
Like why does it only display one line from the compiler output?
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.19 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
iQIcBAEBAgAGBQJQAyZPAAoJEIm05B02l8E6sn8P+wVUzyRbCkikX36fjNUpC+G6
Q6pL7DHvJ2lb8jmNCAquqhKtYVOQ5lp/2ZoVG5OX9MUKCJvK/vZ+GQ4/EqAL6pS4
hIGu0eT+xYa/5SHoKTO9RWTOoV0Hvj8crw8jII3Seo7V1NdXYTf7xYnkMKkuskGn
u0YMUatd9EsVmDJrWt/uUzDuDq+GNJi7iZlo6Q6kKzzNqX2roxvUdFR0qZ/jVuhi
4wESkLJQcYKAzZZSHyidlGcZhTt2twWl2AXg0f1DiU98XY9IltS0zmRH700kQL/5
kU7MFZE3gF7uDfnPyO8SjIJcekLAsvFPONKv0uVeD87joxnn7wTUzU08317YNI1A
zN4QGFaE1Yo893wFD3F21mgW6vh6ha+ZJ4HQ5rIUsdGvPvxmUEPucgWywWZW2n0K
wbhLI/jSh0o3XJkCQS01BXTVZNgWrStI6m53m0lbW/GwFgI1/KqPfLXJeYWTCjKF
iQbQSvd9gaQj3tFFgiX9niM/eeZb5B9dDd83V9u9ndE1LpQVTWItKP1Ya0Tl8PVm
Bop9VoOzPICVNG/RKSrNOn/cPGoUldAy+ib/qVHtGJZhaWoAI5WABh+OgzVPbGx+
uYMiPCTKzpC6gc9PeUmye+KJGJ/TjRCDV/Foo6wI7qkCQvULnFIiHbBlyf5y1CPj
hArZCKGTGr7LxjSxhbZb
=6HEe
-END PGP SIGNATURE-


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



[ANN] Maven Enforcer Plugin 1.1.1 Released

2012-07-15 Thread Barrie Treloar
The Maven team is pleased to announce the release of the Maven
Enforcer Plugin, version 1.1.1

This plugin provides goals to control certain environmental
constraints such as Maven version, JDK version and OS family along
with many more standard rules and user created rules.

http://maven.apache.org/plugins/maven-enforcer-plugin/

You should specify the version in your project's plugin configuration:

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-enforcer-plugin/artifactId
  version1.1.1/version
/plugin

Release Notes - Maven 2.x Enforcer Plugin - Version 1.1.1

** Bug
* [MENFORCER-117] - Custom Packaging with executions fails with
ArrayIndexOutOfBoundsException in RequirePluginVersions.java:702

** Task
* [MENFORCER-132] - Add missing rules to standard rules page and
reorder them

Enjoy,

-The Maven team

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



Re: problems compiling osgi-4.3 bundles using maven

2012-07-15 Thread Wayne Fay
 artifacts that actually duplicate api classes, maven fails to compile
 the project, the compiler says that it can't find symbols in the line
 that uses osgi 4.3 features like adapt, so it seems like it somehow
 tried to compile the project against osgi 4.1.

Can you provide specific error messages?

 Running mvn with -X didn't report 4.1 in the class path, only 4.3 was
 reported.

Can you post this mvn -X output to Gist or Pastebin?

 Also, if I tried to use eclipse to compile the module's classes, they
 were compiled successfully and then using maven to complete the build
 procedure by executing the package or install phase was successful.
 What is the problem?

No clue. You have not provided sufficient information for anyone to
analyze to provide the answer.

 Ahh, and why it says cannot find symbol but it does not say what symbol/etc?

I have never seen this myself. Can you post an example? Ideally you
could construct a simple/basic project which uses open source osgi
libraries and post it at Github or post a zip file somewhere.

 Like why does it only display one line from the compiler output?

Can you provide a specific example of this one line from the compiler
output that you are talking about?

Wayne

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