Re: Missing key cacheFile, checkstyle plugin, custom check class

2012-04-13 Thread Joachim Van der Auwera

Could it be that you are empacted by

http://jira.codehaus.org/browse/MCHECKSTYLE-142

I guess not all maven properties are accessible in the checkstyle 
configuration. Depending on how you defined the cacheFile or 
checkstyle.cache.file properties, they may not be visible to checkstyle.

Kind regards,
Joachim


On 12-04-12 04:59, Wayne Fay wrote:

Disclaimer: I don't use Checkstyle as a primary component in my builds.


property name=cacheFile value=${checkstyle.cache.file}/
property name=cacheFile value=${cacheFile}/

Did you try leaving cacheFile out entirely? Did you try setting
value=? Samples at the Checkstyle site show
value=target/cachefile, did you try that?


not sure why the plugin is complaining about it. Appreciate any thoughts
before I opt for looking into the plugin source code.

...

Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: missing
key 'cacheFile' in TreeWalker
at
com.puppycrawl.tools.checkstyle.DefaultConfiguration.getAttribute(DefaultConfiguration.java:74)
at
org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor.getConfiguration(DefaultCheckstyleExecutor.java:270)

I doubt looking at the Maven checkstyle plugin source code will be
much help. The stacktrace shows a root cause in
com.puppycrawl.tools.checkstyle which I assume is part of Checkstyle
itself. And I further assume the plugin simply calls out to Checkstyle
and provides configuration etc so it can run properly (which is how
most plugins work, thin wrappers around a larger codebase to integrate
the tool into Maven's build process).

If you're looking at any source code, look at the Checkstyle source
itself specifically DefaultConfiguration.getAttribute() line 74. (But
you'll need to figure out which version of the binary is being used.)

You probably need to take this email over to the Checkstyle support
channels directly since their code is throwing this exception, not
Maven and not the plugin.

Wayne

-
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



RE: sync to central and patched 3rd party artifacts

2012-04-13 Thread Nord, James
  I was wondering how things are supposed to work when you have a sync
  to central but you relly on a patched version of a 3rd party artifact.
 
  For example lets assume my library X depends on apache common io, and
  the current version has a bug that has been sitting around with a path
  for a while and not making it into any release.

 I would do everything that I could to get this patch applied by the dev team 
 and
 have another release produced by them with this fix included. Can you tell us
 the specific JIRA number which you are referencing?

Commons-io was just an example - I could just have easily said foobarwhizzylib.

Turns out the OSS product I was referening to actually deploys the patched libs 
under its own GAV which I missed when looking at it - so this isn’t actually an 
issue to me anymore.

 Otherwise you would follow these directions:
 https://docs.sonatype.org/display/Repository/Uploading+3rd-
 party+Artifacts+to+The+Central+Repository


**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**


Re: sync to central and patched 3rd party artifacts

2012-04-13 Thread Olivier Lamy
Hello,
Did you know those artifacts
http://repo.maven.apache.org/maven2/com/madgag/org.eclipse.jgit-parent/
There are probably some others samples :-)


2012/4/13 Nord, James jn...@nds.com:
  I was wondering how things are supposed to work when you have a sync
  to central but you relly on a patched version of a 3rd party artifact.
 
  For example lets assume my library X depends on apache common io, and
  the current version has a bug that has been sitting around with a path
  for a while and not making it into any release.

 I would do everything that I could to get this patch applied by the dev team 
 and
 have another release produced by them with this fix included. Can you tell us
 the specific JIRA number which you are referencing?

 Commons-io was just an example - I could just have easily said 
 foobarwhizzylib.

 Turns out the OSS product I was referening to actually deploys the patched 
 libs under its own GAV which I missed when looking at it - so this isn’t 
 actually an issue to me anymore.

 Otherwise you would follow these directions:
 https://docs.sonatype.org/display/Repository/Uploading+3rd-
 party+Artifacts+to+The+Central+Repository


 **
 This message is confidential and intended only for the addressee. If you have 
 received this message in error, please immediately notify the 
 postmas...@nds.com and delete it from your system as well as any copies. The 
 content of e-mails as well as traffic data may be monitored by NDS for 
 employment and security purposes. To protect the environment please do not 
 print this e-mail unless necessary.

 NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 
 4EX, United Kingdom. A company registered in England and Wales. Registered 
 no. 3080780. VAT no. GB 603 8808 40-00
 **



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

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



Re: Missing key cacheFile, checkstyle plugin, custom check class

2012-04-13 Thread Grant Lewis
Okay, the saga continues. I opted for configuring a second POM file to
remove the dependency on the parent POM. Now the checkstyle plugin is only
configured one time. All is good with the check but I still get the
checkstyle report generated twice when I run mvn site. I turned on debug
and nothing jumped out. I also run help:effective-pm and noticed an older
version of the site plugin, 2.0-beta-7. I think the latest release for
maven 2 is 2.3. I listed my second POM file for review. It's not a major
issue but I'd like to get rid of the duplicate Checkstyle link in the HTML
report generated by site.

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

modelVersion4.0.0/modelVersion

groupIdgov.va.vba.vbms/groupId
artifactIdsecurity-analysis/artifactId
version3.0-SNAPSHOT/version
packagingpom/packaging

nameVBMS Security Analysis ${project.version}/name

properties
checkstyle.version2.9.1/checkstyle.version
/properties

build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-checkstyle-plugin/artifactId
version2.9.1/version
dependencies
dependency
groupIdcom.puppycrawl.tools/groupId
artifactIdcheckstyle/artifactId
version5.5/version
/dependency
dependency
groupIdgov.va.vba.vbms/groupId
artifactIdvbms-tools/artifactId
version3.0-SNAPSHOT/version
classifierbuild/classifier
/dependency
/dependencies
/plugin
/plugins
/build

reporting
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-checkstyle-plugin/artifactId
version${checkstyle.version}/version
configuration
configLocation
security-analysis-checkstyle.xml
/configLocation
packageNamesLocation

gov/va/vba/vbms/tools/build/vbms-checkstyle-packages.xml
/packageNamesLocation
/configuration
/plugin
/plugins
/reporting
/project

Grant

On Fri, Apr 13, 2012 at 4:12 AM, Joachim Van der Auwera joac...@progs.bewrote:

 Could it be that you are empacted by

 http://jira.codehaus.org/**browse/MCHECKSTYLE-142http://jira.codehaus.org/browse/MCHECKSTYLE-142

 I guess not all maven properties are accessible in the checkstyle
 configuration. Depending on how you defined the cacheFile or
 checkstyle.cache.file properties, they may not be visible to checkstyle.

 Kind regards,
 Joachim



 On 12-04-12 04:59, Wayne Fay wrote:

 Disclaimer: I don't use Checkstyle as a primary component in my builds.

 property name=cacheFile value=${checkstyle.cache.**file}/
property name=cacheFile value=${cacheFile}/

 Did you try leaving cacheFile out entirely? Did you try setting
 value=? Samples at the Checkstyle site show
 value=target/cachefile, did you try that?

  not sure why the plugin is complaining about it. Appreciate any thoughts
 before I opt for looking into the plugin source code.

 ...

 Caused by: com.puppycrawl.tools.**checkstyle.api.**CheckstyleException:
 missing
 key 'cacheFile' in TreeWalker
 at
 com.puppycrawl.tools.**checkstyle.**DefaultConfiguration.**getAttribute(
 **DefaultConfiguration.java:74)
 at
 org.apache.maven.plugin.**checkstyle.**DefaultCheckstyleExecutor.**
 getConfiguration(**DefaultCheckstyleExecutor.**java:270)

 I doubt looking at the Maven checkstyle plugin source code will be
 much help. The stacktrace shows a root cause in
 com.puppycrawl.tools.**checkstyle which I assume is part of Checkstyle
 itself. And I further assume the plugin simply calls out to Checkstyle
 and provides configuration etc so it can run properly (which is how
 most plugins work, thin wrappers around a larger codebase to integrate
 the tool into Maven's build process).

 If you're looking at any source code, look at the Checkstyle source
 itself specifically DefaultConfiguration.**getAttribute() line 74. (But
 you'll need to figure out which version of the binary is being used.)

 You probably need to take this email over to the Checkstyle support
 channels directly since their code is throwing this exception, not
 Maven and not the plugin.

 Wayne

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



 

Re: Missing key cacheFile, checkstyle plugin, custom check class

2012-04-13 Thread Wayne Fay
 configured one time. All is good with the check but I still get the
 checkstyle report generated twice when I run mvn site. I turned on debug
 and nothing jumped out. I also run help:effective-pm and noticed an older

Have you run mvn clean lately? Perhaps this is leftover from an old build.

Wayne

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



Re: Missing key cacheFile, checkstyle plugin, custom check class

2012-04-13 Thread Grant Lewis
I always run a clean before I run site. It's not a leftover. The duplicate
is repeatable. Whatever is causing it is inherent in my configuration or
possibly some missing markup in my pom file. I'm not trying to compile
anything, just run the checkstyle check. The check and report look good
now. The only issue is the report duplication. I pasted the log statements
during an execution. You can clearly see it run the report twice...

[INFO] [site:site {execution: default-site}]
[WARNING] No project URL defined - decoration links will not be relativized!
[INFO] Rendering site with
org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating Checkstyle report--- Maven Checkstyle Plugin 2.9.1
[WARNING] File encoding has not been set, using platform encoding MacRoman,
i.e. build is platform dependent!
[INFO]
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] Generating Checkstyle report--- Maven Checkstyle Plugin 2.9.1
[WARNING] File encoding has not been set, using platform encoding MacRoman,
i.e. build is platform dependent!
[INFO]
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] Generating Plugin Management report--- Maven Project Info
Reports Plugin 2.1
[INFO] Generating Mailing Lists report--- Maven Project Info Reports
Plugin 2.1
[INFO] Generating Continuous Integration report--- Maven Project Info
Reports Plugin 2.1
[INFO] Generating Project License report--- Maven Project Info
Reports Plugin 2.1
[INFO] Generating Project Team report--- Maven Project Info Reports
Plugin 2.1
[INFO] Generating Source Repository report--- Maven Project Info
Reports Plugin 2.1
[INFO] Generating About report--- Maven Project Info Reports Plugin
2.1
[INFO] Generating Issue Tracking report--- Maven Project Info Reports
Plugin 2.1
[INFO] Generating Project Summary report--- Maven Project Info
Reports Plugin 2.1
[INFO] Generating Project Plugins report--- Maven Project Info
Reports Plugin 2.1
[INFO] Generating Dependencies report--- Maven Project Info Reports
Plugin 2.1
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 30 seconds
[INFO] Finished at: Fri Apr 13 10:12:27 EDT 2012
[INFO] Final Memory: 46M/138M

On Fri, Apr 13, 2012 at 10:15 AM, Wayne Fay wayne...@gmail.com wrote:

  configured one time. All is good with the check but I still get the
  checkstyle report generated twice when I run mvn site. I turned on debug
  and nothing jumped out. I also run help:effective-pm and noticed an older

 Have you run mvn clean lately? Perhaps this is leftover from an old
 build.

 Wayne

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




Re: How to pass a custom jar file to maven jarsigner plugin for signing

2012-04-13 Thread John Patrick
If you don't need ABC.jar a work around hack until you find the proper
solution might be to use antrun at the right phase and move
ABC-small.jar to ABC.jar.

On 13 April 2012 15:42, Shyamsundar Purkayastha
s.purkayas...@airtelmail.in wrote:
 I have a maven build configuration where I do the following steps

 1) Compile and build the jar file (ABC.jar) using the maven assembly plugin

 2) Run proguard using maven-proguard plugin to shrink and obfuscate the jar
 file to get a resultant file as ABC-small.jar

 3) Run the maven jarsigner plugin to sign the final jar ABC-small.jar

 The problem is that the jarsigner plugin always picks the initial ABC.jar
 file generated from maven-assembly instead of ABC-small.jar generated from
 maven-proguard plugin.

 How do I tell jarsigner plugin to pick the ABC-small.jar ?

 Here is my maven-jarsigner config in pom file

 plugin

    artifactIdmaven-jarsigner-plugin/artifactId

    version1.2/version

    executions

        execution

            idsign/id

            goals

                goalsign/goal



            /goals

        /execution

    /executions

    configuration

        !--  storetypepkcs12/storetype --

        keystorecert\keystore/keystore

        aliasapplet/alias

        storepassapplet/storepass

        keypassapplet/keypass

    /configuration

 /plugin



 Thanks in advance


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



Re: Missing key cacheFile, checkstyle plugin, custom check class

2012-04-13 Thread Wayne Fay
 anything, just run the checkstyle check. The check and report look good
 now. The only issue is the report duplication. I pasted the log statements

Are you using Maven3? If so, you need to change the pom configuration a bit:
http://www.wakaleo.com/blog/292-site-generation-in-maven-3

If this is M2, we probably need specific help from someone who has
more knowledge about site/reports than I do. I just don't use the
generated site much myself.

Wayne

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



Which in-container test framework do you use?

2012-04-13 Thread Lucas Persson


  
  
Hi

I am about to migrate some Ant build system to Maven and have run
into the JUnitEE ant task. I can not really find any up to date
corresponding plugin for Maven.

So what do people use now days to test servlets, ejb, JMS etc in
the JEE containers?

- JUnitEE - seems to be dead
- Cactus - seems also to be dead
- Arquillian - the rising star?
- Jeeunit - only embedded containers
??

Requirement wise I really only need a JUnit runner on the server.
The simple web GUI that JUnitEE has is also really nice and simple
to use.

Any input appreciated.

Thanks
Lucas

-- 
  
  Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile:
+46730946656

Oracle Communications Platform
ORACLE Sweden | Sder Mlarstrand 29, 6 tr | 118 25 Stockholm
  
  Oracle Svenska AB, Kronborgsgrnd 17, S-164 28
KISTA, reg.no. 556254-6746
  
  
  Oracle is committed to developing practices and
products that help protect the environment
  
  

  



Re: Which in-container test framework do you use?

2012-04-13 Thread John Patrick
I moved from Cactus and testing the running container, to using dependency
injection type patterns and testing them independently and/or with mock
objects.

i.e. Servlet is just a wrapper to a pojo of business logic, ejb get helpers
and other pojo injected, so everything can be tested separately.

Then use selenium hq to test the web tier, but still not found something
for testing jms or other jee components within a running container.

On 13 April 2012 16:03, Lucas Persson lucas.pers...@oracle.com wrote:

 **
 Hi

 I am about to migrate some Ant build system to Maven and have run into the
 JUnitEE ant task. I can not really find any up to date corresponding plugin
 for Maven.

 So what do people use now days  to test servlets, ejb, JMS etc in the JEE
 containers?

 - JUnitEE  - seems to be dead
 - Cactus  - seems also to be dead
 - Arquillian - the rising star?
 - Jeeunit - only embedded containers
 ??

 Requirement wise I really only need a JUnit runner on the server. The
 simple web GUI that JUnitEE has is also really nice and simple to use.

 Any input appreciated.

 Thanks
 Lucas

 --
 [image: Oracle] http://www.oracle.com
 Lucas Persson | Principal Member of Technical Staff
 Phone: +4684773644 | | | Mobile: +46730946656
 Oracle Communications Platform
 ORACLE Sweden | Söder Mälarstrand 29, 6 tr | 118 25 Stockholm

 Oracle Svenska AB, Kronborgsgränd 17, S-164 28 KISTA, reg.no. 556254-6746
 [image: Green Oracle] http://www.oracle.com/commitment Oracle is
 committed to developing practices and products that help protect the
 environment



Re: Missing key cacheFile, checkstyle plugin, custom check class

2012-04-13 Thread Grant Lewis
It's maven 2.2.1. I'm not overly familiar with site myself. I know maven
well but not the reporting plugins as much. I'm guessing a bug in the
checkstyle plugin but I can't say for sure. I dropped down to version 2.6
of the plugin, same version defined in our parent pom and the duplicate
report problem went away.

Grant

On Fri, Apr 13, 2012 at 10:59 AM, Wayne Fay wayne...@gmail.com wrote:

  anything, just run the checkstyle check. The check and report look good
  now. The only issue is the report duplication. I pasted the log
 statements

 Are you using Maven3? If so, you need to change the pom configuration a
 bit:
 http://www.wakaleo.com/blog/292-site-generation-in-maven-3

 If this is M2, we probably need specific help from someone who has
 more knowledge about site/reports than I do. I just don't use the
 generated site much myself.

 Wayne

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




Re: Which in-container test framework do you use?

2012-04-13 Thread Stephen Connolly
I use OpenEJB and just fire up a container per test or per test class

On 13 April 2012 16:03, Lucas Persson lucas.pers...@oracle.com wrote:

 **
 Hi

 I am about to migrate some Ant build system to Maven and have run into the
 JUnitEE ant task. I can not really find any up to date corresponding plugin
 for Maven.

 So what do people use now days  to test servlets, ejb, JMS etc in the JEE
 containers?

 - JUnitEE  - seems to be dead
 - Cactus  - seems also to be dead
 - Arquillian - the rising star?
 - Jeeunit - only embedded containers
 ??

 Requirement wise I really only need a JUnit runner on the server. The
 simple web GUI that JUnitEE has is also really nice and simple to use.

 Any input appreciated.

 Thanks
 Lucas

 --
 [image: Oracle] http://www.oracle.com
 Lucas Persson | Principal Member of Technical Staff
 Phone: +4684773644 | | | Mobile: +46730946656
 Oracle Communications Platform
 ORACLE Sweden | Söder Mälarstrand 29, 6 tr | 118 25 Stockholm

 Oracle Svenska AB, Kronborgsgränd 17, S-164 28 KISTA, reg.no. 556254-6746
 [image: Green Oracle] http://www.oracle.com/commitment Oracle is
 committed to developing practices and products that help protect the
 environment



Simple filtering question

2012-04-13 Thread Maven User
Hi all -

I'm struggling a bit with what seems like a really simple/silly thing.

I have to use an explicit configuration of the maven-resources-plugin to
copy and filter some resources.

What I'm seeing, regardless of packaging type, is if you explicitly
configure this plugin, it won't expand ANY properties within the file.

For grins, I took the same file I wanted to filter, put it in
src/main/resources, added a resources stanza and boom - everything is
properly filtered.

Here is the explicit plugin configuration I'm using - anything stand out?

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-resources-plugin/artifactId
version2.5/version
executions
execution
iddefault-resources/id
phasevalidate/phase
goals
goalresources/goal
/goals
configuration
outputDirectory./outputDirectory
overwritetrue/overwrite
resources
resource
filteringtrue/filtering
includes
includefoo.txt/include
/includes
/resource
/resources
/configuration
/execution
/executions
/plugin

I tried several phases with no luck, so it's not that either.  In the
ultimate configuration, this will go into an aggregate pom with packaging
of pom - so this is why I need to explicitly configure this plugin.

Suggestions?


Possible to execute Maven Goals from API level calls?

2012-04-13 Thread Tobias Maslowski

Hello,
It might be silly, but I was wondering if it was possible to use maven 
goals from api. I'ld like to do something like this:


Maven mvn = new Maven(mySettings.xml);
MavenCoordinates coords = new MavenCoordinates(my.group.id, 
ArtifactID, 1.0.0-SNAPSHOT);

try {
Artifact dep = mvn.load(coords);
dep.loadClasses(Thread.getContextClassLoader());

Class.forName(MyClassFromArtifact).newInstance();
...
} catch (CoordinatesNotResolvable e) {...}

Can anyone tell me if it's possible (and reasonable) to do so? If so, 
where can I have a look at the API?


Thank you so much in advance.

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



Re: Simple filtering question

2012-04-13 Thread Maven User
Doesn't seem that different, but this does work.

Can't use includes?

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-resources-plugin/artifactId
version2.5/version
executions
execution
idblah-resources/id
phaseprocess-resources/phase
goals
goalcopy-resources/goal
/goals
configuration
outputDirectory./outputDirectory
overwritetrue/overwrite
resources
resource

directorysrc/main/resources/directory
filteringtrue/filtering
/resource
/resources
/configuration
/execution
/executions
/plugin

On Fri, Apr 13, 2012 at 12:57 PM, Maven User maven.2.u...@gmail.com wrote:

 Hi all -

 I'm struggling a bit with what seems like a really simple/silly thing.

 I have to use an explicit configuration of the maven-resources-plugin to
 copy and filter some resources.

 What I'm seeing, regardless of packaging type, is if you explicitly
 configure this plugin, it won't expand ANY properties within the file.

 For grins, I took the same file I wanted to filter, put it in
 src/main/resources, added a resources stanza and boom - everything is
 properly filtered.

 Here is the explicit plugin configuration I'm using - anything stand out?

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-resources-plugin/artifactId
 version2.5/version
 executions
 execution
 iddefault-resources/id
 phasevalidate/phase
 goals
 goalresources/goal
 /goals
 configuration
 outputDirectory./outputDirectory
 overwritetrue/overwrite
 resources
 resource
 filteringtrue/filtering
 includes
 includefoo.txt/include
 /includes
 /resource
 /resources
 /configuration
 /execution
 /executions
 /plugin

 I tried several phases with no luck, so it's not that either.  In the
 ultimate configuration, this will go into an aggregate pom with packaging
 of pom - so this is why I need to explicitly configure this plugin.

 Suggestions?




Re: Missing key cacheFile, checkstyle plugin, custom check class

2012-04-13 Thread Robert Scholte
Since checkstyle-2.8 there's a second report: the  
checkstyle-aggregator-report[1]
This causes the the duplicate loglines for the checkstyle-plugin, one for  
each report.
My intuition would say that should always be only 1 report: the  
checkstyle-aggregator is for pom-packaged projects


Robert

[1]  
http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-aggregate-mojo.html


Op Fri, 13 Apr 2012 16:23:01 +0200 schreef Grant Lewis  
ukchuckt...@gmail.com:


I always run a clean before I run site. It's not a leftover. The  
duplicate

is repeatable. Whatever is causing it is inherent in my configuration or
possibly some missing markup in my pom file. I'm not trying to compile
anything, just run the checkstyle check. The check and report look good
now. The only issue is the report duplication. I pasted the log  
statements

during an execution. You can clearly see it run the report twice...

[INFO] [site:site {execution: default-site}]
[WARNING] No project URL defined - decoration links will not be  
relativized!

[INFO] Rendering site with
org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating Checkstyle report--- Maven Checkstyle Plugin  
2.9.1
[WARNING] File encoding has not been set, using platform encoding  
MacRoman,

i.e. build is platform dependent!
[INFO]
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] Generating Checkstyle report--- Maven Checkstyle Plugin  
2.9.1
[WARNING] File encoding has not been set, using platform encoding  
MacRoman,

i.e. build is platform dependent!
[INFO]
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] Generating Plugin Management report--- Maven Project Info
Reports Plugin 2.1
[INFO] Generating Mailing Lists report--- Maven Project Info  
Reports

Plugin 2.1
[INFO] Generating Continuous Integration report--- Maven Project  
Info

Reports Plugin 2.1
[INFO] Generating Project License report--- Maven Project Info
Reports Plugin 2.1
[INFO] Generating Project Team report--- Maven Project Info Reports
Plugin 2.1
[INFO] Generating Source Repository report--- Maven Project Info
Reports Plugin 2.1
[INFO] Generating About report--- Maven Project Info Reports Plugin
2.1
[INFO] Generating Issue Tracking report--- Maven Project Info  
Reports

Plugin 2.1
[INFO] Generating Project Summary report--- Maven Project Info
Reports Plugin 2.1
[INFO] Generating Project Plugins report--- Maven Project Info
Reports Plugin 2.1
[INFO] Generating Dependencies report--- Maven Project Info Reports
Plugin 2.1
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 30 seconds
[INFO] Finished at: Fri Apr 13 10:12:27 EDT 2012
[INFO] Final Memory: 46M/138M

On Fri, Apr 13, 2012 at 10:15 AM, Wayne Fay wayne...@gmail.com wrote:


 configured one time. All is good with the check but I still get the
 checkstyle report generated twice when I run mvn site. I turned on  
debug
 and nothing jumped out. I also run help:effective-pm and noticed an  
older


Have you run mvn clean lately? Perhaps this is leftover from an old
build.

Wayne

-
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



Re: Possible to execute Maven Goals from API level calls?

2012-04-13 Thread Wayne Fay
 It might be silly, but I was wondering if it was possible to use maven goals
 from api. I'ld like to do something like this:
...
 Can anyone tell me if it's possible (and reasonable) to do so? If so, where
 can I have a look at the API?

If you are just wanting to access your Maven Artifacts, then you
should look at the Aether API.

Per JvZ [1]:
Aether handles the artifact resolution aspect as well. Processing
artifact metadata, resolving conflicts, providing pluggable transport,
and retrieving artifacts. A full repository API.

[1] http://www.sonatype.com/people/2010/08/introducing-aether/

Wayne

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



Re: Simple filtering question

2012-04-13 Thread Wayne Fay
 What I'm seeing, regardless of packaging type, is if you explicitly
 configure this plugin, it won't expand ANY properties within the file.

I doubt this is what is going on. Lots of people use filters with
various configurations applied.

 For grins, I took the same file I wanted to filter, put it in
 src/main/resources, added a resources stanza and boom - everything is
 properly filtered.

This just tells me that your original configuration did not properly
define the resource you were wanting to filter, so Maven could not
find it, so it did not filter it.

Did you try include**/foo.txt/include? Tell us what else you did try so far.

Wayne

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



Why doesn't Browse or Search find my artificts?

2012-04-13 Thread Jeff
Using Archiva 1.3.5 currently

In ramping up my Maven/Archiva processes and adding new projects, I've been
doing more releases and new SNAPSHOT builds and though the Jenkins Maven
Release build process says SUCCESS, the Browse nor Search functionality
from the WebUI shows those new artifacts, even from a couple of days ago.

In a recent reponse to another question of mine, I became aware of the
direct repository URL's and I can see that the artifacts really are there
but still does not show up in the Browse or Search features.

I've kicked off repository scanning and such but I don't see them listed
still (thought I've only waited about 1 hour).

What causes this disconnect between actual artifacts and the and how do I
fix it?

-- 
Jeff Vincent
predato...@gmail.com
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
I ♥ DropBox http://db.tt/9O6LfBX !!


Re: Why doesn't Browse or Search find my artificts?

2012-04-13 Thread Olivier Lamy
Hello Jeff,
For questions regarding Archiva please use Archiva mailing lists.

2012/4/13 Jeff predato...@gmail.com:
 Using Archiva 1.3.5 currently

 In ramping up my Maven/Archiva processes and adding new projects, I've been
 doing more releases and new SNAPSHOT builds and though the Jenkins Maven
 Release build process says SUCCESS, the Browse nor Search functionality
 from the WebUI shows those new artifacts, even from a couple of days ago.

 In a recent reponse to another question of mine, I became aware of the
 direct repository URL's and I can see that the artifacts really are there
 but still does not show up in the Browse or Search features.

 I've kicked off repository scanning and such but I don't see them listed
 still (thought I've only waited about 1 hour).

 What causes this disconnect between actual artifacts and the and how do I
 fix it?

 --
 Jeff Vincent
 predato...@gmail.com
 See my LinkedIn profile at:
 http://www.linkedin.com/in/rjeffreyvincent
 I ♥ DropBox http://db.tt/9O6LfBX !!



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

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



Re: Possible to execute Maven Goals from API level calls?

2012-04-13 Thread tobias maslowski
Thank you so much! This is pretty much exactly what I had in mind, but
could not find :-)

Am 13. April 2012 22:57 schrieb Wayne Fay wayne...@gmail.com:

  It might be silly, but I was wondering if it was possible to use maven
 goals
  from api. I'ld like to do something like this:
 ...
  Can anyone tell me if it's possible (and reasonable) to do so? If so,
 where
  can I have a look at the API?

 If you are just wanting to access your Maven Artifacts, then you
 should look at the Aether API.

 Per JvZ [1]:
 Aether handles the artifact resolution aspect as well. Processing
 artifact metadata, resolving conflicts, providing pluggable transport,
 and retrieving artifacts. A full repository API.

 [1] http://www.sonatype.com/people/2010/08/introducing-aether/

 Wayne

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




if condition in pom.xml

2012-04-13 Thread wzhao6898
Hi there,

Is there a way for me configure maven-war-plugin (or any plugin in general)
to execute conditionally?
e.g.: I want to configure to exclude a js directory if property notExclude
set to false, and skip if property notExclude set to true:

plugin
artifactIdmaven-war-plugin/artifactId
configuration
warSourceExcludes**/external/dojo/**/*.js/warSourceExcludes
/configuration
/plugin

Thanks,

David

--
View this message in context: 
http://maven.40175.n5.nabble.com/if-condition-in-pom-xml-tp5639737p5639737.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: if condition in pom.xml

2012-04-13 Thread Olivier Lamy
You can use profiles and configure the plugin with your values in each profile.

2012/4/14 wzhao6898 wzhao6...@gmail.com:
 Hi there,

 Is there a way for me configure maven-war-plugin (or any plugin in general)
 to execute conditionally?
 e.g.: I want to configure to exclude a js directory if property notExclude
 set to false, and skip if property notExclude set to true:

 plugin
        artifactIdmaven-war-plugin/artifactId
        configuration
                warSourceExcludes**/external/dojo/**/*.js/warSourceExcludes
        /configuration
 /plugin

 Thanks,

 David

 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/if-condition-in-pom-xml-tp5639737p5639737.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




-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

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



Re: if condition in pom.xml

2012-04-13 Thread Jeff MAURY
Look at maven profiles

Jeff

Le samedi 14 avril 2012, wzhao6898 a écrit :

 Hi there,

 Is there a way for me configure maven-war-plugin (or any plugin in general)
 to execute conditionally?
 e.g.: I want to configure to exclude a js directory if property notExclude
 set to false, and skip if property notExclude set to true:

 plugin
artifactIdmaven-war-plugin/artifactId
configuration

  warSourceExcludes**/external/dojo/**/*.js/warSourceExcludes
/configuration
 /plugin

 Thanks,

 David

 --
 View this message in context:
 http://maven.40175.n5.nabble.com/if-condition-in-pom-xml-tp5639737p5639737.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

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



-- 
Jeff MAURY


Legacy code often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury


Need to pass munge directives to 'mvn site:site'

2012-04-13 Thread Eugene Koontz
Hi,
I'm trying to debug an error in running 'mvn site:site' within the
Apache Giraph project's top-level directory. The pom.xml is here:

https://github.com/apache/giraph/blob/trunk/pom.xml

Note that there is a default profile, hadoop_0.20.203. This profile has
the munge symbols HADOOP_NON_SASL_RPC,HADOOP_NON_INTERVERSIONED_RPC
which are used control conditional compilation. This works fine for some
goals, like mvn test and mvn verify. However, when I try to do mvn
site:site it fails due to a Java compile error:

[ERROR] COMPILATION ERROR :
[INFO] -
[ERROR]
/home/ec2-user/giraph/src/main/java/org/apache/giraph/comm/BasicRPCCommunications.java:[66,28]
cannot find symbol
symbol  : class ProtocolSignature
location: package org.apache.hadoop.ipc

This compile error would be avoided if the munge symbols mentioned above
were employed (as they are with test and verify). So the problem
seems to be to get mvn site:site to use munge.

What I need to do to the pom.xml to make this happen? Please also help
me understand what the difference is between mvn compile and mvn
compiler:compile - the former succeeds, the latter fails due to the
same compilation error.

Perhaps mvn site:site is  having a problem because it is invoking mvn
compiler:compile rather than mvn compile? (mvn -X site:site seems to
suggest so).

-Eugene

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