Multi modules and profiles

2011-08-24 Thread Stephane-3
Hello,

I have a maven project with different profiles, and I would like it to have
several modules.

One "core" module would take care of the Dao and Service layer, while
another "view" module would take care of the Presentation layer.

I have a working set of pom.xml files for the parent project and the one
child "core" module.

Before adding the other "view" module, I would like to know how I can move
some of the content of a profile from the parent pom.xml file into the
pom.xml file of the "core" module.

Here is the parent pom.xml file content (not all of it):

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/maven-v4_0_0.xsd";>
4.0.0
com.thalasoft
learnintouch
pom
1.0-SNAPSHOT
learnintouch
http://www.thalasoft.com

core


2.5.6
3.6.0.Final
src/test/java




org.apache.maven.plugins
maven-compiler-plugin

1.6
1.6
UTF-8


  
org.codehaus.mojo
sonar-maven-plugin
1.0-beta-2
  


  ${test.source.dir}


  

  mysql-test
  
src/integration/java
  
  

  src/main/filters/data-source.properties



  src/integration/resources
  true


  

  
...


Here is the pom.xml file of the "core" module:

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/maven-v4_0_0.xsd";>
4.0.0
com.thalasoft.learnintouch
learnintouch-core
jar
learnintouch-core

com.thalasoft
learnintouch
1.0-SNAPSHOT

...


Now, you can see some Dao specific setup in the parent pom.xml file, like a
data-source.properties file for example.

This should not be present in the other "view" module that will handle the
Presentation.

How to have this setup moved into the existing "core" module ?

Thanks.

Stephane

--
View this message in context: 
http://maven.40175.n5.nabble.com/Multi-modules-and-profiles-tp4732786p4732786.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: Create Archetype from Project

2011-08-24 Thread Hervé BOUTEMY
Strange

can you check the content of C:\.m2\repository\archetype-catalog.xml?
Do you find your archetype in it?

Another thing to check: when building the archetype, did you specify maven-
archetype packaging, and prepared an IT (see [1])?

Regards,

Hervé

[1] http://maven.apache.org/archetype/maven-archetype-plugin/integration-test-
mojo.html

Le mercredi 24 août 2011, Luk255 a écrit :
> Thanks for the quick response!
> 
> Yes, I tried to generate the archetype via mvn archetype:generate
> -DarchetypeCatalog=local
> 
> this is the output I'm getting:
> 
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO]
> 
> [INFO] Building Maven Default Project
> [INFO]task-segment: [archetype:generate] (aggregator-style)
> [INFO]
> 
> [INFO] Preparing archetype:generate
> [INFO] No goals needed for project - skipping
> [INFO] [archetype:generate {execution: default-cli}]
> [INFO] Generating project in Interactive mode
> [INFO] No archetype defined. Using maven-archetype-quickstart
> (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
> Choose archetype:
> Choose a number: :
> 
> When I use mvn archetype:crawl I get following output:
> 
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO]
> 
> [INFO] Building Maven Default Project
> [INFO]task-segment: [archetype:crawl] (aggregator-style)
> [INFO]
> 
> [INFO] [archetype:crawl {execution: default-cli}]
> repository C:\.m2\repository
> catalogFile null
> [INFO] Scanning
> C:\.m2\repository\at\fhj\itm\MavenProjectQuizArchetype-archetype\1.0-SNAPSH
> OT\MavenProjectQuizArchetype-archetype-1.0-SNAPSHOT.jar [INFO]  Archetype
> [at.fhj.itm:MavenProjectQuizArchetype-archetype:1.0-SNAPSHOT] defined by
> repository path
> 
> 
> So Maven obviously notices the archetype, but still I can't generate a
> project out of it.
> 
> I have to say, when I tried the batch option as in the link you provided
> me, it did work. But why is that?
> 
> Thnak you!
> 
> 
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Create-Archetype-from-Project-tp4726929p4
> 730011.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


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



Re: No output from JXR ...

2011-08-24 Thread Hervé BOUTEMY
ok, I understand now

Actual AbstractMavenReport from reporting-impl doesn't check if the report is 
external or not: it always considers "internal" reports, that is reports done 
with Doxia

I created MSHARED-204 to track the fix in the abstract class, then let every 
external reporting plugins automatically inherit from the behaviour

Regards,

Hervé

Le mercredi 24 août 2011, Benson Margulies a écrit :
> To clarify how all this happened to me today:
> 
> JXR never had a proper 'execute' method, so running JXR as a build
> plugin instead of a reportSet never worked.
> 
> When I added the aggregate goals, I somehow got turned around and made
> the IT use a combination of build plugin and reportSet. I thought I'd
> expropriated that from a javadoc integration test, but I didn't. I
> still can't figure out where I got that from.
> 
> The build execution ran second, and wrote a useless dummy report file.
> 
> In fact, the aggregate goals worked perfectly fine as reports in a
> report set all along, as per Hervé's note about Maven's own use of it.
> 
> So the net result of this is to supply JXR with the missing execute
> method so that it, in fact, works as a build plugin, and to repair the
> doc.
> 
> On Tue, Aug 23, 2011 at 7:40 PM, Barrie Treloar  wrote:
> > On Wed, Aug 24, 2011 at 7:48 AM, Hervé BOUTEMY  
wrote:
> >> as you reported, reportSets vs executions strategy has never been really
> >> defined.
> >> m-javadoc-p did extensive documentation, with both forms: it's the first
> >> plugin I know that did show the dual forms
> >> But now that everything is clearly documented, I'm convinced that we
> >> should promote reportSets
> >> But that's my opinion: having other input would be helpful
> > 
> > Isn't report sets vs plugin configuration a known area of weakness and
> > one that is on the list to improve somewhere?
> > (Too lazy to google to look it up :)
> > 
> > -
> > 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


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



RE: Nexus help

2011-08-24 Thread Hoyt, David
> It's because Github returns a 404 on your repo:
> https://raw.github.com/davidhoyt/mvn-repo/master/maven2/snapshots/ and
> this makes Nexus think the repo isn't available. Disable the Auto
> blocking and it should work.

I'm not sure why, but moving it over to github pages and providing an 
index.html (which will be used as the default page for directories) with a 
listing of directories/files (recursively) solved the problem. Github pages 
don't have directory browsing enabled, and so I had to generate the index.html 
files by hand. Does maven or nexus rely on that for some reason? Is there an 
option to have it discover directories/files another way?


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



Re: MAVEN-EAR-PLUGIN question, I want to add some CLASS files in my EAR

2011-08-24 Thread Wayne Fay
> I am using EJB 2.0 and weblogic workshop 8.1 version. And my EAR has
> structure something like below.
>
> So how can i handle this by using EAR plugin ? Or i need to use MAVEN ANT
> Plugin and create EAR file by using that ?

I don't use Weblogic Workshop and I have no tool-specific advice to
offer you. You can generally construct whatever package you require
using the Assembly plugin or breaking things up into modules and then
using the jar plug, ejb plugin, war plugin, and ear plugin with proper
dependencies. All of this will require you to restructure your project
and build -- if you are unwilling to do this, then yes, use the Ant
plugin.

Wayne

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



RE: How can I use a Maven plugin to change Eclipse WebSphere Deployment Classloader mode to PARENT_LAST

2011-08-24 Thread Vonnahme, Paul
Do you havein your ear's 
org.eclipse.wst.common.component file?  m2e-wtp should be adding it; I just 
want to make sure you haven't removed it.  In your ear project you should have 
the src/main/application/META-INF/ibmconfig/ folder.  In subfolders of that 
folder are xml files where RAD stores all your local websphere settings such as 
classloader mode for both the ear & war (deployment.xml has the classloader 
settings).  If you keep the ibmconfig folder in source control, you shouldn't 
have to set project facets, etc, unless you want to change the settings.

I don't know why your settings would disappear after a build, though.  You must 
have something set up differently.


From: Harris, Christopher P [mailto:chris_har...@baxter.com]
Sent: Tuesday, August 23, 2011 1:47 PM
To: users@maven.apache.org
Subject: How can I use a Maven plugin to change Eclipse WebSphere Deployment 
Classloader mode to PARENT_LAST

Hi.  I've been hacking away for 3 weeks on getting Maven to play nicely with 
RAD 8,0/JDK 1.5/WebSphere 6.1 + JSF 1.2 & Facelets.

So far, I've been able find the Maven plugins RAD, Eclipse, WTP, WAS6 and mess 
with Eclipse/RAD Project Facets, etc to suit my needs.  The one crucial bit of 
information that I cannot find anywhere is setting an .ear's Classloader mode 
to PARENT_LAST in an Ear project's WebSphere Deployment Descriptor.

I need to change my Ear project's Classloader mode to PARENT_LAST.  I also need 
to do the same for the Ear's War project and set the War classloader policy to 
APPLICATION.
How do you accomplish this task?

Every time I build with Maven, the WebSphere Deployment Descriptor gets set to 
the default settings (Derby gets added to the JDBC provider list, the 
Classloader mode of the Ear and War(s) gets set to PARENT_FIRST, and the WAR 
classloader policy gets set to MODULE).

I'll include a screen shot of what my Ear's WebSphere Deployment Descriptor 
reverts to after I build using Maven as an Eclipse External Tool (my preferred 
method at the moment) or with m2eclipse.

Chris Harris
Programmer/Analyst
BioLife Plasma Services
Baxter Healthcare Corporation
One Baxter Parkway DF3-1W
Deerfield, Illinois 60015
T 847.948.4739   F 847.948.2885
chris_har...@baxter.com

The information transmitted is intended only for the person(s)or entity to 
which it is addressed and may contain confidential and/or legally privileged 
material. Delivery of this message to any person other than the intended 
recipient(s) is not intended in any way to waive privilege or confidentiality. 
Any review, retransmission, dissemination or other use of , or taking of any 
action in reliance upon, this information by entities other than the intended 
recipient is prohibited. If you receive this in error, please contact the 
sender and delete the material from any computer.

For Translation:

http://www.baxter.com/email_disclaimer
-Message Disclaimer-This e-mail message is intended 
only for the use of the individual or entity to which it is addressed, and may 
contain information that is privileged, confidential and exempt from disclosure 
under applicable law.  If you are not the intended recipient, any 
dissemination, distribution or copying of this communication is strictly 
prohibited.  If you have received this communication in error, please notify us 
immediately by reply email to conn...@principal.com and delete or destroy all 
copies of the original message and attachments thereto.  Email sent to or from 
the Principal Financial Group or any of its member companies may be retained as 
required by law or regulation. Nothing in this message is intended to 
constitute an Electronic signature for purposes of the Uniform Electronic 
Transactions Act (UETA) or the Electronic Signatures in Global and National 
Commerce Act ("E-Sign") unless a specific statement to the contrary 
is included in this message.While this communication may be used to 
promote or market a transaction or an idea that is discussed in the 
publication, it is intended to provide general information about the subject 
matter covered and is provided with the understanding that The Principal is not 
rendering legal, accounting, or tax advice. It is not a marketed opinion and 
may not be used to avoid penalties under the Internal Revenue Code. You should 
consult with appropriate counsel or other advisors on all matters pertaining to 
legal, tax, or accounting obligations and requirements.


RE: Surefire plugin: aggregator project - aggregate test results from all children?

2011-08-24 Thread Newman, John W
Sending this just one more time as I am still stuck on this.  Anyone have any 
ideas?

We have the following project layout

parent/pom.xml
child1/pom.xml
  src/test/java
   TestOne.java
   TestTwo.java
child2/pom.xml
   src/test/java
TestMore.java
TestAgain.java

Building the parent project goes off and builds all of the child modules, 
invokes each child's test cases, and reports that they have succeeded at that 
level.  The aggregator project does not have or need any test cases itself.

  child1/
Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
BUILD SUCCESSFUL
  child2/
Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
BUILD SUCCESSFUL
BUILD SUCCESSFUL

That's fine so far - that's the way I'd like it to work.   We are using TFS 
team build to invoke nightly builds of the aggregator, and the thing is just 
saying "no tests, no test results", since it's building the aggregator project 
and not the child modules individually.  If i change it to build the children 
one at a time, I get those test results right on the dashboard.  My question 
is, is there a way to have the aggregator project collect and aggregate the 
test results from the children, such as:

  child1/
Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
BUILD SUCCESSFUL
  child2/
Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
BUILD SUCCESSFUL
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
BUILD SUCCESSFUL

$ ls ~/parent/target/surefire-reports
  TestOne.txt
  TestOne.xml
  TestTwo.txt
  TestTwo.xml
  TestMore.txt
  TestMore.xml
  TestAgain.txt
  TestAgain.xml

In searching online I'm seeing things like -Daggregate=true but it doesn't seem 
to do anything.  Is there any way to accomplish this with the surefire plugin?  
Latest version.

Thanks!
John


John W. Newman
Programmer

[Description: C:\Users\newmjw\AppData\Local\Microsoft\Windows\Temporary 
Internet Files\Content.Outlook\TKMGHKML\d3via_logo (2).gif]

5750 Centre Avenue, Suite 500

Pittsburgh, PA 15206

Tel  412-204-0116

newma...@d3onc.com

www.d3onc.com

Fax 412-365-0749


This e-mail may contain confidential information of the sending organization. 
Any unauthorized or improper disclosure, copying, distribution, or use of the 
contents of this e-mail and attached document(s) is prohibited. The information 
contained in this e-mail and attached document(s) is intended only for the 
personal and confidential use of the recipient(s) named above. If you have 
received this communication in error, please notify the sender immediately by 
e-mail and delete the original e-mail and attached document(s).





Re: MAVEN-EAR-PLUGIN question, I want to add some CLASS files in my EAR

2011-08-24 Thread Daivish Shah
Hi Wayen,

I am using EJB 2.0 and weblogic workshop 8.1 version. And my EAR has
structure something like below.

EAR
|
|--META-INF
| |
| |--ejb-jar.xml
| |--weblogic-ejb-jar.xml
|
|--APP-INF\lib
|
|
|
|--Webservice\WEB-INF\
|--Webservice\WEB-INF\classes
|--here all Webservice EJB class files with package


So how can i handle this by using EAR plugin ? Or i need to use MAVEN ANT
Plugin and create EAR file by using that ?

Please guide me.

thanks,
daivish.

On Tue, Aug 23, 2011 at 8:50 PM, Wayne Fay  wrote:

> > So basically i have some CLASS files on my machine/ Which are located
> > "..\workshop\output\" and ".workshop/WebService/**".
> >
> > Also i want to add whatever under this directory to EAR
> > "\WPSWebService\WEB-INF\"
> >
> > How can i do it using MAVEN-EAR-PLUGIN ?
>
> I don't believe that it is legal to package un-jarred class files in
> an EAR file. So you will need to bundle those class files into a Jar
> and then simply install/deploy the jar, then add a dependency to that
> artifact in your EAR module.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Question about scm:add

2011-08-24 Thread jonsey
Hi,

I'm trying to use the scm:add goal to add a new folder (and contents) into
CVS as part of my Maven release process.
Essentially I am using Hudson to build artifacts and when I deem an artifact
"releasable", I run the build using a separate "release" profile. As part of
this "release" profile, a new folder containing one or more files is created
under the base directory.

For the life of me I can't figure out how to get the new folder (and
contents) into CVS using this plugin.

When I specify just the folder in the includes argument such as (mvn scm:add
-Dincludes=folder) the build fails with the following error message:
No files have been specified for addition.

When I specify the full path to a file within that folder in the includes
argument such as (mvn scm:add -Dincludes=folder/file) the build fails with
the following error message:
[ERROR] Provider message:
[ERROR] The cvs command failed.
[ERROR] Command output:
[ERROR]

Has anyone had any experience using this that would be able to offer a hand?

Thanks in advance!

--
View this message in context: 
http://maven-users.828.n2.nabble.com/Question-about-scm-add-tp6720761p6720761.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: Questions about Doxia-converter for apt/xhtml to rtf ...

2011-08-24 Thread JeremieB.
So I managed to workaround points 1) and 2)  because I work on toto.apt.vm,
and use velocity inside my plugin to generate toto.apt. In this case
conversion to rtf is ok (or nearly).

I'm still stuck with point 3) when I try to launch my plugin in maven
context ...

Another thing for velocity engine : in case of execution in maven context,
I'd like to do the same kind of conversion that does the site plugin, that
is, replace properties with values set in pom.xml, if they exist.
How can I retrieve (or start) a velocity engine fed with these properties in
the context of my mojo ?

--
View this message in context: 
http://maven.40175.n5.nabble.com/Questions-about-Doxia-converter-for-apt-xhtml-to-rtf-tp4729658p4730685.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: Unable to download Maven 3 pom type dependency using Maven 2

2011-08-24 Thread Anders Hammar
I think I've seen similar issues reported with Artifactory. You should
check on the Artifactory list, but I think it was due to an old
Artifactory version or some setting in Artifactory.

/Anders

On Wed, Aug 24, 2011 at 16:02, Javed Mandary  wrote:
> Dear All,
>             I have an interesting case whereby I have an
> artifact com.my.groupid:myartifact:0.44-SNAPSHOT which I have uploaded on my
> organisation repo (Artifactory) using maven 3.x:
>
>
> 
> com.my.groupid
> my.artifact
> 0.44-SNAPSHOT
> import
> pom
> 
>
> However when users who run maven 2.x (2.2.1) try to run a build where this a
> pom dependency it seems that maven 2 is unable to resolve the uploaded maven
> 3 dependency.
>
> Would any of you know why this is currently the case?
>
> many thanks,
>  Javed
>

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



Re: deploy failing with illegal character

2011-08-24 Thread Marshall Schor
I found the answer, it had nothing to do (mostly) with this error message.

I'm using password security - there's an encrypted pw stored in my local
settings.xml.  It has to be unencrypted by a key.

The key is not always available - and if it is not, there is a message but it
scrolls by quickly, and doesn't stop the build.

Later, the deploy attempts to get to the server using the encrypted pw, which 
fails.

The fix: make the key needed to unencrypt the pw available to the build :-)

-Marshall Schor

On 8/24/2011 8:32 AM, Marshall Schor wrote:
> In trying to do an Apache release, the release:perform goal fails when 
> uploading
> to the Apache repository.
>
> I've tried 3 times, with 2 different JVMs (Sun/Oracle and IBM), all give this 
> error:
>
> [INFO] [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on
> project uima-addons-parent: Failed to deploy artifacts: Could not transfer
> artifact org.apache.uima:uima-addons-parent:pom:2.3.1 from/to
> apache.releases.https
> (https://repository.apache.org/service/local/staging/deploy/maven2):
> java.lang.IllegalArgumentException: Illegal character(s) in message header
> value: Basic
> c2Nob3I6e05CeGU5SlJ3anE4SEFqK0pvcFRUK1I1emo5VDd4N1JEaDl3bFdPbEI2Q0RXUXVRd2k2
> [INFO] [ERROR] dm1sSlpzZTVQM0ZrU ... etc.
>
> I googled this, and found this http://markmail.org/message/nscp44q2tm6qh3di
>
> It says it's a known bug in JRE's base64 encoder, which is used by the
> "lightweight" wagon used to deploy.
>
> The suggestion is "Try to force Maven to use some other wagon instead of the
> lightweight one".
>
> I don't know how to do that; any suggestions?  Are there other work-arounds?
> This is a blocker for our release.
>
> -Marshall Schor
>
> -
> 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



Unable to download Maven 3 pom type dependency using Maven 2

2011-08-24 Thread Javed Mandary
Dear All,
 I have an interesting case whereby I have an
artifact com.my.groupid:myartifact:0.44-SNAPSHOT which I have uploaded on my
organisation repo (Artifactory) using maven 3.x:



com.my.groupid
my.artifact
0.44-SNAPSHOT
import
pom


However when users who run maven 2.x (2.2.1) try to run a build where this a
pom dependency it seems that maven 2 is unable to resolve the uploaded maven
3 dependency.

Would any of you know why this is currently the case?

many thanks,
  Javed


Re: deploy failing with illegal character

2011-08-24 Thread Anders Hammar
This should do it:
http://maven.apache.org/guides/mini/guide-wagon-providers.html

/Anders

On Wed, Aug 24, 2011 at 14:32, Marshall Schor  wrote:
> In trying to do an Apache release, the release:perform goal fails when 
> uploading
> to the Apache repository.
>
> I've tried 3 times, with 2 different JVMs (Sun/Oracle and IBM), all give this 
> error:
>
> [INFO] [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on
> project uima-addons-parent: Failed to deploy artifacts: Could not transfer
> artifact org.apache.uima:uima-addons-parent:pom:2.3.1 from/to
> apache.releases.https
> (https://repository.apache.org/service/local/staging/deploy/maven2):
> java.lang.IllegalArgumentException: Illegal character(s) in message header
> value: Basic
> c2Nob3I6e05CeGU5SlJ3anE4SEFqK0pvcFRUK1I1emo5VDd4N1JEaDl3bFdPbEI2Q0RXUXVRd2k2
> [INFO] [ERROR] dm1sSlpzZTVQM0ZrU ... etc.
>
> I googled this, and found this http://markmail.org/message/nscp44q2tm6qh3di
>
> It says it's a known bug in JRE's base64 encoder, which is used by the
> "lightweight" wagon used to deploy.
>
> The suggestion is "Try to force Maven to use some other wagon instead of the
> lightweight one".
>
> I don't know how to do that; any suggestions?  Are there other work-arounds?
> This is a blocker for our release.
>
> -Marshall Schor
>
> -
> 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



deploy failing with illegal character

2011-08-24 Thread Marshall Schor
In trying to do an Apache release, the release:perform goal fails when uploading
to the Apache repository.

I've tried 3 times, with 2 different JVMs (Sun/Oracle and IBM), all give this 
error:

[INFO] [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on
project uima-addons-parent: Failed to deploy artifacts: Could not transfer
artifact org.apache.uima:uima-addons-parent:pom:2.3.1 from/to
apache.releases.https
(https://repository.apache.org/service/local/staging/deploy/maven2):
java.lang.IllegalArgumentException: Illegal character(s) in message header
value: Basic
c2Nob3I6e05CeGU5SlJ3anE4SEFqK0pvcFRUK1I1emo5VDd4N1JEaDl3bFdPbEI2Q0RXUXVRd2k2
[INFO] [ERROR] dm1sSlpzZTVQM0ZrU ... etc.

I googled this, and found this http://markmail.org/message/nscp44q2tm6qh3di

It says it's a known bug in JRE's base64 encoder, which is used by the
"lightweight" wagon used to deploy.

The suggestion is "Try to force Maven to use some other wagon instead of the
lightweight one".

I don't know how to do that; any suggestions?  Are there other work-arounds?
This is a blocker for our release.

-Marshall Schor

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



Re: Create Archetype from Project

2011-08-24 Thread Luk255
Thanks for the quick response!

Yes, I tried to generate the archetype via mvn archetype:generate
-DarchetypeCatalog=local

this is the output I'm getting:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:generate] (aggregator-style)
[INFO]

[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] [archetype:generate {execution: default-cli}]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart
(org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
Choose a number: :

When I use mvn archetype:crawl I get following output:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:crawl] (aggregator-style)
[INFO]

[INFO] [archetype:crawl {execution: default-cli}]
repository C:\.m2\repository
catalogFile null
[INFO] Scanning
C:\.m2\repository\at\fhj\itm\MavenProjectQuizArchetype-archetype\1.0-SNAPSHOT\MavenProjectQuizArchetype-archetype-1.0-SNAPSHOT.jar
[INFO]  Archetype
[at.fhj.itm:MavenProjectQuizArchetype-archetype:1.0-SNAPSHOT] defined by
repository path


So Maven obviously notices the archetype, but still I can't generate a
project out of it.

I have to say, when I tried the batch option as in the link you provided me,
it did work. But why is that?

Thnak you!


--
View this message in context: 
http://maven.40175.n5.nabble.com/Create-Archetype-from-Project-tp4726929p4730011.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



Questions about Doxia-converter for apt/xhtml to rtf ...

2011-08-24 Thread JeremieB.
Hi,

Using doxia-converter I have several questions ...

1- apt to rtf generates a readable rtf with word 2007, while xhtml to rtf
will show plenty of non-parsed tags when opened with word 2007 ... (I use
the .html page generated by maven from the .apt ...)
Example :
"\pard\sb200\plain\f0\fs20
 
{\rtf1\ansi\ansicpg1252\deff0
..."

2- If I don't remove the "DOCTYPE" header of my xhtml page before,
doxia-converter tries to validate the content against referenced DTD,
leading to IOExceptions / time out because proxy is not configured (and I
don't know where to configure it for doxia). Is there a way to either remove
xhtml validation from doxia, or not to add DOCTYPE element in apt/xhtml
conversion with maven-site ?

3- When I try to call doxia-converter from a maven (groovy) plugin I'm
writing, it results in the following at runtime (plugin execution) :
"[DEBUG]  The following artifacts were filtered out for plugin:
com.plugins:maven-xhtml2doc-plugin:1.0-SNAPSHOT because they're already in
the core of Maven:

org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:runtime
[...]
java.lang.NoClassDefFoundError: org/codehaus/plexus/ContainerConfiguration
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.plugins.xhtml2doc.ConvertMojo.class$(ConvertMojo.groovy)
at com.plugins.xhtml2doc.ConvertMojo.execute(ConvertMojo.groovy:56)
..."
It does not happen while in unit-testing, only when running the plugin
through maven ... And I believe it's not really this class that is not
found, as it's available in plexus-container-default already, but I don't
know wich class is missing ...

Thanks for help,
Jeremie



--
View this message in context: 
http://maven.40175.n5.nabble.com/Questions-about-Doxia-converter-for-apt-xhtml-to-rtf-tp4729658p4729658.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