You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by sgjava <sg...@gmail.com> on 2016/05/04 16:55:48 UTC

tomee-maven-plugin basic-auth

I'm trying to do tomee:run using tomee-maven-plugin, but how would I set
bacis auth user like in tomcat-users.xm? Here's what I use:

            
            <plugin>
                <groupId>org.apache.tomee.maven</groupId>
                <artifactId>tomee-maven-plugin</artifactId>
                <version>${tomee.version}</version>
                <configuration>
                    <tomeeVersion>${tomee.version}</tomeeVersion>
                    <tomeeClassifier>plus</tomeeClassifier>
                    <zip>false</zip>
                    <classpaths>
                       
<classpath>${project.build.directory}/apache-tomee/conf/logback-config</classpath>
                       
<classpath>${project.build.directory}/apache-tomee/lib/slf4j-api-${slf4j.version}.jar</classpath>
                       
<classpath>${project.build.directory}/apache-tomee/lib/logback-core-${logback.version}.jar</classpath>
                       
<classpath>${project.build.directory}/apache-tomee/lib/logback-classic-${logback.version}.jar</classpath>
                    </classpaths>
                    <systemVariables>
                        <file.encoding>UTF-8</file.encoding>
                        <openejb.log.factory>slf4j</openejb.log.factory>
                       
<logback.configurationFile>${project.basedir}/src/main/resources/logback.xml</logback.configurationFile>
                    </systemVariables>
                    <libs>
                        
                        <lib>org.slf4j:slf4j-api:${slf4j.version}</lib>
                       
<lib>ch.qos.logback:logback-classic:${logback.version}</lib>
                       
<lib>ch.qos.logback:logback-core:${logback.version}</lib>
                        
                        <lib>remove:slf4j-jdk14</lib>
                        <lib>remove:slf4j-api-1.7.2</lib>
                    </libs>
                    <reloadOnUpdate>true</reloadOnUpdate>
                    <synchronization>
                        <extensions>
                            <extension>.class</extension>
                        </extensions>
                        <updateOnlyExtensions>
                           
<updateOnlyExtension>.xhtml</updateOnlyExtension>
                            <updateOnlyExtension>.html</updateOnlyExtension>
                            <updateOnlyExtension>.js</updateOnlyExtension>
                            <updateOnlyExtension>.css</updateOnlyExtension>
                        </updateOnlyExtensions>
                    </synchronization>
                </configuration>
            </plugin>




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/tomee-maven-plugin-basic-auth-tp4678356.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: tomee-maven-plugin basic-auth

Posted by sgjava <sg...@gmail.com>.
In M3 and SNAPSHOT?

On Wed, May 4, 2016 at 1:10 PM, Romain Manni-Bucau [via TomEE & OpenEJB] <
ml-node+s979440n4678357h78@n4.nabble.com> wrote:

> Hi
>
> META-INF/context.xml or conf/server.xml are valid option. Then it has
> nothing linked to maven.
>
> Tip: last releases support inline tomee.xml in the pom ;).
> Le 4 mai 2016 19:30, "sgjava" <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=4678357&i=0>> a écrit :
>
> > I'm trying to do tomee:run using tomee-maven-plugin, but how would I set
> > bacis auth user like in tomcat-users.xm? Here's what I use:
> >
> >
> >             <plugin>
> >                 <groupId>org.apache.tomee.maven</groupId>
> >                 <artifactId>tomee-maven-plugin</artifactId>
> >                 <version>${tomee.version}</version>
> >                 <configuration>
> >                     <tomeeVersion>${tomee.version}</tomeeVersion>
> >                     <tomeeClassifier>plus</tomeeClassifier>
> >                     <zip>false</zip>
> >                     <classpaths>
> >
> >
> >
> <classpath>${project.build.directory}/apache-tomee/conf/logback-config</classpath>
>
> >
> >
> >
> <classpath>${project.build.directory}/apache-tomee/lib/slf4j-api-${slf4j.version}.jar</classpath>
>
> >
> >
> >
> <classpath>${project.build.directory}/apache-tomee/lib/logback-core-${logback.version}.jar</classpath>
>
> >
> >
> >
> <classpath>${project.build.directory}/apache-tomee/lib/logback-classic-${logback.version}.jar</classpath>
>
> >                     </classpaths>
> >                     <systemVariables>
> >                         <file.encoding>UTF-8</file.encoding>
> >                         <openejb.log.factory>slf4j</openejb.log.factory>
> >
> >
> >
> <logback.configurationFile>${project.basedir}/src/main/resources/logback.xml</logback.configurationFile>
>
> >                     </systemVariables>
> >                     <libs>
> >
> >                         <lib>org.slf4j:slf4j-api:${slf4j.version}</lib>
> >
> > <lib>ch.qos.logback:logback-classic:${logback.version}</lib>
> >
> > <lib>ch.qos.logback:logback-core:${logback.version}</lib>
> >
> >                         <lib>remove:slf4j-jdk14</lib>
> >                         <lib>remove:slf4j-api-1.7.2</lib>
> >                     </libs>
> >                     <reloadOnUpdate>true</reloadOnUpdate>
> >                     <synchronization>
> >                         <extensions>
> >                             <extension>.class</extension>
> >                         </extensions>
> >                         <updateOnlyExtensions>
> >
> > <updateOnlyExtension>.xhtml</updateOnlyExtension>
> >
> > <updateOnlyExtension>.html</updateOnlyExtension>
> >
> <updateOnlyExtension>.js</updateOnlyExtension>
> >
> <updateOnlyExtension>.css</updateOnlyExtension>
> >                         </updateOnlyExtensions>
> >                     </synchronization>
> >                 </configuration>
> >             </plugin>
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://tomee-openejb.979440.n4.nabble.com/tomee-maven-plugin-basic-auth-tp4678356.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://tomee-openejb.979440.n4.nabble.com/tomee-maven-plugin-basic-auth-tp4678356p4678357.html
> To unsubscribe from tomee-maven-plugin basic-auth, click here
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4678356&code=c2dqYXZhQGdtYWlsLmNvbXw0Njc4MzU2fC0xNzc0MzgwNjE5>
> .
> NAML
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Steven P. Goldsmith




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/tomee-maven-plugin-basic-auth-tp4678356p4678358.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: tomee-maven-plugin basic-auth

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Yep, probably a sample on jira
Le 4 mai 2016 19:48, "sgjava" <sg...@gmail.com> a écrit :

> Example somewhere?
>
> On Wed, May 4, 2016 at 1:10 PM, Romain Manni-Bucau [via TomEE & OpenEJB] <
> ml-node+s979440n4678357h78@n4.nabble.com> wrote:
>
> > Hi
> >
> > META-INF/context.xml or conf/server.xml are valid option. Then it has
> > nothing linked to maven.
> >
> > Tip: last releases support inline tomee.xml in the pom ;).
> > Le 4 mai 2016 19:30, "sgjava" <[hidden email]
> > <http:///user/SendEmail.jtp?type=node&node=4678357&i=0>> a écrit :
> >
> > > I'm trying to do tomee:run using tomee-maven-plugin, but how would I
> set
> > > bacis auth user like in tomcat-users.xm? Here's what I use:
> > >
> > >
> > >             <plugin>
> > >                 <groupId>org.apache.tomee.maven</groupId>
> > >                 <artifactId>tomee-maven-plugin</artifactId>
> > >                 <version>${tomee.version}</version>
> > >                 <configuration>
> > >                     <tomeeVersion>${tomee.version}</tomeeVersion>
> > >                     <tomeeClassifier>plus</tomeeClassifier>
> > >                     <zip>false</zip>
> > >                     <classpaths>
> > >
> > >
> > >
> >
> <classpath>${project.build.directory}/apache-tomee/conf/logback-config</classpath>
> >
> > >
> > >
> > >
> >
> <classpath>${project.build.directory}/apache-tomee/lib/slf4j-api-${slf4j.version}.jar</classpath>
> >
> > >
> > >
> > >
> >
> <classpath>${project.build.directory}/apache-tomee/lib/logback-core-${logback.version}.jar</classpath>
> >
> > >
> > >
> > >
> >
> <classpath>${project.build.directory}/apache-tomee/lib/logback-classic-${logback.version}.jar</classpath>
> >
> > >                     </classpaths>
> > >                     <systemVariables>
> > >                         <file.encoding>UTF-8</file.encoding>
> > >
>  <openejb.log.factory>slf4j</openejb.log.factory>
> > >
> > >
> > >
> >
> <logback.configurationFile>${project.basedir}/src/main/resources/logback.xml</logback.configurationFile>
> >
> > >                     </systemVariables>
> > >                     <libs>
> > >
> > >                         <lib>org.slf4j:slf4j-api:${slf4j.version}</lib>
> > >
> > > <lib>ch.qos.logback:logback-classic:${logback.version}</lib>
> > >
> > > <lib>ch.qos.logback:logback-core:${logback.version}</lib>
> > >
> > >                         <lib>remove:slf4j-jdk14</lib>
> > >                         <lib>remove:slf4j-api-1.7.2</lib>
> > >                     </libs>
> > >                     <reloadOnUpdate>true</reloadOnUpdate>
> > >                     <synchronization>
> > >                         <extensions>
> > >                             <extension>.class</extension>
> > >                         </extensions>
> > >                         <updateOnlyExtensions>
> > >
> > > <updateOnlyExtension>.xhtml</updateOnlyExtension>
> > >
> > > <updateOnlyExtension>.html</updateOnlyExtension>
> > >
> > <updateOnlyExtension>.js</updateOnlyExtension>
> > >
> > <updateOnlyExtension>.css</updateOnlyExtension>
> > >                         </updateOnlyExtensions>
> > >                     </synchronization>
> > >                 </configuration>
> > >             </plugin>
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://tomee-openejb.979440.n4.nabble.com/tomee-maven-plugin-basic-auth-tp4678356.html
> > > Sent from the TomEE Users mailing list archive at Nabble.com.
> > >
> >
> >
> > ------------------------------
> > If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://tomee-openejb.979440.n4.nabble.com/tomee-maven-plugin-basic-auth-tp4678356p4678357.html
> > To unsubscribe from tomee-maven-plugin basic-auth, click here
> > <
> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4678356&code=c2dqYXZhQGdtYWlsLmNvbXw0Njc4MzU2fC0xNzc0MzgwNjE5
> >
> > .
> > NAML
> > <
> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
> --
> Steven P. Goldsmith
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/tomee-maven-plugin-basic-auth-tp4678356p4678359.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: tomee-maven-plugin basic-auth

Posted by sgjava <sg...@gmail.com>.
Example somewhere?

On Wed, May 4, 2016 at 1:10 PM, Romain Manni-Bucau [via TomEE & OpenEJB] <
ml-node+s979440n4678357h78@n4.nabble.com> wrote:

> Hi
>
> META-INF/context.xml or conf/server.xml are valid option. Then it has
> nothing linked to maven.
>
> Tip: last releases support inline tomee.xml in the pom ;).
> Le 4 mai 2016 19:30, "sgjava" <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=4678357&i=0>> a écrit :
>
> > I'm trying to do tomee:run using tomee-maven-plugin, but how would I set
> > bacis auth user like in tomcat-users.xm? Here's what I use:
> >
> >
> >             <plugin>
> >                 <groupId>org.apache.tomee.maven</groupId>
> >                 <artifactId>tomee-maven-plugin</artifactId>
> >                 <version>${tomee.version}</version>
> >                 <configuration>
> >                     <tomeeVersion>${tomee.version}</tomeeVersion>
> >                     <tomeeClassifier>plus</tomeeClassifier>
> >                     <zip>false</zip>
> >                     <classpaths>
> >
> >
> >
> <classpath>${project.build.directory}/apache-tomee/conf/logback-config</classpath>
>
> >
> >
> >
> <classpath>${project.build.directory}/apache-tomee/lib/slf4j-api-${slf4j.version}.jar</classpath>
>
> >
> >
> >
> <classpath>${project.build.directory}/apache-tomee/lib/logback-core-${logback.version}.jar</classpath>
>
> >
> >
> >
> <classpath>${project.build.directory}/apache-tomee/lib/logback-classic-${logback.version}.jar</classpath>
>
> >                     </classpaths>
> >                     <systemVariables>
> >                         <file.encoding>UTF-8</file.encoding>
> >                         <openejb.log.factory>slf4j</openejb.log.factory>
> >
> >
> >
> <logback.configurationFile>${project.basedir}/src/main/resources/logback.xml</logback.configurationFile>
>
> >                     </systemVariables>
> >                     <libs>
> >
> >                         <lib>org.slf4j:slf4j-api:${slf4j.version}</lib>
> >
> > <lib>ch.qos.logback:logback-classic:${logback.version}</lib>
> >
> > <lib>ch.qos.logback:logback-core:${logback.version}</lib>
> >
> >                         <lib>remove:slf4j-jdk14</lib>
> >                         <lib>remove:slf4j-api-1.7.2</lib>
> >                     </libs>
> >                     <reloadOnUpdate>true</reloadOnUpdate>
> >                     <synchronization>
> >                         <extensions>
> >                             <extension>.class</extension>
> >                         </extensions>
> >                         <updateOnlyExtensions>
> >
> > <updateOnlyExtension>.xhtml</updateOnlyExtension>
> >
> > <updateOnlyExtension>.html</updateOnlyExtension>
> >
> <updateOnlyExtension>.js</updateOnlyExtension>
> >
> <updateOnlyExtension>.css</updateOnlyExtension>
> >                         </updateOnlyExtensions>
> >                     </synchronization>
> >                 </configuration>
> >             </plugin>
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://tomee-openejb.979440.n4.nabble.com/tomee-maven-plugin-basic-auth-tp4678356.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://tomee-openejb.979440.n4.nabble.com/tomee-maven-plugin-basic-auth-tp4678356p4678357.html
> To unsubscribe from tomee-maven-plugin basic-auth, click here
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4678356&code=c2dqYXZhQGdtYWlsLmNvbXw0Njc4MzU2fC0xNzc0MzgwNjE5>
> .
> NAML
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Steven P. Goldsmith




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/tomee-maven-plugin-basic-auth-tp4678356p4678359.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: tomee-maven-plugin basic-auth

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

META-INF/context.xml or conf/server.xml are valid option. Then it has
nothing linked to maven.

Tip: last releases support inline tomee.xml in the pom ;).
Le 4 mai 2016 19:30, "sgjava" <sg...@gmail.com> a écrit :

> I'm trying to do tomee:run using tomee-maven-plugin, but how would I set
> bacis auth user like in tomcat-users.xm? Here's what I use:
>
>
>             <plugin>
>                 <groupId>org.apache.tomee.maven</groupId>
>                 <artifactId>tomee-maven-plugin</artifactId>
>                 <version>${tomee.version}</version>
>                 <configuration>
>                     <tomeeVersion>${tomee.version}</tomeeVersion>
>                     <tomeeClassifier>plus</tomeeClassifier>
>                     <zip>false</zip>
>                     <classpaths>
>
>
> <classpath>${project.build.directory}/apache-tomee/conf/logback-config</classpath>
>
>
> <classpath>${project.build.directory}/apache-tomee/lib/slf4j-api-${slf4j.version}.jar</classpath>
>
>
> <classpath>${project.build.directory}/apache-tomee/lib/logback-core-${logback.version}.jar</classpath>
>
>
> <classpath>${project.build.directory}/apache-tomee/lib/logback-classic-${logback.version}.jar</classpath>
>                     </classpaths>
>                     <systemVariables>
>                         <file.encoding>UTF-8</file.encoding>
>                         <openejb.log.factory>slf4j</openejb.log.factory>
>
>
> <logback.configurationFile>${project.basedir}/src/main/resources/logback.xml</logback.configurationFile>
>                     </systemVariables>
>                     <libs>
>
>                         <lib>org.slf4j:slf4j-api:${slf4j.version}</lib>
>
> <lib>ch.qos.logback:logback-classic:${logback.version}</lib>
>
> <lib>ch.qos.logback:logback-core:${logback.version}</lib>
>
>                         <lib>remove:slf4j-jdk14</lib>
>                         <lib>remove:slf4j-api-1.7.2</lib>
>                     </libs>
>                     <reloadOnUpdate>true</reloadOnUpdate>
>                     <synchronization>
>                         <extensions>
>                             <extension>.class</extension>
>                         </extensions>
>                         <updateOnlyExtensions>
>
> <updateOnlyExtension>.xhtml</updateOnlyExtension>
>
> <updateOnlyExtension>.html</updateOnlyExtension>
>                             <updateOnlyExtension>.js</updateOnlyExtension>
>                             <updateOnlyExtension>.css</updateOnlyExtension>
>                         </updateOnlyExtensions>
>                     </synchronization>
>                 </configuration>
>             </plugin>
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/tomee-maven-plugin-basic-auth-tp4678356.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>