-
Improvement
-
Resolution: Unresolved
-
Critical
Deploying war files to the dropins directory is not sufficient for applications that need to specify security roles in server.xml.
I know I will have to edit server.xml to add these other elements, but I will only have to do it once. I'm hoping to use the websphere-deployer-plugin to update applications (CI) running on a remote Liberty instance.
I considered fixing it myself, but I can't seem to get the plugin to build. It's missing a number of dependencies:
[ERROR] Failed to execute goal on project websphere-deployer: Could not resolve dependencies for project org.jenkins-ci.plugins:websphere-deployer:hpi:1.3-SNAPSHOT: The following artifacts could not be resolved: com.ibm.ws:admin:jar:8.5.0, com.ibm.ws:orb:jar:8.5.0, com.ibm.ws:liberty-connector:jar:8.5.5, com.ibm.ws:liberty-rest-connector:jar:8.5.5, com.ibm.ws:liberty-basic:jar:8.5.5, com.ibm.ws:liberty-endpoint:jar:8.5.5, org.tmatesoft.sqljet:sqljet:jar:1.1.0, de.regnis.q.sequence:sequence-library:jar:1.0.1, org.netbeans.modules:org-netbeans-insane:jar:RELEASE72: Failure to find com.ibm.ws:admin:jar:8.5.0 in http://nexus.sl.cloud9.ibm.com:8081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
I cannot distribute the jar files for WebSphere on the internet. I'm sure it would cause all kinds of legal issues. You'll have to import the missing jar file from WAS full profile.
Since this plugin packages 2 plugins together (Liberty and Full Profile), you'll need each dependency to build it.
You'll need import the admin jar from the full profile using the following:
mvn install:install-file -DgroupId=com.ibm.ws -DartifactId=admin -Dversion=8.5.0 -Dpackaging=jar -Dfile=<path to the admin jar for websphere full profile>
Hope this helps