# camund 7 /camunda/api/cockpit/plugin/cockpitPlugins/static/app/plugin.css 404

**URL:** <https://forum.camunda.io/t/camund-7-camunda-api-cockpit-plugin-cockpitplugins-static-app-plugin-css-404/54477>\
**Category:** Camunda 7 Topics\
**Created:** [August 29, 2024, 9:30am UTC](https://forum.camunda.io/t/camund-7-camunda-api-cockpit-plugin-cockpitplugins-static-app-plugin-css-404/54477 "2024-08-29T09:30:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ff\_z](https://forum.camunda.io/user_avatar/forum.camunda.io/ff_z/32/30649_2.png) [@ff\_z](https://forum.camunda.io/u/ff_z)\
**Post date:** [August 29, 2024, 9:30am UTC](https://forum.camunda.io/t/camund-7-camunda-api-cockpit-plugin-cockpitplugins-static-app-plugin-css-404/54477/1 "2024-08-29T09:30:19Z")

</div>

Sure, here is the translation:

* * *

The management platform of Camunda 7 is showing a 404 status for /camunda/api/cockpit/plugin/cockpitPlugins/static/app/plugin.css. After investigation, it might be due to the separation of the JAR and lib during the Maven build process.

Currently, our project directory is as follows:

```auto
config/application.yml
lib/
test.jar

```

Is there any way to ensure that the external lib can be accessed normally?

* * *

Feel free to ask if you need further assistance!  
maven:

 test-demo src/main/resources true src/main/resources/${profiles.active} 

```
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <configuration>
                <archive>
                    <addMavenDescriptor>false</addMavenDescriptor>
                    <manifest>
                        <addClasspath>true</addClasspath>
                        <classpathPrefix>lib/</classpathPrefix>
                        <mainClass>com.example.test_demo.TestDemoApplication</mainClass>
                    </manifest>
                    <manifestEntries>
                        <Class-Path>config/</Class-Path>
                    </manifestEntries>
                </archive>
                <outputDirectory>target/${project.name}/</outputDirectory>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                <skip>true</skip>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <executions>
                <execution>
                    <id>copy-dependencies</id>
                    <phase>package</phase>
                    <goals>
                        <goal>copy-dependencies</goal>
                    </goals>
                    <configuration>
                        <outputDirectory>target/${project.name}/lib/</outputDirectory>
                        <overWriteReleases>false</overWriteReleases>
                        <overWriteSnapshots>false</overWriteSnapshots>
                        <overWriteIfNewer>true</overWriteIfNewer>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        
        <plugin>
            <artifactId>maven-resources-plugin</artifactId>
            <executions>
                <execution>
                    <id>copy-resources</id>
                    <phase>package</phase>
                    <goals>
                        <goal>copy-resources</goal>
                    </goals>
                    <configuration>
                        <resources>
                            <resource>
                                <directory>target/classes/</directory>
                                <includes>
                                    <include>*.**</include>
                                </includes>
                            </resource>
                        </resources>
                        <outputDirectory>target/${project.name}/config</outputDirectory>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        <!--maven check-->
        <plugin>
            <groupId>org.owasp</groupId>
            <artifactId>dependency-check-maven</artifactId>
            <version>5.2.4</version>
            <configuration>
                <format>ALL</format>
            </configuration>
        </plugin>
    </plugins>
</build>

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [November 27, 2024, 9:30am UTC](https://forum.camunda.io/t/camund-7-camunda-api-cockpit-plugin-cockpitplugins-static-app-plugin-css-404/54477/2 "2024-11-27T09:30:52Z")

</div>

Closed on November 27, 2024, 9:30am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
