小编DaB*_*ars的帖子

如何更改maven打包的jar权限?我正在使用maven程序集插件

我正在使用maven程序集插件来打包一个包含所有依赖项的jar.但是jar文件不可执行.如何更改jar的权限?

-rw-r--r--  1 e17490  ADPROD\Domain Users  12072889 Nov 12 14:16 com-foo-bar.jar
Run Code Online (Sandbox Code Playgroud)

的pom.xml

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <configuration>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
          <archive>
            <manifest>
              <mainClass>foo.Main</mainClass>
            </manifest>
          </archive>
        </configuration>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>        
      </plugin>
Run Code Online (Sandbox Code Playgroud)

java executable-jar maven-3 maven maven-assembly-plugin

8
推荐指数
2
解决办法
7292
查看次数

无法导入具有某些属性的 ldif 文件

我是 ldap 和 apacheds 的新手。我已经使用 apacheds 创建了嵌入式 LDAP 服务器。示例在这里。但是看到下面的问题。我创建了错误的分区吗?它会是什么样子?ldif 文件有什么变化吗?

导入 ldif 文件时出现错误:

org.apache.directory.api.ldap.model.exception.LdapNoSuchAttributeException: ERR_04269 OID samaccountname 的 ATTRIBUTE_TYPE 不存在!

Ldif 文件:

dn: cn=Foo Bar,ou=people,o=foo,cn=ldaplookup,ou=dev,dc=foo,dc=bar
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
cn: Foo Bar
sn: foo_bar
givenName: Foo
name: Foo Bar
displayName: Foo, Bar
sAMAccountName: foo_bar
userPrincipalName: foo_bar@foo.chicago.com
mail: mail_foo@foo.com
Run Code Online (Sandbox Code Playgroud)

服务启动时的附加错误:

11:19:12.622 [ATDD] [main] ERROR o.a.d.s.c.p.i.b.AbstractBTreePartition - ATDD - Cannot initialize the index for AttributeType userprincipalname, this value does not exist
11:19:12.622 [ATDD] [main] ERROR o.a.d.s.c.p.i.b.AbstractBTreePartition …
Run Code Online (Sandbox Code Playgroud)

java directoryservices ldap openldap apacheds

5
推荐指数
1
解决办法
4897
查看次数