You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Serdyn du Toit <du...@gmail.com> on 2013/07/28 22:38:50 UTC

username\password prompt

Hi,

Sorry if this question has been asked before - just joined the mailing
list.  Previously when I built the Struts 2 I can't recall being prompted
for a username and password (see below).  Is there some way I can disable
this?  I just want "mvn install" to finish without any prompts...currently
the assembly task also fails due to this.  Sorry, not a big Maven expert.

[INFO]
------------------------------------------------------------------------
[INFO] Building Struts 2 Assembly 2.3.16-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @
struts2-assem
bly ---
[INFO]
[INFO] --- maven-bundle-plugin:2.1.0:manifest (bundle-manifest) @
struts2-assemb
ly ---
[WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle]
[INFO]
[INFO] >>> exec-maven-plugin:1.2:java (cwiki-docs) @ struts2-assembly >>>
[INFO]
[INFO] <<< exec-maven-plugin:1.2:java (cwiki-docs) @ struts2-assembly <<<
[INFO]
[INFO] --- exec-maven-plugin:1.2:java (cwiki-docs) @ struts2-assembly ---
Enter username:

Enter password:

Jul 28, 2013 10:28:26 PM
org.apache.cxf.service.factory.ReflectionServiceFactory
Bean buildServiceFromClass
INFO: Creating Service {http://soap.rpc.confluence.atlassian.com}Service
from cl
ass org.apache.cxf.jaxws.support.DummyImpl

RE: username\password prompt

Posted by Martin Gainty <mg...@hotmail.com>.
this means the struts2-assembly artifact you are referencing is located on a secure server

if you can ssh to the location of the server hosting struts2-assembly 
 
ssh_command_window>execute your mvn scripts
 
if you require assistance on the authentication credentials for struts2-assembly contact the admin of the server struts2-assembly ..may times anonymous username has 'read access'

questions for automating secure-login via maven will be addressed on users@maven.apache.org
 
Martin 
______________________________________________ 

 

> Date: Sun, 28 Jul 2013 22:38:50 +0200
> Subject: username\password prompt
> From: dutoitns@gmail.com
> To: dev@struts.apache.org
> 
> Hi,
> 
> Sorry if this question has been asked before - just joined the mailing
> list.  Previously when I built the Struts 2 I can't recall being prompted
> for a username and password (see below).  Is there some way I can disable
> this?  I just want "mvn install" to finish without any prompts...currently
> the assembly task also fails due to this.  Sorry, not a big Maven expert.
> 
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Struts 2 Assembly 2.3.16-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @
> struts2-assem
> bly ---
> [INFO]
> [INFO] --- maven-bundle-plugin:2.1.0:manifest (bundle-manifest) @
> struts2-assemb
> ly ---
> [WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle]
> [INFO]
> [INFO] >>> exec-maven-plugin:1.2:java (cwiki-docs) @ struts2-assembly >>>
> [INFO]
> [INFO] <<< exec-maven-plugin:1.2:java (cwiki-docs) @ struts2-assembly <<<
> [INFO]
> [INFO] --- exec-maven-plugin:1.2:java (cwiki-docs) @ struts2-assembly ---
> Enter username:
> 
> Enter password:
> 
> Jul 28, 2013 10:28:26 PM
> org.apache.cxf.service.factory.ReflectionServiceFactory
> Bean buildServiceFromClass
> INFO: Creating Service {http://soap.rpc.confluence.atlassian.com}Service
> from cl
> ass org.apache.cxf.jaxws.support.DummyImpl
 		 	   		  

Re: username\password prompt

Posted by Rene Gielen <re...@gmail.com>.
-DskipAssembly is the way to go as long as Confluence requires a login
to use the web service interface and you don't have one. Also, if you
don't need the full docs in your local build the docs assembly phase is
really one you would like to skip given the time it takes.

If you want to add a permanent hint to skip the assembly, you could
define a profile (maybe called struts-localbuild) in your
$USER_HOME/.m2/settings.xml, like so:

<profiles>
        <profile>
            <id>struts-localbuild</id>
            <properties>
                 <skipAssembly>true</skipAssembly>
            </properties>
        </profile>
</profiles>
<activeProfiles>
        <activeProfile>struts-localbuild</activeProfile>
</activeProfiles>


Am 29.07.13 08:43, schrieb Serdyn du Toit:
>> You can also start build with -DskipAssembly to skip the whole assembly
> module.
> 
> Thanks, worked :)  I can now build the Jar without Maven prompting for
> anything.
> 
> I raised an issue here: https://issues.apache.org/jira/browse/WW-4157
> 
> I guess one can also just set skipAssembly permanently in the main pom.xml
> properties.  But not really knowing Maven very well I don't really know
> what someone would automatically expect eg "mvn install" to do and not do.
>  I mean I just wanted the Jar built - and that works 100% using
> skipAssembly.
> 
> Many thanks guys - appreciated :)
> Serdyn du Toit
> 
> 
> 
> On Mon, Jul 29, 2013 at 7:55 AM, Lukasz Lenart <lu...@apache.org>wrote:
> 
>> 2013/7/28 Serdyn du Toit <du...@gmail.com>:
>>> [INFO]
>>> [INFO] --- exec-maven-plugin:1.2:java (cwiki-docs) @ struts2-assembly ---
>>> Enter username:
>>>
>>> Enter password:
>>>
>>> Jul 28, 2013 10:28:26 PM
>>> org.apache.cxf.service.factory.ReflectionServiceFactory
>>> Bean buildServiceFromClass
>>> INFO: Creating Service {http://soap.rpc.confluence.atlassian.com}Service
>>> from cl
>>> ass org.apache.cxf.jaxws.support.DummyImpl
>>
>> Right ... not so good :\
>>
>> This is needed to prepare a new release as right now we directly hit
>> Confluence to export docs. Can you register an issue for that? It
>> would be better to docs export to release phase. It isn't needed for
>> normal builds.
>>
>> You can also start build with -DskipAssembly to skip the whole assembly
>> module.
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: username\password prompt

Posted by Serdyn du Toit <du...@gmail.com>.
> You can also start build with -DskipAssembly to skip the whole assembly
module.

Thanks, worked :)  I can now build the Jar without Maven prompting for
anything.

I raised an issue here: https://issues.apache.org/jira/browse/WW-4157

I guess one can also just set skipAssembly permanently in the main pom.xml
properties.  But not really knowing Maven very well I don't really know
what someone would automatically expect eg "mvn install" to do and not do.
 I mean I just wanted the Jar built - and that works 100% using
skipAssembly.

Many thanks guys - appreciated :)
Serdyn du Toit



On Mon, Jul 29, 2013 at 7:55 AM, Lukasz Lenart <lu...@apache.org>wrote:

> 2013/7/28 Serdyn du Toit <du...@gmail.com>:
> > [INFO]
> > [INFO] --- exec-maven-plugin:1.2:java (cwiki-docs) @ struts2-assembly ---
> > Enter username:
> >
> > Enter password:
> >
> > Jul 28, 2013 10:28:26 PM
> > org.apache.cxf.service.factory.ReflectionServiceFactory
> > Bean buildServiceFromClass
> > INFO: Creating Service {http://soap.rpc.confluence.atlassian.com}Service
> > from cl
> > ass org.apache.cxf.jaxws.support.DummyImpl
>
> Right ... not so good :\
>
> This is needed to prepare a new release as right now we directly hit
> Confluence to export docs. Can you register an issue for that? It
> would be better to docs export to release phase. It isn't needed for
> normal builds.
>
> You can also start build with -DskipAssembly to skip the whole assembly
> module.
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Re: username\password prompt

Posted by Lukasz Lenart <lu...@apache.org>.
2013/7/28 Serdyn du Toit <du...@gmail.com>:
> [INFO]
> [INFO] --- exec-maven-plugin:1.2:java (cwiki-docs) @ struts2-assembly ---
> Enter username:
>
> Enter password:
>
> Jul 28, 2013 10:28:26 PM
> org.apache.cxf.service.factory.ReflectionServiceFactory
> Bean buildServiceFromClass
> INFO: Creating Service {http://soap.rpc.confluence.atlassian.com}Service
> from cl
> ass org.apache.cxf.jaxws.support.DummyImpl

Right ... not so good :\

This is needed to prepare a new release as right now we directly hit
Confluence to export docs. Can you register an issue for that? It
would be better to docs export to release phase. It isn't needed for
normal builds.

You can also start build with -DskipAssembly to skip the whole assembly module.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org