1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

glassfish embedded と BASE64Decoder/BASE64Encoder

Posted at

glassfish embedded server と glassfish serverではバンドルしてあるライブラリーに差異がありました。
BASE64Decoder/BASE64Encoderはglassfish embedded serverにはバンドルしてありますが実装が権利関係のあやふやなもの?がついています。
なのでglassfish embedded serverとglassfish serverでは使うライブラリをわけないといけなかったです。

なのでメモとして残します。

pom.xml
    <profile>
        <id>glasfiss-server</id>
:
            <dependencies>
                <dependency>
                    <groupId>javax</groupId>
                    <artifactId>javaee-web-api</artifactId>
                    <version>6.0</version>
                    <scope>provided</scope>
                </dependency>                
                <dependency>
                    <groupId>org.glassfish.security</groupId>
                    <artifactId>realms</artifactId>
                    <version>10.0-b28</version>
                </dependency>                                       
            </dependencies>
    </profile>
:
    <profile>
        <id>arquillian-glassfish-embedded</id>
:
            <dependencies>
                <dependency>
                    <groupId>org.jboss.arquillian.container</groupId>
                    <artifactId>arquillian-glassfish-embedded-3.1</artifactId>
                    <version>1.0.0.CR3</version>
                    <scope>test</scope>
                </dependency>
                <dependency>
                    <groupId>org.glassfish.main.extras</groupId>
                    <artifactId>glassfish-embedded-all</artifactId>
                    <version>3.1.2</version>
                    <scope>provided</scope>
                </dependency>
                <!-- Base64Encode,Base64Decodeが原因でrealms-10.0-b28.jarとglassfish-embedded-allが競合するので定義 -->
                <dependency>
                    <groupId>org.glassfish.common</groupId>
                    <artifactId>common-util</artifactId>
                    <version>10.0-b28</version>
                    <scope>provided</scope>
                </dependency>
            </dependencies>
:
    </profile>
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?